cURL
curl --request POST \ --url https://verification.didit.me/v3/session/{sessionId}/share/ \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "for_application_id": "<string>", "ttl_in_seconds": "3600" } '
{ "share_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2lkIjoiMjBiYjNjM2ItNjE0Ni00MzlmLTg0YTQtYmQzMGQwMGFjNmEyIiwiZnJvbV9hcHBsaWNhdGlvbl9pZCI6ImRiZDIwZTM0LTQyZTktNGYyYy1iYTkxLWNmMDc2MjAxNmY2NCIsImZvcl9hcHBsaWNhdGlvbl9pZCI6ImE1ZjNiY2EyLTQ2ZTItNDExZS05MGVmLWE1ODA5MDBhNTdlZSIsImlhdCI6MTc1MzYzMDY2NiwiZXhwIjoxNzUzNjM0MjY2fQ.JJ9pNE_hqZsOtbR0XYZIWw4JzidjdEl279iUrsIkhGE", "for_application_id": "a5f3bca2-46e2-411e-90ef-a580900a57ee" }
Generate a time-limited share token to securely share a verified session with a trusted partner organization for Reusable KYC.
The application ID to share the session with. You can find this in the settings of your application in the Business Console.
The time to live for the share token in seconds. Minimum 60 seconds, maximum 86400 seconds (24 hours).