Rotate API key
Changed onIssues a new secret for the key and revokes the old one at the same moment. The key keeps its id, name and scopes. The new secret (token) is in this response only. Called by Crevio's agent, a script or an MCP client, token is null and token_secret_id names the account secret that holds it.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource's ID, as returned in its id field
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Response
The key with its new secret
personal acts as the person who made it; team sees only what the whole account sees.
What the key may call. Null for a key made before scopes existed, which reaches everything.
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
3 more changes in this revision
- warning