Create Agent Slack Route
Route a Slack channel, or the app's direct messages, to an agent.
Route a Slack channel, or the app's direct messages, to an agent.
Messages on the routed surface start a conversation with this agent instead of
the workspace's default assistant; thread replies keep resuming their own
conversation. Requires an active Slack integration in the workspace. Each
channel — and the DM surface — can be routed to one agent at a time; routing an
already-routed surface returns 409 (delete the existing rule first via
DELETE /api/v1/slack-routes/{route_id}).
Authorization
HTTPBearer In: header
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.levainlabs.com/api/v1/agents/string/slack-routes" \ -H "Content-Type: application/json" \ -d '{ "kind": "channel" }'{
"id": "string",
"agent_id": "string",
"integration_id": "string",
"kind": "channel",
"slack_channel_id": "string",
"created_at": "string"
}