Get ticket by id
GET/v1/tickets/{id}
Reads a single ticket including all relations (party,
assignee, SLA policy, contract reference). The ETag response header
contains the current version — use it as If-Match on the
next PATCH to detect race conditions.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | string |
Example
curl -X GET https://api.codemeta-os.de/v1/tickets/{id} \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.tickets.get();Best practice
If you only need selected fields, use the query parameter
?fields=. This saves bandwidth and noticeably shortens the server
response — important for mobile clients and dashboards.
Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |