Team Integrations
Purpose
Send TendSocial notifications to Slack, Discord, or Microsoft Teams.
Data Model
- Model:
CompanyTeamChannelConnection - Fields:
channelType,accessToken(encrypted),workspaceId,channels(JSON),notifySettings(JSON)
API Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /api/integrations/channels | List connections |
| POST | /api/integrations/channels/connect/:type | Start OAuth/webhook |
| GET | /api/integrations/channels/callback/:type | OAuth callback |
| GET | /api/integrations/channels/:id/channels | List remote channels |
| PUT | /api/integrations/channels/:id/settings | Update notification routing |
| DELETE | /api/integrations/channels/:id | Disconnect |
Notification Types
newComment- New comments on postsnewDM- Direct messagesnewMention- Brand mentionsapprovalNeeded- Pending approvalspostPublished- Published postspostFailed- Failed posts
Key Files
backend/src/routes/integrations/channels.tsbackend/src/infra/integrations/slack/backend/src/infra/integrations/discord/frontend/src/components/settings/IntegrationsSettings.tsx