Rename an active API key
Requires a full-scope key. Only the name changes; the secret and permissions stay the same. Unknown or revoked keys return not_found.
PATCH/api-keys/{key_id}
Request body
| Parameter | Description |
|---|---|
namerequiredstring | Maximum length: 64. |
Full request schema and constraints
application/json- body
name*stringLength
1 <= length <= 64Path parameters
| Parameter | Description |
|---|---|
key_idrequiredstring |
header
AuthorizationBearer <token>API key: st_live_... or st_test_...
Updated API key metadata without the secret.
application/json- response
id*stringname*stringmode*stringValue in
"live""test"scope*stringValue in
"full""sending""domain""read_only"prefix*stringStored lookup prefix, not the full secret.
created_at*stringFormat
date-timelast_used_at?stringFormat
date-time