APIRevoke API Key

Revoke API Key

Revoke an API key, preventing any further use.

DELETE/v2/projects/{project_id}/integrations/api-keys/{key_id}

Authorization

Bearer TokenRequired

Path Parameters

project_idstringRequired

The unique identifier of the project.

key_idstringRequired

The unique identifier of the API key to revoke.

Request
curl -X DELETE "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/integrations/api-keys/API_KEY_ID" \
  -H "Authorization: Bearer YOUR_TOKEN"
API key revokedapplication/json
{
  "ok": true,
  "request_id": "11111111-1111-1111-1111-111111111111",
  "method": "DELETE",
  "path": "/v2/projects/YOUR_PROJECT_ID/integrations/api-keys/API_KEY_ID",
  "code": 200,
  "message": "API key revoked successfully",
  "data": {
    "id": "22222222-2222-2222-2222-222222222222",
    "label": "staging bot",
    "last_four": "1d9e",
    "created_at": "2025-02-10T09:30:12.000Z",
    "created_by": null,
    "updated_at": "2025-02-10T09:30:12.000Z",
    "updated_by": null,
    "revoked_at": "2025-02-12T09:00:00.000Z",
    "revoked_by": null
  }
}

Last updated: