member.resource_removed

Subscriber loses access to a specific resource.

When this fires

A subscriber is evicted from a specific Telegram resource — after a subscription expires or is cancelled, after a ban, kick or removal, or when a pass window closes or is cancelled. Each resource revocation emits its own event. Nothing is emitted when another still-active subscription of theirs grants the same resource: the invite link is revoked but the member stays in.

Required ability

project-user:view — token must carry this at mint time to subscribe an endpoint to this event.

Payload

{
  "id": "evt_01HX...",
  "type": "member.resource_removed",
  "created_at": "2026-06-18T10:06:00Z",
  "api_version": "2026-05-01",
  "project_id": "7f3d1c92-8b45-4e6a-9d21-5c8e0a4b6f13",
  "data": {
    "subscription_id": "5b7e2d40-1a86-4c39-97f2-e83d0b16c5a4",
    "subscriber_id": "2a91c4e7-6f38-4b52-8e0d-9c1a7b3f5d80",
    "resource_id": "b73c5f21-9d80-4a6e-8215-4f70ce13a9d6",
    "resource_kind": "telegram:channel",
    "connector": "telegram",
    "grant_id": "7d1c3e9a-2b64-4f0e-9a58-3c6b1d8e2f47",
    "mode": "bearer_link"
  }
}

Field reference

FieldTypeNotes
idstring ULIDUnique event id, prefixed evt_. Use for idempotent processing.
typestringAlways member.resource_removed for this event.
created_atISO 8601 timestampServer-side emission time.
api_versionstringWebhook API contract version.
project_idstring UUIDProject this event belongs to.
data.subscription_idstring UUIDSubscription whose grant was revoked.
data.subscriber_idstring UUIDSubscriber's project-scoped user id.
data.resource_idstring UUIDResource the subscriber lost access to.
data.resource_kindstringThe resource's kind: manual, or connector:kind (telegram:channel).
data.connectorstring | nullThe connector the member was removed through (telegram today).
data.grant_idstring UUID | nullThe access ledger row that ended, now revoked; read it back with GET /v1/subscriptions/{subscription}/grants. Null when the ledger never held a grant for this resource.
data.modeenum: bearer_link | membership | role | creator_task | nullHow the access had been given.

Caveats

  • Multiple revocations for the same subscriber typically arrive in close succession when a subscription expires; use SB-Event-Id for dedupe.
  • A manual perk emits this event only when its grant is revoked on the ledger; a place a connector gates emits it once the connector has been asked to remove the member.

How is this guide?

On this page

Subscriby is a product designed by you — for you.

No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request