Implementation (Terra widget)
1. Make an API Request
curl --request POST --url https://api.tryterra.co/v2/auth/generateWidgetSession \
--header 'dev-id: <YOUR-DEV-ID>' \
--header 'x-api-key: <YOUR-API-KEY> \
--header 'Content-Type: application/json' \
--data '{
"language": "en",
"reference_id": "my_first_connection",
"auth_success_redirect_url": "text",
"auth_failure_redirect_url": "text",
}'2. Parse the Widget URL from the JSON Response
3. Open The Widget URL



❌ Common Mistakes
Last updated
Was this helpful?