Skip to main content
POST
/
v1
/
chat
Send Message
curl --request POST \
  --url https://api.example.com/v1/chat \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "message": "<string>",
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "previous_chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "channel": "api",
  "customer_number": "<string>",
  "turncall_number": "<string>",
  "metadata": {}
}
'
{}

Headers

authorization
string | null

Body

application/json
agent_id
string<uuid>
required
message
string
required
Required string length: 1 - 4096
session_id
string<uuid> | null
previous_chat_id
string<uuid> | null
channel
string
default:api
Pattern: ^(sms|web|api)$
customer_number
string | null
turncall_number
string | null
metadata
Metadata · object

Response

Successful Response

The response is of type Response Send Message V1 Chat Post · object.