Skip to main content
POST
cURL

Body

application/json
email
string<email>
required

Email used during POST /programmatic/register/.

Example:

"you@yourdomain.com"

code
string
required

6-character alphanumeric code from the verification email. Codes expire 10 minutes after the most recent code was sent.

Required string length: 6
Example:

"A3K9F2"

Response

Email verified. The response contains tokens for this auth API plus the brand-new application's client_id and api_key. Persist the api_key securely — it is the long-lived credential used by every verification API call. When the account already has an authenticator app or a passkey, the response carries 2fa_required: true, a temp_token, has_authenticator and has_passkeys instead of tokens and application keys: finish the sign-in with the second factor, then read the organization and its applications from /organizations/me/.

access_token
string

RS256-signed JWT. Use as Authorization: Bearer <token> for Account Management endpoints on apx.didit.me/auth/v2.

refresh_token
string

Refresh token paired with the access token.

expires_in
integer

Lifetime of the access token in seconds (default 86400).

Example:

86400

organization
object

Minimal organization shape returned inline by POST /programmatic/verify-email/.

application
object

The organization's live application (mode: live): the credentials a production integration ships with. Every check created with its key is billed from the organization's balance.

sandbox_application
object | null

The organization's sandbox application (mode: sandbox). Use its api_key to build and test the integration for free: every check is mocked and never billed. Switch to the live application key to go live.

2fa_required
boolean

Present and true when the account already has an authenticator app or a passkey. The response then carries temp_token instead of tokens and application keys.

Example:

true

temp_token
string

Short-lived token for the second-factor step, sent only with 2fa_required. It is not an access token.

has_authenticator
boolean

With 2fa_required: whether the account has an authenticator app.

has_passkeys
boolean

With 2fa_required: whether the account has a passkey.

Last modified on November 10, 2026