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.
API key format
New API keys start withsk_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 thex-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 returns401 Unauthorized:
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.