---
title: "Follow up on a ticket"
method: POST
path: "/agent/support/tickets/{ticketId}/messages"
tags: ["agent", "support"]
---

# Follow up on a ticket

`POST /agent/support/tickets/{ticketId}/messages`

## Request

- Base URL: `https://xmrtousdc.xyz/api/v1`
- URL: `https://xmrtousdc.xyz/api/v1/agent/support/tickets/{ticketId}/messages`
- Auth: none declared

Adds your message to the ticket's thread (reopens a resolved ticket). Body { message } (max 2000 characters); the replyToken in the x-reply-token header or the body.

## Path parameters

- `ticketId` string, uuid, required

## Request body

- object
  - `message` string, required
  - `replyToken` string

## Response `200`

The updated 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

- `400`: invalid_request: empty or too long message (max 2000 characters).
- `401`: reply_token_required
- `404`: ticket_not_found
- `409`: ticket_thread_full: open a new ticket.
- `415`: unsupported_media_type: the body must be JSON (content-type: application/json).

---

[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)
