Skip to main content
POST
/
v1
/
users
/
me
/
api-keys
Create Api Key
curl --request POST \
  --url https://api.superdocs.app/v1/users/me/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "key": "<string>",
  "key_prefix": "<string>",
  "created_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new API key.

name
string
required

A label for this key (e.g., 'My App', 'CI Pipeline').

Required string length: 1 - 255

Response

Successful Response

Newly created API key. The raw key is shown only once — save it immediately.

id
string
required

Key identifier (UUID). Use this to revoke the key later.

name
string
required

Label you assigned to this key.

key
string
required

The full API key (sk_... format). Copy this now — it cannot be retrieved again.

key_prefix
string
required

First 7 characters of the key (e.g., 'sk_a1b2') for identification.

created_at
string
required

ISO 8601 timestamp when the key was created.