Use the Ticket API to send and manage support tickets by interacting with a ticket automation virtual agent.

All requests should be made to your API base URL: https://api.ultimate.ai.

JSON format

Ticket events are represented as JSON objects with the following properties:

NameTypeRequiredDescription
platformConversationIdstringYesUnique ID for the conversation, generated by the custom CRM application.
textstringNoThe text content of the ticket update or message.
platformstringYesName of the platform sending the request. For custom CRM applications, use "PUBLIC_API".
metaDataarrayNoMetadata variables to store in the session.
metaData.keystringYesThe variable or session parameter name.
metaData.valuestringYesThe value for the variable. Only string values are supported.
metaData.sanitizebooleanNoOptional. Set to true for personally identifiable information (PII) data.

Converse with a Ticket Automation Agent

  • POST /converse/ticket

Sends an event to initiate or update a ticket conversation. The API acknowledges your message with a 200 OK and processes it asynchronously. Any response from the virtual agent will be delivered via your configured webhook.

Parameters

NameTypeInRequiredDescription
AuthorizationstringheaderYesAPI key for the bot. Generate the key from the Custom CRM integration page in the Ultimate.ai dashboard. See the Authentication article for details.
botidstringheaderYesThe ID of the bot sending or receiving the event.

Example body

{  "platformConversationId": "f15ee8b6-cf3e-4eaf-bf27-507ded70519a",  "text": "I need to update my shipping address",  "platform": "PUBLIC_API",  "metaData": [    {      "key": "order_id",      "value": "ABC123",      "sanitize": true    },    {      "key": "customer_id",      "value": "user-9742"    }  ]}

Responses

200 The request has been acknowledged and will be processed. The actual response will be delivered through webhooks.
400 Bad request. The request body is invalid or missing required fields.
401 Unauthorized. Missing or invalid API key or bot ID.
403 Forbidden. AI Agent not using custom CRM.
404 Not found. The specified endpoint does not exist.
500 Internal server error.