Skip to main content
POST
/
api-keys
Create a new API key
curl --request POST \
  --url https://api.platform.dakota.xyz/api-keys \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>'
{
  "id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "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.

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
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

key
string
required

The API key value (only shown once at creation)

Example:

"dk_live_4KLkSmzQbL6Xs8xnUjssdGHX7PfhHpAb"