Skip to main content
POST
/
api
/
api-keys
Create an API key
curl --request POST \
  --url https://app.dacard.ai/api/api-keys \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "name": "CI Pipeline"
}
'
{
  "key": {
    "id": "<string>",
    "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "keyPrefix": "dck_live_a3f9...",
    "enabled": true,
    "lastUsedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
name
string
required

Display name for this key (64 characters max)

Maximum string length: 64
Example:

"CI Pipeline"

Response

API key created (fullKey visible in this response only)

key
object