Tickets
Returns ticket counts for the project's inbox: a per-status breakdown (open, pending, resolved, snoozed, all) and a per-assignment breakdown (all, me, unassigned, assigned). Use it to render status and assignment filter tabs without paging through tickets.
curl --request GET \
--url 'https://api.nabrah.ai/api/ext/omni_v2/ticket/counts' \
--header 'X-API-Key: <your-api-key>'{
"status_counts": {
"open": 0,
"pending": 0,
"resolved": 0,
"snoozed": 0,
"all": 0
},
"assignment_counts": {
"all": 0,
"me": 0,
"unassigned": 0,
"assigned": 0
}
}Like every Omni v2 ticket endpoint, this is scoped to a single project by your Web API key.
Send your Web key (prefix nb_) in the X-API-Key header. The key is bound to exactly one project, so there is no project_id parameter. Validate the key with GET /api/ext/test first.
status_countsTicket totals per lifecycle status, plus all (the sum across statuses). These drive the status tabs.
openpendingresolvedsnoozedallassignment_countsTicket totals per assignment bucket for the selected status. all is the total for that status; assigned = all - unassigned.
allmeunassignedassignedCounts are current server-side snapshots and reflect the whole inbox for the given scope, not a single page.
Mirrors a support dashboard's tabs so a badge always matches the list it opens.
Passing assignee_type=me returns per-status counts of only your tickets, matching a status + assignee_type=me listing.
The assignment breakdown is always computed for the selected status (all statuses when status=all), so you can show every bucket and let the user switch.
X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
statusenum(open | pending | resolved | snoozed | all)Lifecycle status the assignment breakdown is computed for.
One of open, pending, resolved, snoozed, or all. Defaults to all. Also selects which status the assignment_counts cover.
assignee_typeenum(all | me | unassigned | assigned)Assignment bucket the per-status counts are scoped to.
One of all, me, unassigned, or assigned. Defaults to all. Use me to count only the caller's tickets per status, and so on.
Successful Response
application/json
Validation Error
application/json