1
Authenticate the customer
Get a
customer_access_token from the Customer Accounts API. Which grant type you use depends on your architecture:- Agent token grant
- Identity token grant
2
Start or resume a chat
Call
start-chat to open a new conversation, or resume-chat if the customer has an existing thread. Both return a chat_id you’ll use for all subsequent calls in that conversation.3
Send and receive messages
Call
send-event to deliver customer messages to agents. To receive agent replies in real time, connect to the RTM API and subscribe to the incoming_event push — each agent message arrives as a push event with the message content and chat_id.