Skip to Content
API ReferenceCommunity connections

Retrieve or remove a community server

Check which product variants give access through a server, channel, or group, then remove it from the store.

Removing a Discord server, Slack channel, Telegram group or channel, or WhatsApp group takes two steps, so you never cut access you did not mean to:

  1. GET the server. affected_variants lists every product variant that gives access through it.
  2. DELETE it with those variant IDs in affected_variant_ids. If the variants changed in between, the request returns 422 on affected_variant_ids and nothing is removed; read it again and decide.

The removal clears the server from those variants, so new buyers get no access through it. SellApp does not contact the platform: people who already joined keep their membership and roles, and the bot stays where it is until you remove it there. Removing the last Telegram or WhatsApp group (is_last: true) also disconnects that platform.

GET
/v2/community-connections/{platform}/servers/{server}

Retrieve one Discord server, Slack channel, Telegram group or channel, or WhatsApp group connected to the store, with the product variants that give access through it. Read it before removing it: the removal needs exactly these variant IDs. is_last tells you it is the platform's last one. 404 when the store has no such server on that platform. Requires the community API-key ability and both the store and community permissions in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

platform*string

The community platform.

Value in"discord""telegram""slack""whatsapp"
server*string

The platform's ID of the Discord server, Slack channel, Telegram group or channel, or WhatsApp group, as returned in servers[].id by GET /v2/community-connections.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/community-connections/discord/servers/server_ship_room' \  -H 'X-STORE: launch-lab'
{  "data": {    "platform": "discord",    "id": "server_ship_room",    "name": "The Ship Room",    "type": "guild",    "is_last": false,    "affected_variants": [      {        "product_id": 318,        "product": "Design kit",        "variant_id": 902,        "variant": "Community access"      }    ]  }}
DELETE
/v2/community-connections/{platform}/servers/{server}

Remove one Discord server, Slack channel, Telegram group or channel, or WhatsApp group from the store, and clear it from every product variant that gives access through it, including deleted ones. Buyers of those variants get no access through it from then on. SellApp does not contact the platform: members, roles and the bot stay as they are there. Removing the last Telegram or WhatsApp group also disconnects that platform. Confirm the variants first: read them with GET on the same path and send their IDs as affected_variant_ids (in any order). When they differ from the variants that use it now, the request returns 422 on affected_variant_ids and nothing is removed. Leave affected_variant_ids out, or send an empty list, when no variant uses it. Clients that cannot send a body with DELETE can send the IDs in the query string instead, as affected_variant_ids[]=902. A repeated request returns 404 once it is removed. Requires the community API-key ability and both the store and community permissions in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

platform*string

The community platform.

Value in"discord""telegram""slack""whatsapp"
server*string

The platform's ID of the Discord server, Slack channel, Telegram group or channel, or WhatsApp group, as returned in servers[].id by GET /v2/community-connections.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
affected_variant_ids?array<>

The IDs of every variant that gives access through it, from affected_variants[].variant_id of the read. Defaults to none.

Default[]

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://sell.app/api/v2/community-connections/discord/servers/server_ship_room' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "affected_variant_ids": [    902  ]}'
{  "data": {    "platform": "discord",    "id": "server_ship_room",    "name": "The Ship Room",    "removed": true,    "access_rules_removed": [      {        "product_id": 318,        "product": "Design kit",        "variant_id": 902,        "variant": "Community access"      }    ]  }}