---
title: "Read a ticket's replies"
method: GET
path: "/agent/support/tickets/{ticketId}"
tags: ["agent", "support"]
---

# Read a ticket's replies

`GET /agent/support/tickets/{ticketId}`

## Request

- Base URL: `https://xmrtousdc.xyz/api/v1`
- URL: `https://xmrtousdc.xyz/api/v1/agent/support/tickets/{ticketId}`
- Auth: none declared. Required headers: `x-reply-token`

Support's answers on a ticket you opened: data.status (open or resolved), data.awaiting (support or user) and data.thread (from user or support). Needs the replyToken from the ticket's creation in the x-reply-token header (or ?replyToken=). Operator notes are never included.

## Path parameters

- `ticketId` string, uuid, required

## Headers

- `x-reply-token` string, required

## Response `200`

The ticket's public thread

- SupportTicketResponse
  - `ok` true
  - `operation` 'support.read' | 'support.reply'
  - `state` 'waiting_for_support' | 'answered' | 'resolved'
  - `data` object
    - `ticketId` string, uuid
    - `status` 'open' | 'resolved'
    - `awaiting` 'support' | 'user' | 'null', nullable
    - `orderId` string, nullable
    - `category` string, nullable
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable
    - `message` string: The ticket's first message.
    - `thread` object[]
      - `from` 'user' | 'support'
      - `text` string
      - `at` string, date-time, nullable
    - `replies` integer: Messages from support in thread.
    - `note` string

## Other responses

- `401`: reply_token_required: send the replyToken from the ticket's creation.
- `404`: ticket_not_found: no ticket with this ID and reply token (tickets expire).

---

[API](https://skmtc.dev/xmrtousdc/apis/swapper-agent-api.md) · [All operations](https://skmtc.dev/xmrtousdc/apis/swapper-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xmrtousdc/apis/swapper-agent-api/revisions/9f4252126907?raw)
