Enigma Developers
API ReferenceTickets

List tickets

GET
/v1/tickets

Newest first. Filter by contact to check for an open ticket before creating another. The key sees the tickets its creator can see in the dashboard. Requires scope tickets:read.

Authorization

headerAuthorizationBearer <token>

Your organization API key: Authorization: Bearer org_…

Query Parameters

audienceExternalId?string

The contact's ID on its channel. For WhatsApp it is <phone number>:<your WhatsApp phone number ID>.

status?string
Value in"open""in_progress""resolved""closed"
page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 100
Default20

Response Body

A page of tickets.

application/json
  1. response
tickets*array<>
total*integer
page*integer
totalPages*integer
curl -X GET 'https://api.enigma-ai.com/v1/tickets'
{  "tickets": [    {      "_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"    }  ],  "total": 0,  "page": 0,  "totalPages": 0}