Skip to main content
POST
/
v1
/
organization
/
admin-keys
cURL
curl --request POST \
  --url https://9dc2c77e6dbf.ngrok-free.app/v1/organization/admin-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Admin Key"
}'
{
  "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
  "key": "sk_admin_1234567890abcdef",
  "name": "My Admin Key",
  "createdAt": "2021-08-01T00:00:00Z",
  "updatedAt": "2021-08-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Admin API key (format: sk_admin_*) for organization-level operations

Body

application/json
name
string
required

Human-readable name for the admin key

Minimum length: 1
Example:

"My Admin Key"

Response

201 - application/json

Create a new admin key

id
string<uuid>
required

Admin key UUID

Example:

"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"

key
string
required

The admin key (only shown once on creation)

Example:

"sk_admin_1234567890abcdef"

name
string
required

Human-readable name

Example:

"My Admin Key"

createdAt
string<date-time>
required

When the key was created

Example:

"2021-08-01T00:00:00Z"

updatedAt
string<date-time>
required

When the key was last updated

Example:

"2021-08-01T00:00:00Z"

I