Step 6: Extract Redirect URL
After successfully calling the Consent Creation API (Step 5), the response will include multiple attributes related to the created consent request.
The most important field in the response is:
{
"redirectUrl": "https://staging.indiaconsent.com/consent?cr_id=c8ab306d-0a53-4af1-9f3c-c4662df39500"
}
What is redirectUrl?
The redirectUrl is a unique, system-generated URL that:
- Displays the Consent Notice to the Data Principal
- Allows the user to Grant or Revoke consent
- Is securely mapped to the created consent request
Each consent request will generate a unique redirect URL.
What You Must Do
- Extract the
redirectUrlvalue from the API response. - Store it temporarily in your backend or pass it securely to your frontend.
- Use this URL in the next step to present the consent notice to the user.
⚠️ Do not modify the URL.
Flow
Call Consent API
↓
Receive Response
↓
Extract redirectUrl
↓
Send to UI