Skip to main content
POST
Typescript (SDK)

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Message sent in a test chat with an agent.

service_name
string
required

Name of the service producing the message

source
string
required

Name of the source of the message - identifies the user, like an email or username.

Example:

"user@email.com"

test_id
string
required

Channel-manager-side ID of the session (see Session.channel_manager_sid)

agent_id
string
required

ID of the agent with which the chat is taking place

text
string | null

The text of the message

Example:

"Hello"

org_name
string | null
deprecated

Unused: Name of the organization associated with the agent

override_timestamp
string | null

Override for the timestamp of the message

session_start
boolean
default:false

Whether this message is the start of a new session

Response

Successful Response

Response from an agent in a test chat.

test_id
string
required

Channel-manager-side ID of the session (see Session.channel_manager_sid)

agent_id
string
required

ID of the agent with which the chat is taking place

response
any | null
required

The response from the agent

text
string

The text of the message that elicited the response

response_text
string

The text of the response