Skip to content

The sandbox's connections to Telegram, Slack, WhatsApp and webhooks

GET
/sandboxes/{id}/connections
curl --request GET \
--url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/connections \
--header 'Authorization: Bearer <token>'
id
required
string

Connections, oldest first

Media typeapplication/json
object
connections
required
Array<object>
object
id
required
string
sandbox_id
required
string
kind
required
string
Allowed values: telegram slack discord teams whatsapp webhook
name
required
string
enabled
required
boolean
state
required
string
Allowed values: connecting connected error
error
string
address
required

The bot’s username, the Slack workspace, or the WhatsApp number.

string
pair_link

Telegram and WhatsApp. Opening it lets a chat talk to the agent; share it only with people who may.

string
pair_command

Discord and Teams. Sent in a channel or chat with the bot, it lets that chat talk to the agent.

string
invite_link

Discord. Adds the bot to a server, with the permissions to read and answer messages.

string
webhook_url

WhatsApp, Teams and webhook. Where messages are posted (Teams’ messaging endpoint); empty until the region has a public address.

string
verify_token

WhatsApp: the webhook’s verify token.

string
reply_url
string
secret

Webhook: the bearer secret, which also signs replies. Shown only when the connection is created.

string
chats
required
Array<object>
object
id
required

The chat on its platform (a Telegram chat, a Slack channel and thread, a WhatsApp number).

string
name
required
string
created_at
required
string format: date-time
last_message_at
string format: date-time
created_at
required
string format: date-time
by

The person who connected it.

string

Example

{
"connections": [
{
"kind": "telegram",
"state": "connecting"
}
]
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}