Skip to main content
POST
/
users
Create a new user
curl --request POST \
  --url https://api.platform.dakota.xyz/users \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@example.com",
  "role": "admin"
}
'
{
  "id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@example.com",
  "role": "admin",
  "swift_enabled": true,
  "created_at": 1234567890
}

Documentation Index

Fetch the complete documentation index at: https://docs.dakota.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Body

application/json

user details

Request body for creating a new client user

first_name
string
required

Given name of the user

Minimum string length: 1
Example:

"John"

last_name
string
required

Surname of the user

Minimum string length: 1
Example:

"Doe"

email
string<email>
required

Email address of the user

Example:

"john@example.com"

role
enum<string>
required

Role that can be assigned to a client user. Available roles: admin (full access except issuances) and viewer (read-only access).

Available options:
admin,
viewer
Example:

"admin"

Response

User created successfully

User object representing a user in the system, including all clients they can access.

id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

first_name
string
required

Given name of the user.

Example:

"John"

last_name
string
required

Surname of the user.

Example:

"Doe"

email
string
required

Email address of the user.

Example:

"john@example.com"

role
enum<string>
required

Role that can be assigned to a client user. Available roles: admin (full access except issuances) and viewer (read-only access).

Available options:
admin,
viewer
Example:

"admin"

created_at
integer
required

Timestamp of when the user was created.

Example:

1234567890

swift_enabled
boolean

Whether the client has SWIFT payments enabled.

client_id
string

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

client_name
string

Display name of the active client for this request.

Example:

"Acme Corp"