curl -X POST 'https://verification.didit.me/v3/users/create/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"vendor_data": "user-abc-123", "full_name": "John Doe"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.users.create(
vendor_data="user-abc-123",
full_name="John Doe",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.users.create({
vendor_data: "user-abc-123",
full_name: "John Doe",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Users.Create(ctx, didit.UsersCreateParams{
VendorData: "user-abc-123",
FullName: didit.String("John Doe"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.UsersCreateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.users().create(UsersCreateParams.builder()
.vendorData("user-abc-123")
.fullName("John Doe")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->users->create([
'vendor_data' => 'user-abc-123',
'full_name' => 'John Doe',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.users.create(
vendor_data: "user-abc-123",
full_name: "John Doe"
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Users.CreateAsync(new UsersCreateParams
{
VendorData = "user-abc-123",
FullName = "John Doe",
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"didit_internal_id": "f4e5e1f2-94a9-4f86-8c16-2b7d9b4db418",
"vendor_data": "user-abc-123",
"display_name": null,
"full_name": "John Doe",
"date_of_birth": null,
"effective_name": "John Doe",
"status": "ACTIVE",
"metadata": {},
"portrait_image_url": null,
"session_count": 0,
"approved_count": 0,
"declined_count": 0,
"in_review_count": 0,
"issuing_states": [],
"approved_emails": [],
"approved_phones": [],
"features": {},
"features_list": [],
"last_session_at": null,
"last_activity_at": "2025-06-15T10:30:00Z",
"first_session_at": null,
"tags": [],
"comments": [],
"created_at": "2025-06-15T10:30:00Z",
"updated_at": "2025-06-15T10:30:00Z",
"verification_link": null
}Create User API: Vendor User Entity
Pre-seed Didit vendor User entities before KYC sessions run. Bulk-onboard from external databases or register users for transaction monitoring.
curl -X POST 'https://verification.didit.me/v3/users/create/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"vendor_data": "user-abc-123", "full_name": "John Doe"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.users.create(
vendor_data="user-abc-123",
full_name="John Doe",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.users.create({
vendor_data: "user-abc-123",
full_name: "John Doe",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Users.Create(ctx, didit.UsersCreateParams{
VendorData: "user-abc-123",
FullName: didit.String("John Doe"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.UsersCreateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.users().create(UsersCreateParams.builder()
.vendorData("user-abc-123")
.fullName("John Doe")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->users->create([
'vendor_data' => 'user-abc-123',
'full_name' => 'John Doe',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.users.create(
vendor_data: "user-abc-123",
full_name: "John Doe"
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Users.CreateAsync(new UsersCreateParams
{
VendorData = "user-abc-123",
FullName = "John Doe",
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"didit_internal_id": "f4e5e1f2-94a9-4f86-8c16-2b7d9b4db418",
"vendor_data": "user-abc-123",
"display_name": null,
"full_name": "John Doe",
"date_of_birth": null,
"effective_name": "John Doe",
"status": "ACTIVE",
"metadata": {},
"portrait_image_url": null,
"session_count": 0,
"approved_count": 0,
"declined_count": 0,
"in_review_count": 0,
"issuing_states": [],
"approved_emails": [],
"approved_phones": [],
"features": {},
"features_list": [],
"last_session_at": null,
"last_activity_at": "2025-06-15T10:30:00Z",
"first_session_at": null,
"tags": [],
"comments": [],
"created_at": "2025-06-15T10:30:00Z",
"updated_at": "2025-06-15T10:30:00Z",
"verification_link": null
}Overview
Explicitly creates a User entity before any session is run. The returned entity lands inACTIVE status unless you specify otherwise.
Optionally, the same call emails the person a verification link (see Send a verification link).
When to use it
- Pre-seed metadata (tier, signup source, internal tags) before the customer verifies.
- Migrate from another vendor — recreate your existing user roster in Didit so history and analytics start from a known baseline.
- Import trusted profile faces — create the User first, then call Upload User Face with the returned
didit_internal_id. - Transaction-only use cases — register a User with
vendor_dataso you can submit transactions without ever running a User Verification (KYC) session. - Invite someone to verify: create the person and email them a verification link in one call.
Contact details
You can send the person’s contact details next to the profile fields.first_name and last_name are joined with a space into full_name when you don’t send full_name.
email and phone_number are stored in metadata.contact, and country in metadata.address.
country takes an ISO 3166 code, alpha-2 or alpha-3 (ES or ESP), and is stored uppercased.
If the metadata you send already has a contact or address value that is not a JSON object, Didit doesn’t overwrite it: the call answers 400 on the contact field that needed it.
Send a verification link
Setsend_verification_link to true to invite the person to verify in the same call.
Didit creates a verification session for the person on the workflow in workflow_id and emails them the link at email.
Use language to pick the email’s language; it is English when you leave it out.
curl -X POST https://verification.didit.me/v3/users/create/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vendor_data": "user-abc-789",
"first_name": "Julia",
"last_name": "Martin",
"email": "julia.martin@example.com",
"send_verification_link": true,
"workflow_id": "YOUR_WORKFLOW_ID",
"language": "es"
}'
emailandworkflow_idare required with a link, and the workflow must verify a person: a Business Verification (KYB) workflow answers400.- The session goes through the same checks as Create Session.
A blocklisted
vendor_dataor too few credits answers400. - The person and the session are created together or not at all. When any check fails, nothing is written and no email is sent.
- The response carries
verification_linkwith the session’ssession_id,session_number,status,url,workflow_idand theemailit was sent to. Without a link,verification_linkisnull.
Notes
vendor_datais required and must be unique per application. Attempting to create a duplicate returns a conflict error — usePATCH /v3/users/{vendor_data}/to update an existing user.vendor_datahas a hard limit of 2000 bytes (UTF-8 encoded). A value over that limit returns a 400 validation error instead of being accepted.- Fields that are normally derived from verified sessions (
full_name,date_of_birth) can be seeded here but may be overwritten by the first approved User Verification (KYC) session. - Face images are not accepted by this endpoint. To attach a trusted imported face, use
POST /v3/organization/{organization_id}/application/{application_id}/vendor-users/by-id/{didit_internal_id}/faces/upload/after this endpoint returnsdidit_internal_id. - The create itself sends no webhook. Later changes to the user send
user.data.updatedoruser.status.updated. - With
send_verification_link, the new session updates the user in the same call, which sendsuser.data.updated.
Permissions
The primary secret and full-access API keys can always call this endpoint. A key with custom access needs People (users) write.
With send_verification_link: true it also needs Sessions write, because the call creates a session and hands out its link.
Without it, the call answers 403 with This API key has no write access to sessions. and nothing is written.
A key limited to some workflows or to approved sessions can’t reach this endpoint.
The Console’s roles and permissions decide what a team member can do in the Console.
They are not evaluated for API key requests.
Related
Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Headers
Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.
1 - 255Body
Language of the verification email, as a supported language code. English when omitted. Ignored when send_verification_link is not true.
10Response
User created. The full user record (same shape as Get User), plus verification_link: the verification session Didit emailed when send_verification_link was true, otherwise null.
Full user detail. Extends UserListItem with metadata, comments, and updated_at.
Aggregated per-feature status across all of this user's sessions. Possible keys: ID_VERIFICATION, NFC, LIVENESS, FACE_MATCH, POA, QUESTIONNAIRE, EMAIL_VERIFICATION, PHONE, AML, IP_ANALYSIS, AGE_ESTIMATION, DATABASE_VALIDATION. Possible values: Approved, Declined, In Review, Not Finished, Resub Requested.