Skip to main content
POST
/
v1
/
auth
/
keys
/
rotate
Rotate API key
curl --request POST \
  --url https://api.trydocent.com/v1/auth/keys/rotate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>"
}
'
{
  "apiKey": "dk_live_f6e5d4c3b2a1f6e5d4c3b2a1f6e5d4c3"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trydocent.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key in the format dk_live_.... Pass as Authorization: Bearer dk_live_...

Body

application/json
label
string

Optional new label for the key

Maximum string length: 64

Response

200 - application/json

New API key

apiKey
string

Your new API key. The old key is now revoked.

Example:

"dk_live_f6e5d4c3b2a1f6e5d4c3b2a1f6e5d4c3"