logo
WorkspacesDelete workspace API key

Delete workspace API key

Revoke and delete the workspace's API key. The key is immediately invalidated and can no longer be used for authentication. Returns 404 if no key exists.

Requires a platform API key (sk_user_...). Workspace keys are rejected with 403. Only owners and admins can manage API keys.

curl -X DELETE "https://api.sendkit.ai/v1/workspaces/example_string/api-key" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "message": "API key deleted"
  }
}
DELETE
/v1/workspaces/{workspaceId}/api-key
DELETE
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) only. Workspace keys are rejected.

Platform API key (sk_user_...) only. Workspace keys are rejected.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) only. Workspace keys are rejected.

Path Parameters

Responses

successboolean
dataobject