> For a complete page index, fetch https://docs.transak.com/llms.txt

# Redirection

The Transak Web Redirection integration allows you to redirect users to Transak's interface with minimal implementation effort.

Call the [Create Widget URL](/api/public/create-widget-url) API from your backend to generate a secure widget url using Query parameters

Open Transak in a new tab and pass `redirectURL` to redirect users back to your site after the order is placed.

The response returns a `widgetUrl`.

A `widgetUrl` is valid for 5 minutes and can only be used once. A new `widgetUrl` must be generated for every user flow.

**Example Request:**

```bash
curl --request POST \
  --url https://api-gateway-stg.transak.com/api/v2/auth/session \
  --header 'access-token: YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "widgetParams": {
    "apiKey": "YOUR_API_KEY",
    "referrerDomain": "yourdomain.com",
    "redirectURL": "https://partner-app-url.com"
  }
}'
```

```html title="Staging"
<a href="https://global-stg.transak.com?apiKey=YOUR_API_KEY&sessionId=YOUR_SESSION_ID" target="_blank">
  Buy/Sell Crypto with Transak
</a>
```

```html title="Production"
<a href="https://global.transak.com?apiKey=YOUR_API_KEY&sessionId=YOUR_SESSION_ID" target="_blank">
  Buy/Sell Crypto with Transak
</a>
```