v1
latestOpenAPI 3.0.02026-07-2612645160.3 KBTicket
Update metadata of a ticket
Updates metadata of the active ticket, or the latest closed ticket if allow_closed_ticket is true. For email contacts always provide ticket_id: their tickets are per-thread, so resolution by ai_contact_id or contact_number may return no ticket or one from a different thread.
post/api/public/ticket/metadata
Headers
x-api-keystring required
API key needed to authorize the request
Request body
Example request
{
"contact_number": "+56912345678",
"allow_closed_ticket": true,
"metadata": {
"order_id": "ORD-12345",
"priority": "high"
}
}Response
Ticket metadata updated successfully