Checking your session…
API keys
OAuth client credentials for the Veridion APIs. Production keys return real data and spend your account's credits. Sandbox keys return fake data and spend none. How the sandbox works (opens in a new tab)
Your keys
A secret is shown once, when it is created, and cannot be retrieved later. Rotating a key keeps its current secret working for 7 more days.
Loading…
Turn your key into a token
A key is a client ID and a secret, not a token. Exchange them for an access token, then send it as Authorization: Bearer <token> on every call. A token lasts one hour: cache it and request a new one before it expires.
Get an access token
curl -X POST "https://auth.veridion.com/oauth2/token" \
-u "$VERIDION_CLIENT_ID:$VERIDION_CLIENT_SECRET" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&scope=api:use"
# The response carries access_token (a Bearer token, valid for one hour).
# The playground's snippets read it from VERIDION_API_TOKEN:
export VERIDION_API_TOKEN="<access_token>"