Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
channels
/
{channel}
Connect Channel
curl --request POST \
  --url https://app.opencomputer.dev/v1/agents/{agentId}/channels/{channel} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "bot_token": "<string>"
}
'
{
  "channel": "telegram",
  "status": "connected"
}
Connect a messaging channel to an agent. CLI equivalent: oc agent connect <id> <channel>
agentId
string
required
Agent ID
channel
string
required
Channel type (e.g. telegram)
bot_token
string
Bot token (required for Telegram)
{
  "channel": "telegram",
  "status": "connected"
}