v1

latestOpenAPI 3.0.02026-07-2612645160.3 KB
Ticket

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

ticket_idstring uuid
ai_contact_idstring uuid
contact_numberstring
allow_closed_ticketboolean
metadataobject required

Example request

{
  "contact_number": "+56912345678",
  "allow_closed_ticket": true,
  "metadata": {
    "order_id": "ORD-12345",
    "priority": "high"
  }
}

Response

Ticket metadata updated successfully