Update an API key
Replaces a secret key's project permissions, keeping its secret; null gives it full access.
The editor must hold every permission the key has before and after the change. 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 - Delete an API key
DELETE - Roll an API key
POST
Something wrong or missing on this page? Tell us by email or on Discord.