Skip to main content

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_name config 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
(HTTP 200 OK with JSON body)

Inbound Webhook

Receive messages from external platforms. This endpoint is called by Slack or LINE when a user sends a message.
This endpoint requires no authentication. Instead, each platform uses its own HMAC signature verification to ensure requests are genuine.

Response

The webhook validates the inbound request, extracts the message, and dispatches it to Shannon’s agent system asynchronously. The response is returned immediately.

Credential Formats

Slack Credentials

LINE Credentials

Webhook Behavior

Slack

  • Signature verification: Validates X-Slack-Request-Timestamp and X-Slack-Signature headers using HMAC-SHA256 with the channel’s signing_secret
  • Clock skew: Requests older than 5 minutes are rejected
  • URL verification: Automatically responds to Slack’s url_verification challenge during app setup
  • Bot filtering: Messages from bots are ignored to prevent loops
  • Supported events: message and app_mention

LINE

  • Signature verification: Validates X-Line-Signature header using HMAC-SHA256 (base64-encoded) with the channel’s channel_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 the agent_name field in the channel’s config to route incoming messages to a specific agent:
If 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