Skip to main content
POST
/
api-keys
/
{key_id}
/
rotate
Rotate a personal API key
curl --request POST \
  --url https://api.mnemom.ai/v1/api-keys/{key_id}/rotate \
  --header 'Authorization: Bearer <token>'
{
  "key_id": "<string>",
  "key": "<string>",
  "key_prefix": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "rotated_from": "<string>",
  "old_key_revoked_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

key_id
string
required

Response

New key minted, old key revoked.

key_id
string
key
string

Full secret. Capture now — never returned again.

key_prefix
string
name
string
scopes
string[]
rotated_from
string

key_id of the now-revoked predecessor

old_key_revoked_at
string<date-time>
created_at
string<date-time>