The sandbox's connections to Telegram, Slack, WhatsApp and webhooks
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/connections';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/connections \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Connections, oldest first
object
object
The bot’s username, the Slack workspace, or the WhatsApp number.
Telegram and WhatsApp. Opening it lets a chat talk to the agent; share it only with people who may.
Discord and Teams. Sent in a channel or chat with the bot, it lets that chat talk to the agent.
Discord. Adds the bot to a server, with the permissions to read and answer messages.
WhatsApp, Teams and webhook. Where messages are posted (Teams’ messaging endpoint); empty until the region has a public address.
WhatsApp: the webhook’s verify token.
Webhook: the bearer secret, which also signs replies. Shown only when the connection is created.
object
The chat on its platform (a Telegram chat, a Slack channel and thread, a WhatsApp number).
The person who connected it.
Example
{ "connections": [ { "kind": "telegram", "state": "connecting" } ]}The API key is missing or invalid
object
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
object
Example
{ "code": "not_found"}