Use this endpoint to identify the applicant through the Diia app. The applicant confirms the authorization in the Diia app, and our system gets the full name and the tax ID number (RNOKPP) of the applicant.
How it works
- You send a request with the ID of a form that has Diia settings.
- Our system returns
confirmation_url. This is a deep link to the Diia app. - You show the link to the applicant. The applicant opens it and confirms the authorization in Diia.
- Our system updates the applicant profile (or creates a new applicant), adds the tax ID number document, and sends the "UA Diia auth completed" callback to the callback URL of the form.
If you do not send applicant_id, our system creates a new applicant after the authorization. The response contains the ID that this applicant will get.
Our system charges the request after the applicant completes the authorization.
Security
API-Key
ID of the form that has Diia settings
Example:"a1b2c3d4e5f60718293a4b5c6d7e8f901234"
Optional. ID of an existing applicant
Example:"0f1e2d3c4b5a69788796a5b4c3d2e1f00123"
Optional. Your ID of the applicant. Our system uses it when it creates a new applicant
Example:"user-10001"
- https://api.kycaid.comhttps://api.kycaid.com/services/ua/diia/auth
{ "form_id": "a1b2c3d4e5f60718293a4b5c6d7e8f901234", "external_applicant_id": "user-10001" }
Response
{ "status": "ok", "data": { "applicant_id": "0f1e2d3c4b5a69788796a5b4c3d2e1f00123", "confirmation_url": "https://diia.example.com/deep-link/00000000" } }