Create an API key
Creates a secret key, optionally limited to some project permissions and given an expiry.
The response is the only time its rawKey is shown. A key cannot carry a permission its creator lacks. 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 | expiry_not_in_future | For an expiry that has passed. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in API keys
- List API keys
GET - Retrieve an API key
GET - Update an API key
PATCH - Delete an API key
DELETE - Roll an API key
POST
Something wrong or missing on this page? Tell us by email or on Discord.