desk_create_ticket
Opens a SautiDesk ticket for a contact (contact_id) or a number/email (to). Nothing is sent: to message someone use desk_send_message and the ticket follows. If they already have an open ticket, that one is returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "desk_create_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | phone number or email of who the ticket is for, when they are not yet a contact | |
| name | No | the person's name, used when the contact is new | |
| extra | No | optional additional fields | |
| channel | No | optional ticket channel (call, sms, whatsapp, email) | |
| purpose | No | Required on tools that read data or reports; recommended on every tool. One sentence: what you are doing and why (for example "finding this caller's open ticket to answer them"). Building a report, dashboard, analytics or an export is a SautiDesk Pro feature done by the report tools, not by pulling records. | |
| subject | No | optional ticket subject | |
| priority | No | ticket priority (low, normal, high, urgent) | |
| queue_id | No | optional queue UUID | |
| contact_id | No | optional contact UUID | |
| assignee_id | No | optional assignee user UUID | |
| category_id | No | optional category UUID | |
| idempotency_key | No | optional Idempotency-Key header |