Delete API key
Use this endpoint to permanently delete an existing API key by its ID. Use this when an owner or tools admin needs to revoke a key - for rotation, compromise response, or cleanup.
Required fields
apiKeyId- the API key identifier, passed as a path parameter (24-character hex)
Optional headers
Snappy-Account-Id- optional account scopingSnappy-Company-Id- required for multi-company users to select the target Company
Behavior Notes
- Deletion is immediate and permanent. Once deleted, any application using this key will receive
401 Unauthorizedon its next request. Update your applications to use a replacement key before deleting the old one. - Returns
204 No Contenton success - no response body.
Permissions
Authenticated via Authorization: Bearer <dashboard user JWT>. Only Company owners and tools admins have access.
Authorizations
User Bearer Authentication
Use a dashboard user JWT in the Authorization header when managing API keys from the Snappy dashboard:
Authorization: Bearer YOUR_JWTFor multi-company users, also pass Snappy-Company-Id to select the target company.
Headers
Optional account identifier for swag validation/filtering.
"acc123456"
Optional company identifier for swag validation/filtering.
"cmp123456"
Path Parameters
The API key id.
^[a-fA-F0-9]{24}$"4a7f2b9C1E3d8f0A9B6c4D2e"
Response
No Content