Rotate an API key
API Keys
Rotate an API key
Issues a new key with the same scopes and name, then invalidates the old one. Returns the new plaintext key once.
POST
Rotate an API key
Authorizations
API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).
Path Parameters
Body
application/json
Response
Rotated