TrackMe API Docs
API ReferenceAdmin: Queue

Pending-job count per queue.

Reads queue depth from the configured queue driver (BullMQ via @adonisjs/queue). Queues whose probe fails (Redis down, etc.) report `ok: false` and `pending: null` so the rest of the response still renders.

GET
/api/v1/admin/queue/stats

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/queue/stats"
{  "data": {    "queues": [      {        "name": "default",        "pending": 0,        "ok": true      },      {        "name": "search",        "pending": 3,        "ok": true      },      {        "name": "expiry",        "pending": 0,        "ok": true      },      {        "name": "push",        "pending": 7,        "ok": true      },      {        "name": "payments",        "pending": 0,        "ok": true      }    ]  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "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"  }}