Skip to content

Rename a connection, or pause and resume it

PATCH
/connections/{connection_id}
curl --request PATCH \
--url https://api.global.stillbox.example/v1/connections/conn-7k2m9q4x8w3z5r6t \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "enabled": true }'
connection_id
required
string
Media typeapplication/json
object
name
string
<= 100 characters
enabled
boolean

Example generated

{
"name": "example",
"enabled": true
}

The connection

Media typeapplication/json
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

{
"kind": "telegram",
"state": "connecting"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

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"
}