Skip to main content
POST
/
api-keys
/
admin
Create an API key for a client (Admin only)
curl --request POST \
  --url https://api.platform.dakota.xyz/api-keys/admin \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "client_id": "2iNhTbFZGo1bqoTTVOQKVgAfGHH"
}
'
{
  "id": "2iNhTbFZGo1bqoTTVOQKVgAfGHH",
  "key": "dk_live_4KLkSmzQbL6Xs8xnUjssdGHX7PfhHpAb"
}

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
client_id
string
required

Client ID to create the API key for

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

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Response

API key created successfully

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"

key
string
required

The API key value (only shown once at creation)

Example:

"dk_live_4KLkSmzQbL6Xs8xnUjssdGHX7PfhHpAb"