List tickets
GET/v1/tickets
Lists tickets in the current tenant. By default, soft-deleted
entries are hidden. Filters by status, priority, assigneeId
and partyId can be combined. The q parameter performs a
full-text search over title, description and sequence number.
Results are sorted by createdAt DESC. limit is capped at 200;
paging is done via offset or — for deep traversals —
via cursor together with sort=_id&order=asc. See
Pagination.
Data model
This operation works on the entity Ticket (ticket). All 91 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
title,status,priority -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,ticketNumber,dispatch,aiSummary,aiSummaryAttemptedAt,aiFeedSummary,budget.consumedMinutes,budget.locked,budget.lockedAt,budget.lockedReason,budget.unlockRequestId,budget.capHistory,salesOrderId,salesOrderItemId,salesOrderItemSource,standaloneBilling.enabledBy,standaloneBilling.enabledAt,standaloneBilling.performanceRecordId,standaloneBilling.performanceRecordNumber,standaloneBilling.invoicedAt,handlingTier,handedToCustomerAt,slaPausedMs,handoverPreviousAssigneeId,convertedTo,convertedFrom,aiReopenSuggestion,aiReopenDecision,aiReopenConfidence,aiReopenBasis,aiReopenConfirmedBy,unlinkedTicketRef,followupOrigin,externalOwnership,externalOwnershipTakenAt,externalOwnershipTakenBy,externalOwnershipTag,closeEmail— the platform assigns these fields; they are discarded in the request.
Query parameters
| Name | Type | Description |
|---|---|---|
cursor | string | |
limit | number | |
includeDeleted | boolean |
Example
curl -X GET https://api.codemeta-os.de/v1/tickets \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.tickets.list();Best practice
For dashboards with live updates, the ticket.created webhook
is a better fit than polling this endpoint.
Use the listing only for the initial population, not for
keeping data up to date.
Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |