Roll an API key
Issues a new secret for a secret key, keeping its id, name, permissions and expiry, and returns it in rawKey, shown only this once.
The previous secret stops working at once, or after overlapSeconds. Only a person signed in to the Voidhash dashboard can do this; a secret key, a CLI key or an MCP client cannot.
Guide: API keys
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | publishable_key_not_editable | For a publishable key. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in API keys
- List API keys
GET - Create an API key
POST - Retrieve an API key
GET - Update an API key
PATCH - Delete an API key
DELETE
Something wrong or missing on this page? Tell us by email or on Discord.