Requirements:
- API key pair (API key + secret)
- Age Estimation feature enabled on your contract (contact iDenfy to activate)
- Finances available for Age Estimation
Create a Session
Authenticate with your API key pair over HTTP Basic. Use the API key as the username and the API secret as the password. Sessions are scoped to your partner account, so you only ever see your own.For the full request and response schemas, every field’s constraints and defaults, and an interactive playground, see the API Reference page for this endpoint.
Example (Partner API)
- Request
- Response
Errors
The response body identifies which finances are short:
- Read
missingPoolFundsto identify which finances are short. The response usesfundPoolnaming for what the guides call Age Estimation finances. missingFundsstaysnull. It covers general funds only, so do not read it to detect exhausted Age Estimation finances.missingis the shortfall in your account currency, and0when no Age Estimation finances are configured.
Insufficient funds return
402, not 403. This matches iDenfy’s other token-creation endpoints. See ID Error Messages. 403 is reserved for an account that lacks access to the endpoint or feature.What’s Next
Once you have asessionUrl, send the end user to it to complete the selfie capture. When the session finishes, iDenfy delivers the result via the result webhook. This is the only way to receive it programmatically, so configure one. To list and inspect past sessions, sign in to the dashboard. See Session List.