Create a Consent
2 min
consents
Create a consent by linkToken
POST
https://api-sandbox.klavi.ai/data/v1/consents
curl --location 'https://api-sandbox.klavi.ai/data/v1/consents' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"externalTrackId":"string","personalTaxId":"string","businessTaxId":"string","institutionCode":"string","redirectURL":"string","phone":"string","email":"string","validityPeriod":12}'Parameter
redirectURL
The end-user completes authorization and returns to the client's page URL from the LGDP page.
- If authorization succeeds, the Klavi backend returns the redirectURL with the link_id , consent_id,external_info and external_track_id parameters
- If authorization fails, the Klavi backend returns the redirectURL with the link_id, consent_id, external_info , external_track_id ,error and error_description parameters