Dashboard
APISubscription Bot Access Token List 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_•••'

List Subscription Bot Access Tokens

Read and filter access-token metadata for your Telegram subscription bot or Discord subscription bot. Plaintext codes and activation tickets are never returned.

GET/v2/projects/{project_id}/access-tokens

Authorization

Bearer TokenRequired

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

Path Parameters

project_idstringrequired

The UUID of the project.

Query Parameters

limitintegerDefault: 25

Page size from 1 to 100.

offsetintegerDefault: 0

Nonnegative number of rows to skip.

statusstringDefault: all

active, claimed, revoked, billing_pending, or all.

plan_idstring

Filter by plan UUID.

created_bystring

Creating admin user ID or key:<api key id>.

claimed_bystring

Claimant user ID.

created_frominteger

Inclusive creation lower bound, Unix milliseconds.

created_tointeger

Inclusive creation upper bound, Unix milliseconds.

claimed_frominteger

Inclusive claim lower bound, Unix milliseconds.

claimed_tointeger

Inclusive claim upper bound, Unix milliseconds.

Behavior and recovery

Filters combine with AND. Unknown query fields, invalid values, and reversed date bounds return 422.

Rows include access_token_id, plan_id, duration fields, created_at, revoked_at, claimed_at, claimed_by, claimed_membership_id, and grant_end_date. Nullable fields describe events that have not happened. Billing fields may also be present. All timestamps here are Unix milliseconds, with null for no expiration.

created_by, code_hint (last six code characters), and note help identify batches. No plaintext code or token hash is returned. A list cannot recover lost codes.

Only activated tokens appear in this list. See Prepare Tokens for code capture, or Revoke Token to disable an unused code.

Last updated: