The connection's latest messages and how each was answered
GET
/connections/{connection_id}/messages
const url = 'https://api.global.stillbox.example/v1/connections/conn-7k2m9q4x8w3z5r6t/messages';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/connections/conn-7k2m9q4x8w3z5r6t/messages \ --header 'Authorization: Bearer <token>'Messages are kept until a day after they’re answered. Replies stay in the sandbox.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”connection_id
required
string
Responses
Section titled “Responses”Messages, newest first
Media typeapplication/json
object
messages
required
Array<object>
object
id
required
integer format: int64
chat
required
string
sender
required
string
text
required
string
state
required
string
error
string
received_at
required
string format: date-time
replied_at
string format: date-time
Example
{ "messages": [ { "state": "pending" } ]}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"}