Skip to content

Team Integrations API ​

Endpoints for managing team collaboration platform integrations.

Base URL ​

/api/integrations/channels

Endpoints ​

List Connections ​

http
GET /api/integrations/channels

Response:

json
{
  "connections": [
    {
      "id": "uuid",
      "channelType": "slack",
      "workspaceName": "My Workspace",
      "channels": [],
      "notifySettings": {},
      "isActive": true,
      "createdAt": "2024-01-01T00:00:00Z"
    }
  ]
}

Initiate Connection ​

http
POST /api/integrations/channels/connect/:type

Path Parameters:

ParameterTypeValues
typestringslack, discord, teams

Request Body:

json
{
  "redirectUri": "https://app.tendsocial.com/settings",
  "webhookUrl": "https://..." // Teams only
}

Response:

json
{
  "authUrl": "https://slack.com/oauth/..." // For OAuth flows
}
// OR
{
  "success": true // For Teams webhook
}

OAuth Callback ​

http
GET /api/integrations/channels/callback/:type

Handles OAuth redirect from Slack/Discord. Not called directly.


List Remote Channels ​

http
GET /api/integrations/channels/:id/channels

Returns available channels from the connected workspace.

Response:

json
{
  "channels": [
    { "id": "C123", "name": "general", "isPrivate": false }
  ]
}

Update Settings ​

http
PUT /api/integrations/channels/:id/settings

Request Body:

json
{
  "channels": [],
  "notifySettings": {
    "newComment": { "channelId": "C123", "enabled": true },
    "approvalNeeded": { "channelId": "C456", "enabled": true }
  }
}

Delete Connection ​

http
DELETE /api/integrations/channels/:id

Response:

json
{
  "success": true
}

TendSocial Documentation