Team Integrations API ​
Endpoints for managing team collaboration platform integrations.
Base URL ​
/api/integrations/channelsEndpoints ​
List Connections ​
http
GET /api/integrations/channelsResponse:
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/:typePath Parameters:
| Parameter | Type | Values |
|---|---|---|
type | string | slack, 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/:typeHandles OAuth redirect from Slack/Discord. Not called directly.
List Remote Channels ​
http
GET /api/integrations/channels/:id/channelsReturns available channels from the connected workspace.
Response:
json
{
"channels": [
{ "id": "C123", "name": "general", "isPrivate": false }
]
}Update Settings ​
http
PUT /api/integrations/channels/:id/settingsRequest Body:
json
{
"channels": [],
"notifySettings": {
"newComment": { "channelId": "C123", "enabled": true },
"approvalNeeded": { "channelId": "C456", "enabled": true }
}
}Delete Connection ​
http
DELETE /api/integrations/channels/:idResponse:
json
{
"success": true
}