Skip to main content
PATCH
Rename API Key

Headers

string
required
Your API key for authentication. Restricted keys cannot rename keys.

Body

string
required
The first 14 characters of the key, as returned by List API Keys. Works for full-access and restricted keys.
string
required
The new name, up to 64 characters after trimming whitespace. It cannot be blank.

Response

null
null on success.
null | array
null on success. Returns 404 when the key is not found and 403 when you are not allowed to rename it.

Docs for agents: llms.txt