Overview
The Channels API lets you integrate Shannon with external messaging platforms. Create channels to connect Slack workspaces or LINE accounts, and Shannon will automatically process incoming messages through its agent system.Features
- Slack integration with event subscription and bot messaging
- LINE integration with webhook-based messaging
- HMAC signature verification for secure inbound webhooks
- Agent routing via
agent_nameconfig to direct messages to specific agents - Per-user isolation with unique constraint on type + name per user
- Credential security — credentials are never exposed in API responses
Create Channel
Create a new messaging channel.Request Body
Response
The
credentials field is never returned in API responses for security. Store your credentials securely on your side.List Channels
List all channels for the authenticated user.Response
Get Channel
Get details of a specific channel.Response
Update Channel
Update an existing channel. All fields are optional — only provided fields will be updated.Request Body
Response
Returns the updated channel object (same schema as Get Channel).Delete Channel
Delete a channel permanently.Response
Response
Inbound Webhook
Receive messages from external platforms. This endpoint is called by Slack or LINE when a user sends a message.Response
Credential Formats
Slack Credentials
LINE Credentials
Webhook Behavior
Slack
- Signature verification: Validates
X-Slack-Request-TimestampandX-Slack-Signatureheaders using HMAC-SHA256 with the channel’ssigning_secret - Clock skew: Requests older than 5 minutes are rejected
- URL verification: Automatically responds to Slack’s
url_verificationchallenge during app setup - Bot filtering: Messages from bots are ignored to prevent loops
- Supported events:
messageandapp_mention
LINE
- Signature verification: Validates
X-Line-Signatureheader using HMAC-SHA256 (base64-encoded) with the channel’schannel_secret - Reply behavior: Sends a “Thinking…” reply immediately using the reply token
- Message handling: Processes the first text message from the event payload
Agent Routing
Set theagent_name field in the channel’s config to route incoming messages to a specific agent:
agent_name is not set, messages are handled by Shannon’s default agent routing.
Channel Response Object
Error Responses
All errors follow the standard format:
Next Steps
Submit Tasks
Submit tasks directly via API
Agents
Configure agents for channel routing