Manage API Keys
Create key
Endpoint: POST /api-keys
Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Friendly key name (1-100 chars). |
workspace_id | string | No | Team account ID for key ownership. |
Notes
- Max 10 keys per account.
- Raw key is returned only once.
- Stored value in DB is SHA-256 hash.
Revoke key
Endpoint: DELETE /api-keys/:id
- Returns
204on success. - Returns
404if key does not exist. - Membership or ownership checks are enforced before deletion.