Skip to main content
POST
Mint an SDK token
Your API key must never reach a browser or a mobile app. Call this endpoint from your server, then pass only the returned access_token to the idto SDK. The token expires after 900 seconds; mint a fresh one for each verification flow you open.
1

Your server calls this endpoint

Send client_id and client_secret (your API key) in the JSON body. No auth headers are needed.
2

Return the token to your front end

Send only access_token to your web page or app.
3

Open the flow

Initialise the idto SDK with the token. See the SDK guides.

Environments

Use the key pair issued for the environment you call: staging keys do not work on production and the other way round.

Errors

Working server examples in nine stacks: Node Express, TypeScript, FastAPI, Flask, Django, Go, PHP, Ruby, Java.
Was this page helpful? Email us at tech@idto.ai with the page link.

Body

application/json
client_id
string
required

The merchant's long-lived client id.

client_secret
string
required

The merchant's long-lived API key.

Response

Token issued.

access_token
string
required

A short-lived JWT.

token_type
enum<string>
required
Available options:
bearer
expires_in
integer
required
Example:

900

session_id
string

Present when this token is bound to a specific verification session.

Last modified on October 4, 2026