Skip to content

Delete API Key

POST/web/v1/workspaces/{workspaceId}/api-keys/delete JWT

Permanently deletes (soft-delete) an API key. Deleted keys cannot be recovered or re-enabled.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-Workspace-IdTarget workspace ID

Request Parameters

NameTypeRequiredInDescription
workspaceIdstringRequiredpathWorkspace business ID
keyIdstringRequiredbodyBusiness ID of the API key to delete

Success Response

No Content 204

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}
Forbidden — not workspace owner 403
{
  "success": false,
  "code": "4030",
  "message": "Only workspace owner can manage API keys"
}

Notes

  • This is a soft-delete operation; the key record is marked as deleted but not physically removed.
  • Deleted keys can no longer authenticate API requests and cannot be re-enabled.
  • Only workspace OWNERs can delete API keys.

SlaunchX Internal Documentation