Skip to main content
GET
/
v2
/
tickets
List Tickets
curl --request GET \
  --url https://public.api.serval.com/v2/tickets \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "friendlyIdentifier": "<string>",
      "teamId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z",
      "escalatedAt": "2023-11-07T05:31:56Z",
      "createdByUserId": "<string>",
      "assignedToUserId": "<string>",
      "requesterUserId": "<string>",
      "statusId": "<string>",
      "escalationLevel": "AI",
      "priorityId": "<string>",
      "slaStartedAt": "2023-11-07T05:31:56Z",
      "slaBreachesAt": "2023-11-07T05:31:56Z",
      "labelIds": [
        "<string>"
      ],
      "type": "TICKET_TYPE_UNSPECIFIED",
      "dueDate": {
        "year": 123,
        "month": 123,
        "day": 123
      },
      "isOverdue": true,
      "childTicketIds": [
        "<string>"
      ],
      "linkedTicketIds": [
        "<string>"
      ],
      "duplicateTicketIds": [
        "<string>"
      ],
      "dependsOnTicketIds": [
        "<string>"
      ],
      "parentTicketId": "<string>"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

teamId
string
startTime.seconds

Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.

startTime.nanos
integer<int32>

Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive.

pageSize
integer<int32>

Maximum number of results to return. Default is 2000, maximum is 5000.

pageToken
string

Token for pagination. Leave empty for the first request.

Response

Success

data
Ticket · object[]
nextPageToken
string | null

Token for retrieving the next page of results. Empty if no more results.