API Keys

Permanently revokes an API key; requests using its secret stop authenticating immediately. Default and agent-backend keys cannot be deleted.

delete/api_keys/{id}

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/api_keys/{id}
  • Auth: HTTP bearer

Response

api key deleted

deletedboolean required

Always true: the key was revoked.

idstring required

The ID of the revoked key.

Example response

{
  "deleted": true,
  "id": "apik_xxxxxxxxxxxxxx"
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      endpoint added