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 — API key as the username, API secret as the password, over HTTP Basic. 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
missing_pool_fundsto identify which finances are short. The response usesfund_poolnaming for what the guides call Age Estimation finances. missing_fundsstaysnull— 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 asession_url, send the end user to it to complete the selfie capture. When the session finishes, the result is delivered via the result webhook — this is the only way to receive it programmatically, so configure one. Past sessions can be listed and inspected by signing in to the dashboard; see Session List.