---
title: "List Ticket Messages"
method: GET
path: "/v2/tickets/{ticket_id}/messages"
tags: ["Ticket API"]
---

# List Ticket Messages

`GET /v2/tickets/{ticket_id}/messages`

List messages for a ticket.

## Path parameters

- `ticket_id` string, required — The ID of the ticket to list messages for.

## Query parameters

- `pageSize` integer — Maximum number of results to return.
- `pageToken` string — Token for pagination.

## Response `200`

Success

- SvhelpPublicapiListTicketMessagesResponse
  - `data` SvhelpPubapimodelsMessage[]
    - `id` string — The ID of the Serval message.
    - `user` SvhelpPubapimodelsUser
      - `id` string — The ID of the Serval user.
      - `email` string — The email address of the Serval user.
    - `authorRole` 'USER_ROLE' | 'ASSISTANT_ROLE' | 'SYSTEM_INFO_ROLE' | 'INTERNAL_NOTE_ROLE'
    - `content` string — The content of the message.
    - `createdAt` string, date-time — A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
    - `attachments` SvhelpPubapimodelsAttachment[] — Attachments associated with the message.
      - `id` string — The unique identifier for the attachment.
      - `name` string — The name of the attachment file.
      - `contentType` string — The MIME type of the attachment (e.g., "image/png", "application/pdf").
      - `url` string — A presigned URL to download the attachment. This URL expires after 15 minutes.
      - `isInline` boolean — True for attachments that arrived as Content-Disposition: inline on an inbound email (typically CID-referenced images embedded in the HTML body). Inline attachments are also referenced from the message body via cid: URLs that get rewritten to fresh presigned URLs by the ticket-detail API.
      - `contentId` string — The RFC 2392 CID (Content-ID header value, brackets stripped) used to resolve cid: references in the message body to this attachment's url. Empty when the part has no Content-ID.
  - `nextPageToken` string, nullable

## Other responses

- `default` — Error

---

[API](https://skmtc.net/serval/apis/serval-public-api.md) · [All operations](https://skmtc.net/serval/apis/serval-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serval/serval-public-api/versions/0549515e9384/schema)
