Dashboard
APIBan User API - Block Members From Your Bot | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Examples
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Ban User - Block Members From Your Subscription Bot

Block a member from accessing your paid community on Telegram or Discord. Banned users cannot subscribe to new plans. Banning can terminate existing memberships and remove access; unbanning does not restore terminated memberships. You can optionally include a reason for internal record-keeping.

PUT/v2/projects/{project_id}/ban/{user_id}

Authorization

Bearer API KeyRequired

API key access: Unrestricted project API key required. Restricted keys cannot call this endpoint.

Path Parameters

project_idstringrequired

The unique identifier of the project.

user_idstringrequired

The unique identifier of the user to ban (numeric ID).

Request Body

reasonstring

Optional reason for banning the user (1-500 characters).

If removal_pending, retry_scheduled or warnings reports unfinished removal, the ban is recorded but access removal must not be treated as complete.

Last updated: