POST /projects/{project_reference}/channelsConnect a Slack agent. Requires project.channels.write.
Servers
[
{
"url": "https://api.veryfront.com"
}
]Authentication
[
{
"bearerAuth": []
},
{
"apiKeyAuth": []
}
]{
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT or API Key",
"description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."
},
"apiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key",
"description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."
}
}Parameters
Parameter contracts
[
{
"schema": {
"$ref": "#/components/schemas/ProjectReference"
},
"required": true,
"description": "Project slug, UUID, or domain that identifies the project.",
"name": "project_reference",
"in": "path"
}
]Request body
{
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"slack"
],
"description": "Messaging platform: slack"
},
"agent_id": {
"type": "string",
"minLength": 1,
"description": "Agent ID from listChannelAgents (MCP: list_channel_agents) for the same runtime target"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Display name, 1-255 characters"
},
"respond_to": {
"type": "string",
"enum": [
"mentions",
"direct_messages",
"all"
],
"description": "Which Slack messages to answer: mentions, direct_messages or all"
},
"allowed_slack_channel_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"maxItems": 250,
"description": "Slack 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_message": {
"type": [
"string",
"null"
],
"maxLength": 4000,
"description": "Welcome message; null clears"
},
"error_message": {
"type": [
"string",
"null"
],
"maxLength": 4000,
"description": "Message shown when the agent fails; null clears"
},
"max_response_tokens": {
"type": [
"integer",
"null"
],
"exclusiveMinimum": 0,
"maximum": 65536,
"description": "Maximum response tokens, 1-65536; null clears"
},
"runtime_target_kind": {
"type": "string",
"enum": [
"main_branch",
"environment",
"preview_branch"
],
"description": "Runtime target: main_branch, environment or preview_branch"
},
"target_environment_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Environment ID; required when runtime_target_kind is environment"
},
"target_branch_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Branch ID; required when runtime_target_kind is preview_branch"
}
},
"required": [
"platform",
"agent_id"
]
}
}
}
}Responses
201
Created channel
{
"description": "Created channel",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
}
}400
Bad request
{
"description": "Bad request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}401
Unauthorized
{
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}403
Forbidden
{
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}404
Not found
{
"description": "Not found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}409
Conflict
{
"description": "Conflict",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}500
Server error
{
"description": "Server error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}502
Bad gateway
{
"description": "Bad gateway",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}Referenced contracts
components/parameters/ProjectReference
{
"schema": {
"$ref": "#/components/schemas/ProjectReference"
},
"required": true,
"description": "Project slug, UUID, or domain that identifies the project.",
"name": "project_reference",
"in": "path"
}components/schemas/ProjectReference
{
"type": "string"
}components/schemas/Channel
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"project_id": {
"type": "string",
"format": "uuid"
},
"installation_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"platform": {
"type": "string",
"enum": [
"slack"
]
},
"name": {
"type": [
"string",
"null"
]
},
"agent_id": {
"type": [
"string",
"null"
],
"minLength": 1
},
"enabled": {
"type": "boolean"
},
"platform_team_id": {
"type": [
"string",
"null"
]
},
"platform_bot_id": {
"type": [
"string",
"null"
]
},
"workspace_name": {
"type": [
"string",
"null"
]
},
"respond_to": {
"type": "string",
"enum": [
"mentions",
"direct_messages",
"all"
]
},
"allowed_slack_channel_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "string",
"enum": [
"connected",
"needs_reauth",
"error"
]
},
"welcome_message": {
"type": [
"string",
"null"
]
},
"error_message": {
"type": [
"string",
"null"
]
},
"max_response_tokens": {
"type": [
"integer",
"null"
],
"exclusiveMinimum": 0
},
"runtime_target_kind": {
"type": "string",
"enum": [
"main_branch",
"environment",
"preview_branch"
]
},
"target_environment_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"target_branch_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"resolved_target": {
"type": "object",
"properties": {
"runtime_target": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"main_branch",
"environment",
"preview_branch"
]
},
"target_environment_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"target_branch_id": {
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"required": [
"kind",
"target_environment_id",
"target_branch_id"
]
},
"resolved_environment": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name"
]
},
"resolved_branch": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
"resolved_deployment": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
},
"runtime_version": {
"type": [
"string",
"null"
]
},
"deployment_revision": {
"type": [
"string",
"null"
]
},
"last_deployed_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"runtime_version",
"deployment_revision",
"last_deployed_at"
]
},
"resolved_managed_domain": {
"type": [
"object",
"null"
],
"properties": {
"domain": {
"type": "string"
},
"health_url": {
"type": [
"string",
"null"
]
}
},
"required": [
"domain",
"health_url"
]
},
"resolved_invoke_mode": {
"type": [
"string",
"null"
],
"enum": [
"dispatch_override",
"managed_domain",
null
]
},
"last_resolution_error": {
"type": [
"object",
"null"
],
"properties": {
"code": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"retryable",
"message"
]
}
},
"required": [
"runtime_target",
"resolved_environment",
"resolved_branch",
"resolved_deployment",
"resolved_managed_domain",
"resolved_invoke_mode",
"last_resolution_error"
]
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"project_id",
"installation_id",
"platform",
"name",
"agent_id",
"enabled",
"platform_team_id",
"platform_bot_id",
"workspace_name",
"respond_to",
"allowed_slack_channel_ids",
"status",
"welcome_message",
"error_message",
"max_response_tokens",
"runtime_target_kind",
"target_environment_id",
"target_branch_id",
"resolved_target",
"created_at",
"updated_at"
]
}components/schemas/Problem
{
"type": "object",
"properties": {
"cause": {
"type": "string",
"enum": [
"schedule_concurrency_forbidden",
"schedule_fire_in_progress",
"schedule_run_limit_reached"
],
"description": "Schedule admission refusal."
},
"idempotency": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"in_progress",
"payload_mismatch",
"outcome_unknown"
]
},
"operation": {
"type": "string",
"minLength": 1
},
"retryable": {
"type": "boolean"
},
"retry_after_seconds": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"expires_at": {
"type": [
"string",
"null"
]
},
"recovery": {
"type": "object",
"properties": {
"available": {
"type": "boolean"
},
"description": {
"type": "string"
},
"resource_url": {
"type": "string"
}
},
"required": [
"available",
"description"
]
}
},
"required": [
"state",
"operation",
"retryable",
"retry_after_seconds",
"expires_at"
],
"description": "Replay status, retry timing, and recovery lookup."
},
"type": {
"type": "string",
"description": "URI reference identifying the problem type",
"example": "https://api.veryfront.com/errors/validation-failed"
},
"title": {
"type": "string",
"description": "Short human-readable summary of the problem",
"example": "Validation Failed"
},
"status": {
"type": "integer",
"minimum": 100,
"maximum": 599,
"description": "HTTP status code",
"example": 400
},
"code": {
"type": "string",
"description": "Stable machine-readable error code",
"example": "RUN_INVALID_INPUT"
},
"detail": {
"type": "string",
"description": "Human-readable explanation specific to this occurrence",
"example": "The 'email' field must be a valid email address"
},
"instance": {
"type": "string",
"description": "URI reference identifying the specific occurrence",
"example": "/projects/my-project/members"
},
"slug": {
"type": "string",
"description": "Stable identifier for the problem type",
"example": "validation-failed"
},
"category": {
"type": "string",
"enum": [
"AUTH",
"RESOURCE",
"VALIDATION",
"DATABASE",
"SUBSCRIPTION",
"INTEGRATION",
"INTERNAL"
],
"description": "API error category",
"example": "VALIDATION"
},
"suggestion": {
"type": "string",
"description": "Suggested action to resolve the problem",
"example": "Check the request body and query parameters against the API documentation."
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "Field path that caused the error",
"example": "email"
},
"message": {
"type": "string",
"description": "Error message for this field",
"example": "Invalid email format"
},
"code": {
"type": "string",
"description": "Error code for this field",
"example": "INVALID_FORMAT"
}
},
"required": [
"field",
"message"
]
},
"description": "Detailed field-level errors for validation failures"
}
},
"required": [
"type",
"title",
"status"
]
}Operation contract
{
"operationId": "createChannel",
"tags": [
"integrations/Channels/Channels"
],
"summary": "Connect an agent to a Slack workspace",
"description": "Connect a Slack agent. Requires project.channels.write.",
"parameters": [
{
"$ref": "#/components/parameters/ProjectReference"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"slack"
],
"description": "Messaging platform: slack"
},
"agent_id": {
"type": "string",
"minLength": 1,
"description": "Agent ID from listChannelAgents (MCP: list_channel_agents) for the same runtime target"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Display name, 1-255 characters"
},
"respond_to": {
"type": "string",
"enum": [
"mentions",
"direct_messages",
"all"
],
"description": "Which Slack messages to answer: mentions, direct_messages or all"
},
"allowed_slack_channel_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"maxItems": 250,
"description": "Slack 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_message": {
"type": [
"string",
"null"
],
"maxLength": 4000,
"description": "Welcome message; null clears"
},
"error_message": {
"type": [
"string",
"null"
],
"maxLength": 4000,
"description": "Message shown when the agent fails; null clears"
},
"max_response_tokens": {
"type": [
"integer",
"null"
],
"exclusiveMinimum": 0,
"maximum": 65536,
"description": "Maximum response tokens, 1-65536; null clears"
},
"runtime_target_kind": {
"type": "string",
"enum": [
"main_branch",
"environment",
"preview_branch"
],
"description": "Runtime target: main_branch, environment or preview_branch"
},
"target_environment_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Environment ID; required when runtime_target_kind is environment"
},
"target_branch_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Branch ID; required when runtime_target_kind is preview_branch"
}
},
"required": [
"platform",
"agent_id"
]
}
}
}
},
"responses": {
"201": {
"description": "Created channel",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Channel"
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"409": {
"description": "Conflict",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"502": {
"description": "Bad gateway",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
}
},
"x-documentation-source-tag": "Channels",
"x-canonical-documentation": {
"domain": "integrations",
"resource": "Channels",
"subgroup": "Channels",
"name": "Connect an agent to a Slack workspace",
"description": "Connect a Slack agent. Requires project.channels.write.",
"operationId": "createChannel"
},
"x-mint": {
"href": "/cloud/rest/api-reference/integrations-channels-channels/connect-an-agent-to-a-slack-workspace"
}
}