Skip to main content
POST
/
v1
/
auth
/
keys
Create API key
curl --request POST \
  --url https://api.usenaive.ai/v1/auth/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Untitled Key",
  "account_kit_id": "<string>",
  "active_tenant_user_id": "<string>"
}
'
{
  "api_key": "<string>",
  "key_id": "<string>",
  "name": "<string>",
  "account_kit_id": "<string>",
  "active_tenant_user_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Body

application/json
name
string
default:Untitled Key
account_kit_id
string

Seal the key to an account kit.

active_tenant_user_id
string

Default tenant user for the key.

Response

Created.

api_key
string
key_id
string
name
string
account_kit_id
string | null
active_tenant_user_id
string | null
created_at
string<date-time>