Connect an agent to a Slack workspace

http
POST /projects/{project_reference}/channels

Connect a Slack agent. Requires project.channels.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
platformstringYesMessaging platform: slack
agent_idstringYesAgent ID from listChannelAgents (MCP: list_channel_agents) for the same runtime target
namestringDisplay name, 1-255 characters
respond_tostringWhich Slack messages to answer: mentions, direct_messages or all
allowed_slack_channel_idsarraySlack channel IDs. Overlap with another channel in the same workspace is rejected with resource-already-exists. IDs come from listSlackChannels (MCP: list_slack_channels); empty means every Slack channel the bot is in. A preview_branch target needs at least one.
welcome_messagestring,nullWelcome message; null clears
error_messagestring,nullMessage shown when the agent fails; null clears
max_response_tokensinteger,nullMaximum response tokens, 1-65536; null clears
runtime_target_kindstringRuntime target: main_branch, environment or preview_branch
target_environment_idstring,nullEnvironment ID; required when runtime_target_kind is environment
target_branch_idstring,nullBranch ID; required when runtime_target_kind is preview_branch

Responses

StatusDescription
201Created channel
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
502Bad gateway