Skip to main content

Finding Your API Key

In Didit, API keys are scoped to a specific Application within your account. An Application is a workspace where you can configure workflows and manage verifications for a particular project or environment. Every Application gets a primary API key with full access when you create it. You can add more keys next to it, each with only the access a service or partner needs. To find your keys:
1

Log in to the Business Console

Go to the Didit Business Console and sign in.
2

Select your Application

Choose the Application you want to work with from the dropdown menu at the top.
3

Open API keys

Navigate to Developers -> API keys in the left-hand sidebar.
4

Copy or create a key

The Primary key is the Application’s own secret. Create a new key to give a service or partner its own secret, with the access it needs.
Your API Key is a Secret — treat it like a password.The primary key provides full access to the API on behalf of your Application. Never expose it in frontend code, public repositories, or client-side bundles. Always keep it server-side only.

API key format

New API keys start with sk_live_ for a live application or sk_test_ for a sandbox application, followed by 43 URL-safe characters (letters, digits, - and _). Keys created before this format have no prefix and keep working unchanged. Send the whole key, prefix included, in the x-api-key header, and do not reject a key because it has no prefix.

Find your organization ID

Your Organization ID is the UUID that identifies your organization. You use it in organization-scoped API paths such as /auth/v2/organizations/me/{org_id}/applications/. You can copy it directly from the Business Console, with no API call needed:
1

Open organization settings

In the Didit Business Console, go to Organization Settings.
2

Copy the organization ID

The Organization ID field shows your org’s UUID next to the organization name, with a copy-to-clipboard button.

Making Authenticated Requests

To authenticate an API request, include your secret API key in the x-api-key HTTP header. Here is an example of an authenticated request to the Create Session endpoint:
cURL

Error Handling

If your API key is wrong, malformed or revoked, the API returns 401 Unauthorized:
An expired key also returns 401, with "detail": "This API key has expired.". A request with no key returns 403 with "detail": "You do not have permission to perform this action.". The API errors page lists every status, body and code.

Scoped API keys

Give each service or partner its own key instead of sharing the primary one. Each key has its own access: none, read or write for every resource (sessions, decisions, media, people, companies, transactions, workflows, webhooks, application settings, analytics), and optional limits to some workflows, to approved sessions only, to a list of IP addresses, and to an expiry date. You can rotate a key with a 24-hour overlap, and revoke it at once. Keys created before scoped access existed keep full access. See API keys for the presets, the resources each one covers, and how the API answers a scoped key.
If you receive a 401 error, double-check that you are using the correct API key for the right Application and that it has not been regenerated.
Last modified on November 11, 2026