TrackMe API Docs
API ReferenceAdmin: Support

List support tickets (admin inbox).

Filtered + paginated ticket list with the requester joined in — the API counterpart of the `/admin/support` page. Filter with `?q=`, `?status=`, `?priority=`; sort with `?sort=&dir=`; page with `?page=&perPage=`. Requires super_admin, admin, or support_agent.

GET
/api/v1/admin/support/tickets

Authorization

bearerAuth
AuthorizationBearer <token>

AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/admin/support/tickets"
{  "data": {    "items": [      {        "id": "string",        "subject": "string",        "status": "open",        "priority": "low",        "requesterName": "string",        "requesterEmail": "string",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "pagination": {      "page": 0,      "perPage": 0,      "total": 0    }  },  "meta": {    "requestId": "string"  }}
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Authentication is required to access this resource."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "FORBIDDEN",    "message": "You are not allowed to perform this action."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}