> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getplu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Redirect URL

> Configure the redirect URL for post-KYC verification

Set where users are redirected after completing Persona KYC verification. The redirect URL receives a `referenceId` query parameter containing the user's `serviceId`.

<ParamField header="Authorization" type="string" required>
  Bearer token. Example: `Bearer sk_staging_your_api_key`
</ParamField>

<ParamField body="redirectUrl" type="string" required>
  HTTPS URL to redirect users after KYC. Max 2048 characters.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://services-staging.getplu.com/api/v1/partner/profile/redirect-url \
    -H "Authorization: Bearer sk_staging_your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "redirectUrl": "https://app.acme.com/kyc-complete"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://services-staging.getplu.com/api/v1/partner/profile/redirect-url',
    {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer sk_staging_your_api_key',
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        redirectUrl: 'https://app.acme.com/kyc-complete',
      }),
    }
  );
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "success",
    "message": "Redirect URL configured",
    "data": {
      "redirectUrl": "https://app.acme.com/kyc-complete"
    }
  }
  ```
</ResponseExample>

After KYC, the user is redirected to:

```
https://app.acme.com/kyc-complete?referenceId=acme-user-abc123def456ghi
```

Use the `referenceId` to look up the user's status via [Get Profile](/api-reference/profile/get-profile) or listen for [KYC webhook events](/webhooks#kyc-events).
