---
title: "Create support ticket"
method: POST
path: "/agent/support/tickets"
tags: ["agent", "support"]
---

# Create support ticket

`POST /agent/support/tickets`

## Request

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

For a failed or stuck swap, or a question: include the orderId and what happened (sent the wrong token or network? include the transaction hash; recovery is not guaranteed). Never include seed phrases or private keys. Returns data.ticketId, data.createdAt and data.replyToken: read Support's answer with GET /agent/support/tickets/{ticketId} (x-reply-token header) and follow up with POST /agent/support/tickets/{ticketId}/messages. Or email support@xmrtousdc.xyz.

## Request body

- SupportRequest
  - `message` string, required: What went wrong (include a transaction hash if funds were sent). Never seed phrases or private keys.
  - `category` string
  - `orderId` string
  - `sessionId` string, uuid
  - `walletAddress` string

## Response `200`

Ticket created

- SupportResponse
  - `ok` boolean
  - `operation` 'support.create'
  - `state` 'ticket_created'
  - `data` object
    - `ticketId` string, uuid
    - `createdAt` string, date-time
    - `replyToken` string: Read the answers and follow up with it (x-reply-token header). Shown once; only its hash is stored.
    - `repliesPath` string: /api/v1/agent/support/tickets/{ticketId}

## Other responses

- `400`: invalid_request: empty or too long message (max 2000 characters), or a sessionId that is not a UUID.
- `415`: unsupported_media_type: the body must be JSON (content-type: application/json).
- `429`: Rate limited. Honor Retry-After.

---

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