Delete a token gate
The apps it applied to let people in without it from the next sign-in. Needs `org.tokenGates.edit`. Recorded as `token_gate.deleted`.
/v1/orgs/{org}/brands/{brand}/token-gates/{gate}The apps it applied to let people in without it from the next sign-in. Needs org.tokenGates.edit. Recorded as token_gate.deleted.
Authorization
bearer An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.
In: header
Path Parameters
The org's id
^org_[0-9a-hjkmnp-tv-z]{26}$The brand's id
^brd_[0-9a-hjkmnp-tv-z]{26}$The token gate's id
^tkg_[0-9a-hjkmnp-tv-z]{26}$Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.synq.build/v1/orgs/org_01h455vb4pex5vsknk084sn02q/brands/brd_01h455vb4pex5vsknk084sn02q/token-gates/tkg_01h455vb4pex5vsknk084sn02q" \ -H "Authorization: Bearer $SYNQ_API_KEY"Set up a Telegram group's window PUT
Saves what is sent and keeps the rest: before announcing, any setting; after, only quiet hours, `name_unverified`, `message_reachable` and `headline` (409 for the rest: the deadline moves only later, with extend, and the countdown moves to another topic with move). What its messages call the brand’s members is the brand’s, `members_called` on `PATCH /v1/orgs/{org}/brands/{brand}/community-messages`. Answers the window with its schedule for these settings. The group needs a token gate that lets people in, with `existing_members: verify` (409 otherwise, with the fix). Needs `org.integrations.edit`. A change after announcing is recorded as `telegram_group.window_updated`.
Delete a token gate DELETE
The apps it applied to let people in without it from the next sign-in. Needs `org.tokenGates.edit`. Recorded as `token_gate.deleted`. Kept for callers of the org's own routes from before gates belonged to a brand: `/v1/orgs/{org}/brands/{brand}/token-gates` does the same within one brand.