Microsoft Teams Integration
Connect and manage Microsoft Teams channels, messages, and members through ConstellationAPI.
Overview
Microsoft Teams integration uses Apideck's Messaging Unified API, providing a consistent interface to Teams' collaboration and messaging features.
Prerequisites
- Microsoft Teams account with appropriate permissions
- Apideck account with Microsoft Teams integration enabled
- Tenant created in ConstellationAPI
Authorization
Step 1: Create Vault Session
curl -X POST http://localhost:3007/auth/vault-session \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-internal-key" \
-H "X-Tenant-Id: my-tenant" \
-d '{
"integration": "microsoft-teams"
}'
Step 2: Authorize
- Open the
sessionUrifrom the response - Complete OAuth flow in Apideck Vault
- Grant necessary permissions
Common Operations
List Channels
curl http://localhost:3007/teams/channels \
-H "X-API-KEY: your-internal-key" \
-H "X-Tenant-Id: my-tenant"
Send Message
curl -X POST http://localhost:3007/teams/channels/19:abc123@thread.tacv2/messages \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-internal-key" \
-H "X-Tenant-Id: my-tenant" \
-d '{
"content": "Hello team! Here is an update.",
"subject": "Weekly Update"
}'
Get Channel Members
curl http://localhost:3007/teams/channels/19:abc123@thread.tacv2/members \
-H "X-API-KEY: your-internal-key" \
-H "X-Tenant-Id: my-tenant"
Best Practices
- Channel Selection: Verify channel IDs before sending messages
- Message Formatting: Use appropriate formatting for messages
- Thread Management: Reply to existing messages when appropriate
- Member Management: Manage channel memberships carefully