Skip to main content
Creates a ticket on one of your chat channels, handled by AI (your bot) until you hand it over. Send one message to start a live chat, or the whole transcript at once. See Bring your own chatbot for the full flow.

Authentication

A Read & write live key. See Authentication.

Body

string
required
One of your chat channels. It decides which teams see the ticket and where a handover goes.
array
required
1 to 100 messages, oldest first. The first must have role: "user".
string
Your own ID for the chat, up to 128 characters. Unique per organization: a second ticket with the same ID returns 409 ticket_external_id_taken.
object
Who the customer is. Leave it out for an anonymous visitor.
Unknown fields are refused with 400 unknown_field.

Response

201 with the Ticket object, including its conversations. Post further messages to the conversation with role: "primary".

Example

Response
The response is shortened here; it carries every field of the ticket object.

Errors