Dashboard
APISubscription Bot Access Token Revocation API
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Revoke a Subscription Bot Access Token

Disable an unused access code for your Telegram subscription bot or Discord subscription bot. Revocation does not terminate a membership already granted by a code.

DELETE/v2/projects/{project_id}/access-tokens/{access_token_id}

Authorization

Bearer TokenRequired

Requires memberships:delete for a human admin. Restricted project API keys need access-tokens:revoke.

Path Parameters

project_idstringrequired

The UUID of the project.

access_token_idstringrequired

UUID of the activated access token to revoke.

Behavior and recovery

Only activated, unused tokens can be revoked. An already revoked token returns 204 again. A redeemed token or one reserved for pending billing returns 409. An unknown or unactivated token ID returns 404.

Find IDs through List Tokens. To end an existing membership, use Delete Membership.

Last updated: