Existing Telemetron customer ID. Use this if you already have the customer’s ID from a previous API call. Either customerEmail or customerId is required.
Category name for ticket routing. Must match an existing category in your organization. If not provided or not matched, the ticket will be categorized automatically by AI.
Conversation history to include with the ticket. Each message has a role (customer, agent, or bot) and content string. If no description is provided, messages are used to generate the ticket description automatically. The first customer message is also included in Slack notifications.
curl -X POST https://admin.telemetron.ai/api/ext-v1/ticket/createTicket \ -H "x-api-key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "title": "Device overheating during charging", "customerEmail": "john.doe@example.com", "priority": "high", "messages": [ { "role": "customer", "content": "My device gets very hot when I plug it in to charge." }, { "role": "bot", "content": "I'\''m sorry to hear that. How long has this been happening?" }, { "role": "customer", "content": "Started about a week ago after the latest update." } ] }'