Update an API key
Rename an API key or pin it to a dated API version. At least one of name or version is required.
Authorizations
API key: Authorization: Bearer sk_test_... or sk_live_....
Headers
Pin a dated API release (Stripe-style). Omit to use the current version. An unknown value returns 400 request.invalid_version. Echoed back on every response.
"2026-07-10"
Connect: act on behalf of one of your connected accounts (its acct_…/org_… id). Omit to act as your own organization. Not honored on /v1/api_keys.
"org_2P9connectedacct"
Path Parameters
API-key id, e.g. "ak_2P9K3sample".
Body
Response
Default Response
Always "api_key".
api_key API-key id, e.g. "ak_2P9K3sample".
Human label, or null if unset.
Environment this key stamps against: "test" or "live".
test, live Non-secret key prefix used to identify the key, e.g. "sk_live_ab12".
When the key was last used (ISO-8601 UTC), or null.
When the key was revoked (ISO-8601 UTC), or null if active.
Pinned dated API version, or null to follow the current version.
Creation timestamp, ISO-8601 UTC.