v22

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-04970425.1 KB
API Keys

Create user API key

Create a new API key for a user or team

post/user-api-keys

Request body

descriptionstring required
expires_at_millisnumber nullable
is_publicboolean
user_idstring required

The ID of the user, or the special value me for the currently authenticated user

Example request

{
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}

Response

Successful response

valuestring required
idstring required
descriptionstring required
expires_at_millisnumber
manually_revoked_at_millisnumber
created_at_millisnumber required
is_publicboolean required
type'user' required
user_idstring required

The ID of the user, or the special value me for the currently authenticated user

Example response

{
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}