API ReferenceTickets
Create a ticket
POST
Creates a ticket, optionally linked to a contact. status defaults to open and
priority to medium. Requires scope tickets:create.
header
AuthorizationBearer <token>Your organization API key: Authorization: Bearer org_…
application/json- body
subject*stringtitle?stringDeprecatedOld name for subject. Used only when subject is missing.
description*stringstatus?TicketStatusValue in
"open""in_progress""resolved""closed"priority?TicketPriorityValue in
"low""medium""high""urgent"assigneeId?stringDashboard user ID to assign.
audienceExternalId?AudienceExternalIdThe contact's ID on its channel. For WhatsApp it is
<phone number>:<your WhatsApp phone number ID>.
audienceId?stringInternal contact ID. Prefer audienceExternalId.
Created.
application/json- response
_id?stringticketId?stringHuman-readable ticket ID; use it in the ticket URLs.
title?stringThe ticket subject.
description?stringstatus?TicketStatusValue in
"open""in_progress""resolved""closed"priority?TicketPriorityValue in
"low""medium""high""urgent"assigneeId?string|nullaudienceId?string|nullorganizationId?stringresolutionDate?|Format
date-timecreatedAt?stringFormat
date-timeupdatedAt?stringFormat
date-timecurl -X POST 'https://api.enigma-ai.com/v1/tickets' \ -H 'Content-Type: application/json' \ -d '{ "subject": "string", "description": "string"}'{ "_id": "string", "ticketId": "string", "title": "string", "description": "string", "status": "open", "priority": "low", "assigneeId": "string", "audienceId": "string", "organizationId": "string", "resolutionDate": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}