{
  "openapi": "3.1.0",
  "info": {
    "title": "MindSwap API",
    "version": "1",
    "description": "MindSwap is a non-custodial cross-chain swap service. You quote a pair, create an order from a route, the user sends the deposit, and the order pays out to the user's own address. No account is needed to swap.\n\n**Ten-minute path.**\n1. `GET /v1/assets`: find the asset IDs (`btc:bitcoin`, `usdt:tron`).\n2. `GET /v1/quotes?from=&to=&amountIn=`: pick a route. MIND's pick is in `mind`.\n3. `POST /v1/orders` with the route's `routeId`, the user's payout and refund addresses, and a new `Idempotency-Key`.\n4. Show `deposit` exactly. The user sends it.\n5. `GET /v1/orders/{id}` every 30 to 60 seconds, or `GET /v1/orders/{id}/events` (SSE), until the order is final.\n\n**Conventions.** Amounts are decimal strings in whole units, never numbers. Basis points are integers. Every error is `{ \"error\": { \"code\", \"message\", \"retryAfterMs\"?, \"details\"? }, \"requestId\" }`: branch on `code`.\n\n**Agents.** TypeScript SDK `@mindswap/sdk`. MCP server `npx -y @mindswap/mcp`, hosted at `https://api.mindswap.io/mcp`. The whole API for a model in one read: `https://mindswap.io/llms-full.txt`.",
    "contact": {
      "name": "MindSwap support",
      "email": "support@mindswap.io"
    },
    "termsOfService": "https://mindswap.io/api-terms",
    "license": {
      "name": "MindSwap API Terms",
      "url": "https://mindswap.io/api-terms"
    }
  },
  "externalDocs": {
    "description": "Developer guide",
    "url": "https://mindswap.io/developers"
  },
  "servers": [
    {
      "url": "https://api.mindswap.io"
    }
  ],
  "tags": [
    {
      "name": "Catalog",
      "description": "Assets, networks and exchange venues you can swap between."
    },
    {
      "name": "Quotes",
      "description": "Prices for a pair and amount, one route per provider and rate type."
    },
    {
      "name": "Orders",
      "description": "Create an order from a quoted route, then follow it until it is final."
    },
    {
      "name": "Issues",
      "description": "Report a problem with an order and follow its resolution."
    },
    {
      "name": "Rewards",
      "description": "The points program and its cashback tiers."
    },
    {
      "name": "Keys",
      "description": "Your API key's own traffic and limit."
    }
  ],
  "paths": {
    "/v1/assets": {
      "get": {
        "operationId": "listAssets",
        "summary": "List tradable assets",
        "description": "Without query parameters: the assets the MindSwap website lists (each with an official logo), the networks they live on and the exchange venues behind MIND routes, as typed below. Asset IDs are `<symbol>:<network>` (`usdt:tron`). One symbol on two networks is two assets, so ask the user which network they mean. `memo` says whether the asset needs a memo or destination tag (`none`, `optional`, `required`).\n\nWith any query parameter: one page of the full catalog, every asset an enabled provider can swap (thousands), most popular first: `{ \"assets\": [...], \"nextCursor\": string | null, \"total\": number }`. Each asset has the fields below, except that `logoUri` is `null` while no official logo is stored. Pass `nextCursor` back as `cursor` until it is `null`; `total` counts every match.\n\nCached for a minute: send `If-None-Match` with the last `ETag` to get `304`. No key needed.\n\n**Rate limits.** 120 a minute per IP (bursts up to 60). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Text to find in the symbol, name, network or contract, case-insensitive (`usdc`). Any parameter switches to the paged full catalog.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "description": "Keep one network (`base`); `listNetworks` has them all.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "`popular`, `stablecoin`, `privacy`, `meme` or `volatile`.",
            "schema": {
              "type": "string",
              "enum": [
                "popular",
                "stablecoin",
                "privacy",
                "meme",
                "volatile"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "`rank` (most popular first, the default) or `symbol` (A to Z).",
            "schema": {
              "type": "string",
              "enum": [
                "rank",
                "symbol"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Assets per page, 1 to 500 (default 100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `nextCursor` of the previous page, with the same `sort`.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "assets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                          },
                          "symbol": {
                            "type": "string",
                            "minLength": 1
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "network": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "contract": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "decimals": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 36
                          },
                          "memo": {
                            "type": "string",
                            "enum": [
                              "none",
                              "optional",
                              "required"
                            ]
                          },
                          "logoUri": {
                            "type": "string",
                            "format": "starts_with",
                            "pattern": "^https:\\/\\/mindswap\\.io\\/logos\\/.*"
                          },
                          "rank": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "categories": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "popular",
                                "stablecoin",
                                "privacy",
                                "meme",
                                "volatile"
                              ]
                            }
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "paused",
                              "delisted"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "symbol",
                          "name",
                          "network",
                          "contract",
                          "decimals",
                          "memo",
                          "logoUri",
                          "rank",
                          "categories",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "family": {
                            "type": "string"
                          },
                          "logoUri": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "confirmations": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "explorerTx": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "family",
                          "logoUri",
                          "confirmations",
                          "explorerTx"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "venues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "logoUri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "starts_with",
                                "pattern": "^https:\\/\\/mindswap\\.io\\/logos\\/.*"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "logoUri"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "assets",
                    "networks",
                    "venues"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "assets": [
                    {
                      "id": "usdt:tron",
                      "symbol": "USDT",
                      "name": "Tether",
                      "network": "tron",
                      "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
                      "decimals": 6,
                      "memo": "none",
                      "logoUri": "https://mindswap.io/logos/1a39b918bfe816e1ccb6e5b4b2a7a4d8.svg",
                      "rank": 3,
                      "categories": [
                        "popular",
                        "stablecoin"
                      ],
                      "status": "active"
                    }
                  ],
                  "networks": [
                    {
                      "id": "algorand",
                      "name": "Algorand",
                      "family": "algorand",
                      "logoUri": "https://mindswap.io/logos/82e73dad12af039448dffcd0377f6e86.svg",
                      "confirmations": null,
                      "explorerTx": "https://allo.info/tx/{hash}"
                    }
                  ],
                  "venues": [
                    {
                      "id": "mind",
                      "name": "MIND",
                      "logoUri": "https://mindswap.io/logos/c33ec8c70465101c2b0083710e7178fc.svg"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 15,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 120,
            "burst": 60
          }
        ],
        "x-mcp": {
          "title": "List tradable assets",
          "readOnly": true
        }
      }
    },
    "/v1/networks": {
      "get": {
        "operationId": "listNetworks",
        "summary": "List networks",
        "description": "Every network with at least one swappable asset, most assets first, with how many assets each has. Use an `id` as the `network` filter of `listAssets`. `family` is the address format MindSwap checks (`evm`, `bitcoin`, `solana`, ...). `logoUri` is `null` while no official logo is stored. Cached for a minute with an `ETag`. No key needed.\n\n**Rate limits.** 120 a minute per IP (bursts up to 60). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Catalog"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "family": {
                            "type": "string",
                            "minLength": 1
                          },
                          "logoUri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "starts_with",
                                "pattern": "^https:\\/\\/mindswap\\.io\\/logos\\/.*"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "assetCount": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "family",
                          "logoUri",
                          "assetCount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "networks"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "networks": [
                    {
                      "id": "ethereum",
                      "name": "Ethereum",
                      "family": "evm",
                      "logoUri": "https://mindswap.io/logos/db6927db9f5dbf556d647ade68d2d1d0.svg",
                      "assetCount": 618
                    },
                    {
                      "id": "bnb-chain",
                      "name": "BNB Smart Chain",
                      "family": "evm",
                      "logoUri": "https://mindswap.io/logos/97d00b983d6baf023e6b4a8e5d700394.svg",
                      "assetCount": 401
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 15,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 120,
            "burst": 60
          }
        ],
        "x-mcp": {
          "title": "List networks",
          "readOnly": true
        }
      }
    },
    "/v1/orders": {
      "get": {
        "operationId": "listOrders",
        "summary": "List the orders made with this key",
        "description": "The orders created with the calling API key, newest first, a page at a time. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each order is the same view `getOrder` answers.\n\n**Auth.** An API key; the list holds only that key's own orders.\n\n**Rate limits.** 120 a minute per API key (bursts up to 30). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only orders in this status (`awaiting_deposit`, `completed`, …).",
            "schema": {
              "type": "string",
              "enum": [
                "awaiting_deposit",
                "confirming",
                "exchanging",
                "private_routing",
                "sending",
                "completed",
                "expired",
                "refund_pending",
                "refunded",
                "failed",
                "on_hold",
                "partially_completed"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Orders per page, 1 to 100.",
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "`nextCursor` from the previous page.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{6}$"
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "float",
                              "fixed",
                              "private"
                            ]
                          },
                          "pickedBy": {
                            "type": "string",
                            "enum": [
                              "mind",
                              "user"
                            ]
                          },
                          "route": {
                            "type": "object",
                            "properties": {
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9-]*$"
                              },
                              "venue": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9-]*$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "private",
                                  "exchange",
                                  "public"
                                ]
                              },
                              "rateType": {
                                "type": "string",
                                "enum": [
                                  "float",
                                  "fixed"
                                ]
                              },
                              "from": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                              },
                              "to": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                              },
                              "amountIn": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "amountOut": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "fees": {
                                "type": "object",
                                "properties": {
                                  "network": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "provider": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "platform": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "partner": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "totalUser": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "network",
                                  "provider",
                                  "platform",
                                  "totalUser"
                                ],
                                "additionalProperties": false
                              },
                              "feesEstimated": {
                                "type": "boolean"
                              },
                              "etaSeconds": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "min": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "provider",
                              "venue",
                              "kind",
                              "rateType",
                              "from",
                              "to",
                              "amountIn",
                              "amountOut",
                              "fees",
                              "feesEstimated",
                              "etaSeconds",
                              "min",
                              "max"
                            ],
                            "additionalProperties": false
                          },
                          "payout": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "memo": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "memo"
                            ],
                            "additionalProperties": false
                          },
                          "refund": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "address": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "memo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "memo"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "deposit": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "memo": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "expiresAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "expiresSource": {
                                "default": "provider",
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "estimate"
                                ]
                              },
                              "received": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "memo",
                              "amount",
                              "expiresAt",
                              "expiresSource"
                            ],
                            "additionalProperties": false
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_deposit",
                              "confirming",
                              "exchanging",
                              "private_routing",
                              "sending",
                              "completed",
                              "expired",
                              "refund_pending",
                              "refunded",
                              "failed",
                              "on_hold",
                              "partially_completed"
                            ]
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "awaiting_deposit",
                                    "confirming",
                                    "exchanging",
                                    "private_routing",
                                    "sending",
                                    "completed",
                                    "expired",
                                    "refund_pending",
                                    "refunded",
                                    "failed",
                                    "on_hold",
                                    "partially_completed"
                                  ]
                                },
                                "at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                }
                              },
                              "required": [
                                "status",
                                "at"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "amountOut": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "refunded": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "asset": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "asset"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "fee": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string",
                                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                          },
                                          "asset": {
                                            "type": "string",
                                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "asset"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "amount",
                                  "fee"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recipients": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "address": {
                                      "type": "string"
                                    },
                                    "memo": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "percent": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "venue": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9-]*$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "delayMinutes": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "amount": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "pending",
                                        "scheduled",
                                        "sending",
                                        "sent",
                                        "failed"
                                      ]
                                    },
                                    "scheduledAt": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "tx": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "enum": [
                                                "deposit",
                                                "payout",
                                                "refund"
                                              ]
                                            },
                                            "hash": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "confirmations": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "required": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "explorerUrl": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "kind",
                                            "hash",
                                            "confirmations",
                                            "required",
                                            "explorerUrl"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "reason": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 280
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "address",
                                    "memo",
                                    "percent",
                                    "venue",
                                    "delayMinutes",
                                    "amount",
                                    "state",
                                    "scheduledAt",
                                    "tx",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "usd": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            }
                          },
                          "notices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "amount_adjusted",
                                    "fixed_overpay",
                                    "slow_confirmations",
                                    "multiple_deposits",
                                    "late_deposit",
                                    "slow_processing",
                                    "scheduled",
                                    "refund_reason",
                                    "delayed_update"
                                  ]
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "detail": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 280
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "createdAt",
                                "detail"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "txs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "deposit",
                                    "payout",
                                    "refund"
                                  ]
                                },
                                "hash": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "confirmations": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "required": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "explorerUrl": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "hash",
                                "confirmations",
                                "required",
                                "explorerUrl"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "issue": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "refund",
                                      "not_received",
                                      "wrong_network",
                                      "wrong_amount",
                                      "other"
                                    ]
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "received",
                                      "in_progress",
                                      "needs_info",
                                      "resolved"
                                    ]
                                  },
                                  "timeline": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "at": {
                                          "type": "string",
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                        },
                                        "text": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "at",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "nextUpdateBy": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "action": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "provide",
                                              "choose"
                                            ]
                                          },
                                          "field": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "depositTxHash",
                                                  "refundAddress",
                                                  "refundMemo"
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "field"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "state",
                                  "timeline",
                                  "nextUpdateBy",
                                  "action"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "points": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "credited": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "credited"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "viewer": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "string",
                                "enum": [
                                  "device",
                                  "proof",
                                  "account",
                                  "api_key"
                                ]
                              },
                              "canClaim": {
                                "type": "boolean"
                              },
                              "owned": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "role",
                              "canClaim",
                              "owned"
                            ],
                            "additionalProperties": false
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "type",
                          "pickedBy",
                          "route",
                          "payout",
                          "refund",
                          "deposit",
                          "status",
                          "steps",
                          "amountOut",
                          "refunded",
                          "recipients",
                          "usd",
                          "notices",
                          "txs",
                          "issue",
                          "points",
                          "viewer",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "orders",
                    "nextCursor"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "orders": [
                    {
                      "id": "MS-7HK2PQ",
                      "version": 1,
                      "type": "fixed",
                      "pickedBy": "mind",
                      "route": {
                        "provider": "fixedfloat",
                        "venue": "mind",
                        "kind": "exchange",
                        "rateType": "fixed",
                        "from": "btc:bitcoin",
                        "to": "usdt:tron",
                        "amountIn": "0.01",
                        "amountOut": "618.368",
                        "fees": {
                          "network": {
                            "amount": "0.75919",
                            "asset": "usdt:tron"
                          },
                          "provider": {
                            "amount": "0",
                            "asset": "usdt:tron"
                          },
                          "platform": {
                            "amount": "0",
                            "asset": "usdt:tron"
                          },
                          "totalUser": {
                            "amount": "0.75919",
                            "asset": "usdt:tron"
                          }
                        },
                        "feesEstimated": true,
                        "etaSeconds": 1200,
                        "min": "0.0001599",
                        "max": "0.2422837"
                      },
                      "payout": {
                        "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                        "memo": null
                      },
                      "refund": {
                        "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                        "memo": null
                      },
                      "deposit": {
                        "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                        "memo": null,
                        "amount": "0.01",
                        "expiresAt": "2026-11-18T17:12:30.000Z",
                        "expiresSource": "provider",
                        "received": null
                      },
                      "status": "awaiting_deposit",
                      "steps": [
                        {
                          "status": "awaiting_deposit",
                          "at": "2026-11-18T16:52:30.000Z"
                        }
                      ],
                      "amountOut": "618.368",
                      "refunded": null,
                      "recipients": null,
                      "usd": {
                        "btc:bitcoin": "61849.88",
                        "usdt:tron": "1"
                      },
                      "notices": [],
                      "txs": [],
                      "issue": null,
                      "points": null,
                      "viewer": {
                        "role": "api_key",
                        "canClaim": false,
                        "owned": false
                      },
                      "createdAt": "2026-11-18T16:52:30.000Z",
                      "updatedAt": "2026-11-18T16:52:30.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 60,
        "x-rate-limits": [
          {
            "by": "api_key",
            "perMinute": 120,
            "burst": 30
          }
        ],
        "x-mcp": {
          "title": "List swap orders made with this key",
          "readOnly": true
        }
      },
      "post": {
        "operationId": "createOrder",
        "summary": "Create a swap order",
        "description": "Creates the order at the provider behind the quoted route and answers with the deposit instructions. Show them exactly. The user sends exactly `deposit.amount` of the send asset, on its network, to `deposit.address`, with `deposit.memo` when it is not null, before `deposit.expiresAt`. `expiresSource: provider` means the provider enforces that deadline; `estimate` means the time is our estimate.\n\nSend `routeId` and `pickedBy` from the quote unchanged (`pickedBy: mind` when the user kept MIND's pick). A fixed route needs a `refund` address. Never guess, invent or reuse an address. For several payout wallets, send `recipients` and `payout: null` (see `quoteRecipients`).\n\n**Idempotency.** `Idempotency-Key` is required. Use one new key per swap the user confirms, and store it before you call. A retry with the same key and body returns the same order and never makes a second one.\n\n**Money safety.** `create_in_doubt` (502): the provider may or may not have made the order. Never retry it, and never create another order for the same swap. Tell the user not to send funds and to contact support with the `requestId`. `quote_moved` (409): no order was made because the rate changed; `details.freshRoute` is the new route to show the user. `route_expired` (410): quote again.\n\n**Auth.** With an API key (`x-api-key: msk_live_…` or `Authorization: Bearer msk_live_…`) you read the order later with the same key, and `listOrders` lists it. Without a key, a browser gets a device cookie, and a server follows the order with `trackOrder` (order ID plus payout address).\n\n**Rate limits.** 20 a minute per IP (bursts up to 10). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "description": "One key per order the user means to make, 8 to 64 printable ASCII characters (a UUID). A retry with the same key and body returns the original order or error, never a second order; the same key with another body answers idempotency_mismatch.",
            "schema": {
              "type": "string",
              "pattern": "^[\\x21-\\x7e]{8,64}$"
            }
          },
          {
            "in": "header",
            "name": "Accept-Language",
            "required": false,
            "description": "The end user's language, a BCP 47 tag (\"en-US\"); the first tag is used. The provider behind MIND float and private routes and the exchange-venue rows refuses an order without it and X-Client-Timezone (provider_rejected). Send the real user's own; never a made-up value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Client-Timezone",
            "required": false,
            "description": "The end user's IANA time zone (\"Europe/Berlin\"). Needed with Accept-Language for the same providers.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{6}$"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "float",
                        "fixed",
                        "private"
                      ]
                    },
                    "pickedBy": {
                      "type": "string",
                      "enum": [
                        "mind",
                        "user"
                      ]
                    },
                    "route": {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9-]*$"
                        },
                        "venue": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9-]*$"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "private",
                            "exchange",
                            "public"
                          ]
                        },
                        "rateType": {
                          "type": "string",
                          "enum": [
                            "float",
                            "fixed"
                          ]
                        },
                        "from": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                        },
                        "amountIn": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "amountOut": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "fees": {
                          "type": "object",
                          "properties": {
                            "network": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "provider": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "platform": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "partner": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "totalUser": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "network",
                            "provider",
                            "platform",
                            "totalUser"
                          ],
                          "additionalProperties": false
                        },
                        "feesEstimated": {
                          "type": "boolean"
                        },
                        "etaSeconds": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "min": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "max": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "provider",
                        "venue",
                        "kind",
                        "rateType",
                        "from",
                        "to",
                        "amountIn",
                        "amountOut",
                        "fees",
                        "feesEstimated",
                        "etaSeconds",
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "payout": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "memo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "memo"
                      ],
                      "additionalProperties": false
                    },
                    "refund": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "memo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "memo"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deposit": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "memo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "expiresSource": {
                          "default": "provider",
                          "type": "string",
                          "enum": [
                            "provider",
                            "estimate"
                          ]
                        },
                        "received": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "memo",
                        "amount",
                        "expiresAt",
                        "expiresSource"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "awaiting_deposit",
                        "confirming",
                        "exchanging",
                        "private_routing",
                        "sending",
                        "completed",
                        "expired",
                        "refund_pending",
                        "refunded",
                        "failed",
                        "on_hold",
                        "partially_completed"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_deposit",
                              "confirming",
                              "exchanging",
                              "private_routing",
                              "sending",
                              "completed",
                              "expired",
                              "refund_pending",
                              "refunded",
                              "failed",
                              "on_hold",
                              "partially_completed"
                            ]
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "status",
                          "at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "amountOut": {
                      "type": "string",
                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                    },
                    "refunded": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "fee": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "amount",
                            "fee"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recipients": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string"
                              },
                              "memo": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "percent": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "venue": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9-]*$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "delayMinutes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "amount": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "scheduled",
                                  "sending",
                                  "sent",
                                  "failed"
                                ]
                              },
                              "scheduledAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "tx": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "deposit",
                                          "payout",
                                          "refund"
                                        ]
                                      },
                                      "hash": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "confirmations": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "required": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "explorerUrl": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "hash",
                                      "confirmations",
                                      "required",
                                      "explorerUrl"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 280
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "memo",
                              "percent",
                              "venue",
                              "delayMinutes",
                              "amount",
                              "state",
                              "scheduledAt",
                              "tx",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usd": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                      }
                    },
                    "notices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "amount_adjusted",
                              "fixed_overpay",
                              "slow_confirmations",
                              "multiple_deposits",
                              "late_deposit",
                              "slow_processing",
                              "scheduled",
                              "refund_reason",
                              "delayed_update"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "detail": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 280
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "createdAt",
                          "detail"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "txs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "deposit",
                              "payout",
                              "refund"
                            ]
                          },
                          "hash": {
                            "type": "string",
                            "minLength": 1
                          },
                          "confirmations": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "explorerUrl": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "hash",
                          "confirmations",
                          "required",
                          "explorerUrl"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "issue": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "refund",
                                "not_received",
                                "wrong_network",
                                "wrong_amount",
                                "other"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "received",
                                "in_progress",
                                "needs_info",
                                "resolved"
                              ]
                            },
                            "timeline": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "text": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "at",
                                  "text"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "nextUpdateBy": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "action": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "provide",
                                        "choose"
                                      ]
                                    },
                                    "field": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "depositTxHash",
                                            "refundAddress",
                                            "refundMemo"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "field"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "state",
                            "timeline",
                            "nextUpdateBy",
                            "action"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "points": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "credited": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "amount",
                            "credited"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "viewer": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string",
                          "enum": [
                            "device",
                            "proof",
                            "account",
                            "api_key"
                          ]
                        },
                        "canClaim": {
                          "type": "boolean"
                        },
                        "owned": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "role",
                        "canClaim",
                        "owned"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "version",
                    "type",
                    "pickedBy",
                    "route",
                    "payout",
                    "refund",
                    "deposit",
                    "status",
                    "steps",
                    "amountOut",
                    "refunded",
                    "recipients",
                    "usd",
                    "notices",
                    "txs",
                    "issue",
                    "points",
                    "viewer",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "id": "MS-7HK2PQ",
                  "version": 1,
                  "type": "fixed",
                  "pickedBy": "mind",
                  "route": {
                    "provider": "fixedfloat",
                    "venue": "mind",
                    "kind": "exchange",
                    "rateType": "fixed",
                    "from": "btc:bitcoin",
                    "to": "usdt:tron",
                    "amountIn": "0.01",
                    "amountOut": "618.368",
                    "fees": {
                      "network": {
                        "amount": "0.75919",
                        "asset": "usdt:tron"
                      },
                      "provider": {
                        "amount": "0",
                        "asset": "usdt:tron"
                      },
                      "platform": {
                        "amount": "0",
                        "asset": "usdt:tron"
                      },
                      "totalUser": {
                        "amount": "0.75919",
                        "asset": "usdt:tron"
                      }
                    },
                    "feesEstimated": true,
                    "etaSeconds": 1200,
                    "min": "0.0001599",
                    "max": "0.2422837"
                  },
                  "payout": {
                    "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                    "memo": null
                  },
                  "refund": {
                    "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                    "memo": null
                  },
                  "deposit": {
                    "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                    "memo": null,
                    "amount": "0.01",
                    "expiresAt": "2026-11-18T17:12:30.000Z",
                    "expiresSource": "provider",
                    "received": null
                  },
                  "status": "awaiting_deposit",
                  "steps": [
                    {
                      "status": "awaiting_deposit",
                      "at": "2026-11-18T16:52:30.000Z"
                    }
                  ],
                  "amountOut": "618.368",
                  "refunded": null,
                  "recipients": null,
                  "usd": {
                    "btc:bitcoin": "61849.88",
                    "usdt:tron": "1"
                  },
                  "notices": [],
                  "txs": [],
                  "issue": null,
                  "points": null,
                  "viewer": {
                    "role": "api_key",
                    "canClaim": false,
                    "owned": false
                  },
                  "createdAt": "2026-11-18T16:52:30.000Z",
                  "updatedAt": "2026-11-18T16:52:30.000Z"
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "- `quote_moved`: The rate changed or the route stopped running before the order was made. Nothing was created. `details.route` is the fresh route, when one exists. Next: Show the fresh route to the user. If they accept, create with its routeId and a new idempotency key (the old key is bound to the old route). If there is no fresh route, quote again.\n- `create_in_progress`: An order with this idempotency key is still being created. Next: Wait `retryAfterMs`, then send the same request with the same key. It returns that order and never makes a second one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "- `route_expired`: The routeId is past its `expiresAt`. Nothing was created. Next: Quote again and confirm the new route with the user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "422": {
            "description": "- `pair_unavailable`: No provider can swap this pair right now, or the pair is not listed. Next: Try another pair, or the same pair later.\n- `amount_out_of_range`: The amount is outside what the provider accepts right now. Nothing was created. Next: Quote again and pick an amount within the route's `min` and `max`.\n- `address_invalid`: A payout or refund address is not valid on its network. `details.field` says which, when it was checked. Next: Ask the user for that address again. Never correct, guess or invent it.\n- `memo_required`: The address needs a memo (destination tag) on this network. Next: Ask the user for the memo and send it with the address.\n- `recipient_below_min`: In a multi-wallet order, a wallet's share is below its exchange's minimum payout. `details.below[].index` lists them. Next: Raise those shares or remove those wallets, then create again.\n- `idempotency_mismatch`: This idempotency key was already used with other inputs. Next: To retry, send exactly the original inputs with the same key. For a new swap the user confirmed, use a new key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.\n- `too_many_open_orders`: This caller already has as many unpaid orders open as it may (the limit is in the message). Nothing was created and no provider was asked. Next: Pay one of the open orders, or wait until one expires, then create again. Do not retry in a loop: the answer stays the same until an order is paid or expires.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "502": {
            "description": "- `create_in_doubt`: The provider may or may not have made the order, and MindSwap cannot tell which. Next: STOP. Do not create again for this swap, with any key, and tell the user not to send funds. Contact MindSwap support with `requestId`.\n- `provider_rejected`: The provider refused the order. Nothing was created and nothing is owed. \"This route needs browser details\" means the end user's language and time zone were missing. Next: Quote again and pick another route. Send the end user's own language and time zone (Accept-Language, X-Client-Timezone) with the create.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `provider_busy`: The provider behind this route had no capacity for a new order within about 10 seconds. Nothing was created. Next: Wait `retryAfterMs`, then send the same request again with the same idempotency key, or pick another route.\n- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "device": []
          },
          {
            "privy": []
          },
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "unauthorized",
          "route_expired",
          "quote_moved",
          "pair_unavailable",
          "amount_out_of_range",
          "address_invalid",
          "memo_required",
          "recipient_below_min",
          "idempotency_mismatch",
          "create_in_progress",
          "create_in_doubt",
          "provider_rejected",
          "rate_limited",
          "too_many_open_orders",
          "provider_busy",
          "service_paused"
        ],
        "x-p95-ms": 2500,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "routeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "pickedBy": {
                    "type": "string",
                    "enum": [
                      "mind",
                      "user"
                    ]
                  },
                  "payout": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "memo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "address",
                          "memo"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "refund": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "memo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "address",
                          "memo"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "ref": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "recipients": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "memo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "percent": {
                              "type": "string",
                              "pattern": "^(0|[1-9]\\d{0,2})(\\.\\d{1,2})?$"
                            },
                            "venue": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9-]*$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delayMinutes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1440
                            }
                          },
                          "required": [
                            "address",
                            "memo",
                            "percent",
                            "venue",
                            "delayMinutes"
                          ]
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "routeId",
                  "pickedBy",
                  "payout",
                  "refund",
                  "ref"
                ]
              },
              "example": {
                "routeId": "r1.k1.DMfUXFMSO0JVy6BWNJgmrvEeXjiKxbyb1NbeY7I4cf…",
                "pickedBy": "mind",
                "payout": {
                  "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                  "memo": null
                },
                "refund": {
                  "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                  "memo": null
                },
                "ref": null
              }
            }
          }
        },
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 20,
            "burst": 10
          }
        ],
        "x-mcp": {
          "title": "Create a swap order",
          "readOnly": false
        }
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Read a swap order",
        "description": "The order as it is now. Poll every 30 to 60 seconds until `status` is `completed`, `partially_completed`, `expired`, `refunded` or `failed`, or use `streamOrderEvents`. `deposit.received` is what the provider reports as arrived. It is null until something arrives, and stays null when the provider does not say. Never tell the user that `deposit.amount` arrived: that is only what the order asked for. `amountOut` is the settled amount once known. `recipients` lists every wallet of a multi-wallet order with its `state` and payout `tx`. `issue` is the open problem report, if any.\n\n**Auth.** Any one proof opens the order: the API key that created it, the creating browser, a `cap` from `trackOrder`, or the payout address in the `x-payout-address` header. A missing order and a wrong proof both answer `404 not_found`.\n\n**Rate limits.** 120 a minute per IP (bursts up to 40); 60 a minute per order (bursts up to 20). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The order ID as created (`MS-7HK2PQ`).",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "cap",
            "in": "query",
            "required": false,
            "description": "The read-only `cap` from `trackOrder`, valid 24 hours. One way to prove access without a key.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{6}$"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "float",
                        "fixed",
                        "private"
                      ]
                    },
                    "pickedBy": {
                      "type": "string",
                      "enum": [
                        "mind",
                        "user"
                      ]
                    },
                    "route": {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9-]*$"
                        },
                        "venue": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9-]*$"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "private",
                            "exchange",
                            "public"
                          ]
                        },
                        "rateType": {
                          "type": "string",
                          "enum": [
                            "float",
                            "fixed"
                          ]
                        },
                        "from": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                        },
                        "amountIn": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "amountOut": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "fees": {
                          "type": "object",
                          "properties": {
                            "network": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "provider": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "platform": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "partner": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "totalUser": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "network",
                            "provider",
                            "platform",
                            "totalUser"
                          ],
                          "additionalProperties": false
                        },
                        "feesEstimated": {
                          "type": "boolean"
                        },
                        "etaSeconds": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "min": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "max": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "provider",
                        "venue",
                        "kind",
                        "rateType",
                        "from",
                        "to",
                        "amountIn",
                        "amountOut",
                        "fees",
                        "feesEstimated",
                        "etaSeconds",
                        "min",
                        "max"
                      ],
                      "additionalProperties": false
                    },
                    "payout": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "memo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "memo"
                      ],
                      "additionalProperties": false
                    },
                    "refund": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "memo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "memo"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deposit": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "memo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "expiresSource": {
                          "default": "provider",
                          "type": "string",
                          "enum": [
                            "provider",
                            "estimate"
                          ]
                        },
                        "received": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "memo",
                        "amount",
                        "expiresAt",
                        "expiresSource"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "awaiting_deposit",
                        "confirming",
                        "exchanging",
                        "private_routing",
                        "sending",
                        "completed",
                        "expired",
                        "refund_pending",
                        "refunded",
                        "failed",
                        "on_hold",
                        "partially_completed"
                      ]
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_deposit",
                              "confirming",
                              "exchanging",
                              "private_routing",
                              "sending",
                              "completed",
                              "expired",
                              "refund_pending",
                              "refunded",
                              "failed",
                              "on_hold",
                              "partially_completed"
                            ]
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "status",
                          "at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "amountOut": {
                      "type": "string",
                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                    },
                    "refunded": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "asset": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                }
                              },
                              "required": [
                                "amount",
                                "asset"
                              ],
                              "additionalProperties": false
                            },
                            "fee": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "amount",
                            "fee"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recipients": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string"
                              },
                              "memo": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "percent": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              "venue": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9-]*$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "delayMinutes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "amount": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "state": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "scheduled",
                                  "sending",
                                  "sent",
                                  "failed"
                                ]
                              },
                              "scheduledAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "tx": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "deposit",
                                          "payout",
                                          "refund"
                                        ]
                                      },
                                      "hash": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "confirmations": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "required": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "explorerUrl": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "hash",
                                      "confirmations",
                                      "required",
                                      "explorerUrl"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 280
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "memo",
                              "percent",
                              "venue",
                              "delayMinutes",
                              "amount",
                              "state",
                              "scheduledAt",
                              "tx",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usd": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                      }
                    },
                    "notices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "amount_adjusted",
                              "fixed_overpay",
                              "slow_confirmations",
                              "multiple_deposits",
                              "late_deposit",
                              "slow_processing",
                              "scheduled",
                              "refund_reason",
                              "delayed_update"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "detail": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 280
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "createdAt",
                          "detail"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "txs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "deposit",
                              "payout",
                              "refund"
                            ]
                          },
                          "hash": {
                            "type": "string",
                            "minLength": 1
                          },
                          "confirmations": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "explorerUrl": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "hash",
                          "confirmations",
                          "required",
                          "explorerUrl"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "issue": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "refund",
                                "not_received",
                                "wrong_network",
                                "wrong_amount",
                                "other"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "received",
                                "in_progress",
                                "needs_info",
                                "resolved"
                              ]
                            },
                            "timeline": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "text": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "at",
                                  "text"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "nextUpdateBy": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "action": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "provide",
                                        "choose"
                                      ]
                                    },
                                    "field": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "depositTxHash",
                                            "refundAddress",
                                            "refundMemo"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "field"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "state",
                            "timeline",
                            "nextUpdateBy",
                            "action"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "points": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "credited": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "amount",
                            "credited"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "viewer": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string",
                          "enum": [
                            "device",
                            "proof",
                            "account",
                            "api_key"
                          ]
                        },
                        "canClaim": {
                          "type": "boolean"
                        },
                        "owned": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "role",
                        "canClaim",
                        "owned"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "version",
                    "type",
                    "pickedBy",
                    "route",
                    "payout",
                    "refund",
                    "deposit",
                    "status",
                    "steps",
                    "amountOut",
                    "refunded",
                    "recipients",
                    "usd",
                    "notices",
                    "txs",
                    "issue",
                    "points",
                    "viewer",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "id": "MS-7HK2PQ",
                  "version": 1,
                  "type": "fixed",
                  "pickedBy": "mind",
                  "route": {
                    "provider": "fixedfloat",
                    "venue": "mind",
                    "kind": "exchange",
                    "rateType": "fixed",
                    "from": "btc:bitcoin",
                    "to": "usdt:tron",
                    "amountIn": "0.01",
                    "amountOut": "618.368",
                    "fees": {
                      "network": {
                        "amount": "0.75919",
                        "asset": "usdt:tron"
                      },
                      "provider": {
                        "amount": "0",
                        "asset": "usdt:tron"
                      },
                      "platform": {
                        "amount": "0",
                        "asset": "usdt:tron"
                      },
                      "totalUser": {
                        "amount": "0.75919",
                        "asset": "usdt:tron"
                      }
                    },
                    "feesEstimated": true,
                    "etaSeconds": 1200,
                    "min": "0.0001599",
                    "max": "0.2422837"
                  },
                  "payout": {
                    "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                    "memo": null
                  },
                  "refund": {
                    "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                    "memo": null
                  },
                  "deposit": {
                    "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                    "memo": null,
                    "amount": "0.01",
                    "expiresAt": "2026-11-18T17:12:30.000Z",
                    "expiresSource": "provider",
                    "received": null
                  },
                  "status": "awaiting_deposit",
                  "steps": [
                    {
                      "status": "awaiting_deposit",
                      "at": "2026-11-18T16:52:30.000Z"
                    }
                  ],
                  "amountOut": "618.368",
                  "refunded": null,
                  "recipients": null,
                  "usd": {
                    "btc:bitcoin": "61849.88",
                    "usdt:tron": "1"
                  },
                  "notices": [],
                  "txs": [],
                  "issue": null,
                  "points": null,
                  "viewer": {
                    "role": "api_key",
                    "canClaim": false,
                    "owned": false
                  },
                  "createdAt": "2026-11-18T16:52:30.000Z",
                  "updatedAt": "2026-11-18T16:52:30.000Z"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "- `not_found`: Nothing matches this ID with this proof. A wrong order ID and a wrong payout address answer the same. Next: Check the order ID and the payout address with the user. Do not guess: attempts are limited per order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "device": []
          },
          {
            "privy": []
          },
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "not_found",
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 25,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 120,
            "burst": 40
          },
          {
            "by": "order_id",
            "perMinute": 60,
            "burst": 20
          }
        ],
        "x-mcp": {
          "title": "Read a swap order",
          "readOnly": true
        }
      }
    },
    "/v1/orders/{id}/events": {
      "get": {
        "operationId": "streamOrderEvents",
        "summary": "Stream live updates of an order",
        "description": "Server-sent events. The first `order` event is the current view, and each change sends the whole view again: drop any event whose `version` is not newer than the one shown. `heartbeat` carries the current version every 15 seconds. `end` closes the stream once the order can no longer change. To resume after a drop, send the last event's `id` back unchanged as `Last-Event-ID`.\n\n**Auth.** Any one proof opens the order: the API key that created it, the creating browser, a `cap` from `trackOrder`, or the payout address in the `x-payout-address` header. A missing order and a wrong proof both answer `404 not_found`.\n\n**Rate limits.** 60 a minute per IP (bursts up to 20); 30 a minute per order (bursts up to 10). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The order ID as created (`MS-7HK2PQ`).",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "cap",
            "in": "query",
            "required": false,
            "description": "The read-only `cap` from `trackOrder`, valid 24 hours. One way to prove access without a key.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "in": "header",
            "name": "Last-Event-ID",
            "required": false,
            "description": "Resume: the `id` of the last event this client received, sent back unchanged (opaque). The stream then skips what the client already has.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/event-stream": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "order"
                        },
                        "order": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{6}$"
                            },
                            "version": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "float",
                                "fixed",
                                "private"
                              ]
                            },
                            "pickedBy": {
                              "type": "string",
                              "enum": [
                                "mind",
                                "user"
                              ]
                            },
                            "route": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9-]*$"
                                },
                                "venue": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9-]*$"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "private",
                                    "exchange",
                                    "public"
                                  ]
                                },
                                "rateType": {
                                  "type": "string",
                                  "enum": [
                                    "float",
                                    "fixed"
                                  ]
                                },
                                "from": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                },
                                "to": {
                                  "type": "string",
                                  "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                },
                                "amountIn": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "amountOut": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "fees": {
                                  "type": "object",
                                  "properties": {
                                    "network": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "provider": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "platform": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "partner": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "totalUser": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "network",
                                    "provider",
                                    "platform",
                                    "totalUser"
                                  ],
                                  "additionalProperties": false
                                },
                                "feesEstimated": {
                                  "type": "boolean"
                                },
                                "etaSeconds": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "min": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "max": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "provider",
                                "venue",
                                "kind",
                                "rateType",
                                "from",
                                "to",
                                "amountIn",
                                "amountOut",
                                "fees",
                                "feesEstimated",
                                "etaSeconds",
                                "min",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            "payout": {
                              "type": "object",
                              "properties": {
                                "address": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "memo": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "memo"
                              ],
                              "additionalProperties": false
                            },
                            "refund": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "address": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "memo": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 64
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "address",
                                    "memo"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "deposit": {
                              "type": "object",
                              "properties": {
                                "address": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "memo": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                "expiresAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "expiresSource": {
                                  "default": "provider",
                                  "type": "string",
                                  "enum": [
                                    "provider",
                                    "estimate"
                                  ]
                                },
                                "received": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "memo",
                                "amount",
                                "expiresAt",
                                "expiresSource"
                              ],
                              "additionalProperties": false
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "awaiting_deposit",
                                "confirming",
                                "exchanging",
                                "private_routing",
                                "sending",
                                "completed",
                                "expired",
                                "refund_pending",
                                "refunded",
                                "failed",
                                "on_hold",
                                "partially_completed"
                              ]
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "awaiting_deposit",
                                      "confirming",
                                      "exchanging",
                                      "private_routing",
                                      "sending",
                                      "completed",
                                      "expired",
                                      "refund_pending",
                                      "refunded",
                                      "failed",
                                      "on_hold",
                                      "partially_completed"
                                    ]
                                  },
                                  "at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  }
                                },
                                "required": [
                                  "status",
                                  "at"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "amountOut": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "refunded": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "fee": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                            },
                                            "asset": {
                                              "type": "string",
                                              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "asset"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "fee"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "recipients": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "address": {
                                        "type": "string"
                                      },
                                      "memo": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "percent": {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      "venue": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delayMinutes": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "state": {
                                        "type": "string",
                                        "enum": [
                                          "pending",
                                          "scheduled",
                                          "sending",
                                          "sent",
                                          "failed"
                                        ]
                                      },
                                      "scheduledAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "tx": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "deposit",
                                                  "payout",
                                                  "refund"
                                                ]
                                              },
                                              "hash": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "confirmations": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "required": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "explorerUrl": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "hash",
                                              "confirmations",
                                              "required",
                                              "explorerUrl"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "reason": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 280
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "address",
                                      "memo",
                                      "percent",
                                      "venue",
                                      "delayMinutes",
                                      "amount",
                                      "state",
                                      "scheduledAt",
                                      "tx",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "usd": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              }
                            },
                            "notices": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "amount_adjusted",
                                      "fixed_overpay",
                                      "slow_confirmations",
                                      "multiple_deposits",
                                      "late_deposit",
                                      "slow_processing",
                                      "scheduled",
                                      "refund_reason",
                                      "delayed_update"
                                    ]
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "detail": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 280
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "createdAt",
                                  "detail"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "txs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "deposit",
                                      "payout",
                                      "refund"
                                    ]
                                  },
                                  "hash": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "confirmations": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "required": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "explorerUrl": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "hash",
                                  "confirmations",
                                  "required",
                                  "explorerUrl"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "issue": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "refund",
                                        "not_received",
                                        "wrong_network",
                                        "wrong_amount",
                                        "other"
                                      ]
                                    },
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "received",
                                        "in_progress",
                                        "needs_info",
                                        "resolved"
                                      ]
                                    },
                                    "timeline": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "at": {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          "text": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "at",
                                          "text"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "nextUpdateBy": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "action": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "enum": [
                                                "provide",
                                                "choose"
                                              ]
                                            },
                                            "field": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "depositTxHash",
                                                    "refundAddress",
                                                    "refundMemo"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "kind",
                                            "field"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "kind",
                                    "state",
                                    "timeline",
                                    "nextUpdateBy",
                                    "action"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "points": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "credited": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "credited"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "viewer": {
                              "type": "object",
                              "properties": {
                                "role": {
                                  "type": "string",
                                  "enum": [
                                    "device",
                                    "proof",
                                    "account",
                                    "api_key"
                                  ]
                                },
                                "canClaim": {
                                  "type": "boolean"
                                },
                                "owned": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "role",
                                "canClaim",
                                "owned"
                              ],
                              "additionalProperties": false
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            }
                          },
                          "required": [
                            "id",
                            "version",
                            "type",
                            "pickedBy",
                            "route",
                            "payout",
                            "refund",
                            "deposit",
                            "status",
                            "steps",
                            "amountOut",
                            "refunded",
                            "recipients",
                            "usd",
                            "notices",
                            "txs",
                            "issue",
                            "points",
                            "viewer",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "type",
                        "order"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "heartbeat"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "type",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "end"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "example": {
                  "type": "order",
                  "order": {
                    "id": "MS-7HK2PQ",
                    "version": 1,
                    "type": "fixed",
                    "pickedBy": "mind",
                    "route": {
                      "provider": "fixedfloat",
                      "venue": "mind",
                      "kind": "exchange",
                      "rateType": "fixed",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "618.368",
                      "fees": {
                        "network": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 1200,
                      "min": "0.0001599",
                      "max": "0.2422837"
                    },
                    "payout": {
                      "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                      "memo": null
                    },
                    "refund": {
                      "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                      "memo": null
                    },
                    "deposit": {
                      "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                      "memo": null,
                      "amount": "0.01",
                      "expiresAt": "2026-11-18T17:12:30.000Z",
                      "expiresSource": "provider",
                      "received": null
                    },
                    "status": "awaiting_deposit",
                    "steps": [
                      {
                        "status": "awaiting_deposit",
                        "at": "2026-11-18T16:52:30.000Z"
                      }
                    ],
                    "amountOut": "618.368",
                    "refunded": null,
                    "recipients": null,
                    "usd": {
                      "btc:bitcoin": "61849.88",
                      "usdt:tron": "1"
                    },
                    "notices": [],
                    "txs": [],
                    "issue": null,
                    "points": null,
                    "viewer": {
                      "role": "api_key",
                      "canClaim": false,
                      "owned": false
                    },
                    "createdAt": "2026-11-18T16:52:30.000Z",
                    "updatedAt": "2026-11-18T16:52:30.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "- `not_found`: Nothing matches this ID with this proof. A wrong order ID and a wrong payout address answer the same. Next: Check the order ID and the payout address with the user. Do not guess: attempts are limited per order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "device": []
          },
          {
            "privy": []
          },
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "not_found",
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 50,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 60,
            "burst": 20
          },
          {
            "by": "order_id",
            "perMinute": 30,
            "burst": 10
          }
        ]
      }
    },
    "/v1/orders/{id}/issues": {
      "post": {
        "operationId": "reportIssue",
        "summary": "Report a problem with a swap order",
        "description": "One flow for every provider: the payout did not arrive (`not_received`), the deposit went to the wrong network (`wrong_network`) or was the wrong amount (`wrong_amount`), the user wants a refund (`refund`, with `refundAddress`), or anything else (`other`). Each order has one open issue, and another report adds to it. Follow the issue through `getOrder` (`order.issue`). Its `state` moves from `received` to `in_progress` to `resolved`; `needs_info` means `action` names what to send next. `nextUpdateBy` is our promise of the next update. No key needed.\n\n**Proof.** The same as `getOrder`, or the payout address in the body (`payoutAddress`).\n\n**Rate limits.** 10 a minute per IP (bursts up to 5); 6 a minute per order (bursts up to 10). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Issues"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The order ID as created (`MS-7HK2PQ`).",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "cap",
            "in": "query",
            "required": false,
            "description": "The read-only `cap` from `trackOrder`, valid 24 hours. One way to prove access without a key.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "refund",
                        "not_received",
                        "wrong_network",
                        "wrong_amount",
                        "other"
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "received",
                        "in_progress",
                        "needs_info",
                        "resolved"
                      ]
                    },
                    "timeline": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "at",
                          "text"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "nextUpdateBy": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "action": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "provide",
                                "choose"
                              ]
                            },
                            "field": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "depositTxHash",
                                    "refundAddress",
                                    "refundMemo"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "field"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "state",
                    "timeline",
                    "nextUpdateBy",
                    "action"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "id": "0b7e3c9a-5d2f-4f6e-9a41-2c8d7e1f3b65",
                  "kind": "not_received",
                  "state": "received",
                  "timeline": [
                    {
                      "at": "2026-11-18T18:05:12.000Z",
                      "text": "We received your request."
                    }
                  ],
                  "nextUpdateBy": "2026-11-19T18:05:12.000Z",
                  "action": null
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "- `not_found`: Nothing matches this ID with this proof. A wrong order ID and a wrong payout address answer the same. Next: Check the order ID and the payout address with the user. Do not guess: attempts are limited per order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "422": {
            "description": "- `address_invalid`: A payout or refund address is not valid on its network. `details.field` says which, when it was checked. Next: Ask the user for that address again. Never correct, guess or invent it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "not_found",
          "address_invalid",
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 60,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "refund",
                      "not_received",
                      "wrong_network",
                      "wrong_amount",
                      "other"
                    ]
                  },
                  "refundAddress": {
                    "type": "string",
                    "minLength": 1
                  },
                  "refundMemo": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "depositTxHash": {
                    "type": "string",
                    "minLength": 1
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "payoutAddress": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "kind"
                ]
              },
              "example": {
                "kind": "not_received",
                "payoutAddress": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                "details": "The order says completed but nothing reached my wallet."
              }
            }
          }
        },
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 10,
            "burst": 5
          },
          {
            "by": "order_id",
            "perMinute": 6,
            "burst": 10
          }
        ],
        "x-mcp": {
          "title": "Report a problem with a swap order",
          "readOnly": false
        }
      }
    },
    "/v1/orders/track": {
      "post": {
        "operationId": "trackOrder",
        "summary": "Track a swap order by ID and payout address",
        "description": "Opens an order with its ID and payout address, the proof anyone who made the order holds. Answers the order and a `cap`: read-only access to `getOrder` and `streamOrderEvents` for 24 hours (`?cap=`). A missing order and a wrong address both answer `404 not_found`. No key needed.\n\n**Rate limits.** 30 a minute per IP (bursts up to 10). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Orders"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{6}$"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "float",
                            "fixed",
                            "private"
                          ]
                        },
                        "pickedBy": {
                          "type": "string",
                          "enum": [
                            "mind",
                            "user"
                          ]
                        },
                        "route": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]*$"
                            },
                            "venue": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]*$"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "private",
                                "exchange",
                                "public"
                              ]
                            },
                            "rateType": {
                              "type": "string",
                              "enum": [
                                "float",
                                "fixed"
                              ]
                            },
                            "from": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                            },
                            "to": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                            },
                            "amountIn": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "amountOut": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "fees": {
                              "type": "object",
                              "properties": {
                                "network": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                "provider": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                "platform": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                "partner": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                "totalUser": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "network",
                                "provider",
                                "platform",
                                "totalUser"
                              ],
                              "additionalProperties": false
                            },
                            "feesEstimated": {
                              "type": "boolean"
                            },
                            "etaSeconds": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "min": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "max": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "provider",
                            "venue",
                            "kind",
                            "rateType",
                            "from",
                            "to",
                            "amountIn",
                            "amountOut",
                            "fees",
                            "feesEstimated",
                            "etaSeconds",
                            "min",
                            "max"
                          ],
                          "additionalProperties": false
                        },
                        "payout": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "memo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "memo"
                          ],
                          "additionalProperties": false
                        },
                        "refund": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "address": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "memo": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "memo"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "deposit": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "memo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "expiresAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "expiresSource": {
                              "default": "provider",
                              "type": "string",
                              "enum": [
                                "provider",
                                "estimate"
                              ]
                            },
                            "received": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "memo",
                            "amount",
                            "expiresAt",
                            "expiresSource"
                          ],
                          "additionalProperties": false
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "awaiting_deposit",
                            "confirming",
                            "exchanging",
                            "private_routing",
                            "sending",
                            "completed",
                            "expired",
                            "refund_pending",
                            "refunded",
                            "failed",
                            "on_hold",
                            "partially_completed"
                          ]
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "awaiting_deposit",
                                  "confirming",
                                  "exchanging",
                                  "private_routing",
                                  "sending",
                                  "completed",
                                  "expired",
                                  "refund_pending",
                                  "refunded",
                                  "failed",
                                  "on_hold",
                                  "partially_completed"
                                ]
                              },
                              "at": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              }
                            },
                            "required": [
                              "status",
                              "at"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "amountOut": {
                          "type": "string",
                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                        },
                        "refunded": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                    },
                                    "asset": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "asset"
                                  ],
                                  "additionalProperties": false
                                },
                                "fee": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string",
                                          "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                        },
                                        "asset": {
                                          "type": "string",
                                          "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asset"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "amount",
                                "fee"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recipients": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "address": {
                                    "type": "string"
                                  },
                                  "memo": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "percent": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "venue": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delayMinutes": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "pending",
                                      "scheduled",
                                      "sending",
                                      "sent",
                                      "failed"
                                    ]
                                  },
                                  "scheduledAt": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "tx": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "deposit",
                                              "payout",
                                              "refund"
                                            ]
                                          },
                                          "hash": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "confirmations": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "required": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "explorerUrl": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "hash",
                                          "confirmations",
                                          "required",
                                          "explorerUrl"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "reason": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 280
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "memo",
                                  "percent",
                                  "venue",
                                  "delayMinutes",
                                  "amount",
                                  "state",
                                  "scheduledAt",
                                  "tx",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "usd": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          }
                        },
                        "notices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "amount_adjusted",
                                  "fixed_overpay",
                                  "slow_confirmations",
                                  "multiple_deposits",
                                  "late_deposit",
                                  "slow_processing",
                                  "scheduled",
                                  "refund_reason",
                                  "delayed_update"
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "detail": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 280
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "createdAt",
                              "detail"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "txs": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "deposit",
                                  "payout",
                                  "refund"
                                ]
                              },
                              "hash": {
                                "type": "string",
                                "minLength": 1
                              },
                              "confirmations": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "required": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "explorerUrl": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "hash",
                              "confirmations",
                              "required",
                              "explorerUrl"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "issue": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "refund",
                                    "not_received",
                                    "wrong_network",
                                    "wrong_amount",
                                    "other"
                                  ]
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "received",
                                    "in_progress",
                                    "needs_info",
                                    "resolved"
                                  ]
                                },
                                "timeline": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "at": {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      },
                                      "text": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "at",
                                      "text"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "nextUpdateBy": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "action": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "provide",
                                            "choose"
                                          ]
                                        },
                                        "field": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "depositTxHash",
                                                "refundAddress",
                                                "refundMemo"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "field"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "kind",
                                "state",
                                "timeline",
                                "nextUpdateBy",
                                "action"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "points": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "credited": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "amount",
                                "credited"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "viewer": {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "device",
                                "proof",
                                "account",
                                "api_key"
                              ]
                            },
                            "canClaim": {
                              "type": "boolean"
                            },
                            "owned": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "role",
                            "canClaim",
                            "owned"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "version",
                        "type",
                        "pickedBy",
                        "route",
                        "payout",
                        "refund",
                        "deposit",
                        "status",
                        "steps",
                        "amountOut",
                        "refunded",
                        "recipients",
                        "usd",
                        "notices",
                        "txs",
                        "issue",
                        "points",
                        "viewer",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "cap": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "order",
                    "cap"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "order": {
                    "id": "MS-7HK2PQ",
                    "version": 1,
                    "type": "fixed",
                    "pickedBy": "mind",
                    "route": {
                      "provider": "fixedfloat",
                      "venue": "mind",
                      "kind": "exchange",
                      "rateType": "fixed",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "618.368",
                      "fees": {
                        "network": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 1200,
                      "min": "0.0001599",
                      "max": "0.2422837"
                    },
                    "payout": {
                      "address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
                      "memo": null
                    },
                    "refund": {
                      "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                      "memo": null
                    },
                    "deposit": {
                      "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
                      "memo": null,
                      "amount": "0.01",
                      "expiresAt": "2026-11-18T17:12:30.000Z",
                      "expiresSource": "provider",
                      "received": null
                    },
                    "status": "awaiting_deposit",
                    "steps": [
                      {
                        "status": "awaiting_deposit",
                        "at": "2026-11-18T16:52:30.000Z"
                      }
                    ],
                    "amountOut": "618.368",
                    "refunded": null,
                    "recipients": null,
                    "usd": {
                      "btc:bitcoin": "61849.88",
                      "usdt:tron": "1"
                    },
                    "notices": [],
                    "txs": [],
                    "issue": null,
                    "points": null,
                    "viewer": {
                      "role": "proof",
                      "canClaim": false,
                      "owned": false
                    },
                    "createdAt": "2026-11-18T16:52:30.000Z",
                    "updatedAt": "2026-11-18T16:52:30.000Z"
                  },
                  "cap": "1795107150.Yx0bQk3…"
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "- `not_found`: Nothing matches this ID with this proof. A wrong order ID and a wrong payout address answer the same. Next: Check the order ID and the payout address with the user. Do not guess: attempts are limited per order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "not_found",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 30,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16
                  },
                  "payoutAddress": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": [
                  "orderId",
                  "payoutAddress"
                ]
              },
              "example": {
                "orderId": "MS-7HK2PQ",
                "payoutAddress": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"
              }
            }
          }
        },
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 30,
            "burst": 10
          }
        ],
        "x-mcp": {
          "title": "Track a swap order by ID and payout address",
          "readOnly": true
        }
      }
    },
    "/v1/pairs": {
      "get": {
        "operationId": "getPair",
        "summary": "Check whether a pair can be swapped",
        "description": "Whether any enabled provider can swap `from` into `to`, and which: one route per provider and kind (`exchange`, `private`, `public`) with the rate types it offers for these two assets. MIND routes show as provider `mind`. Answered from the catalog alone, so no provider is asked and nothing is priced: min, max and amounts come only from `getQuotes`. A pair nobody serves answers `available: false` with no routes. No key needed.\n\n**Rate limits.** 600 a minute per IP (bursts up to 120). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "The asset to send, `<symbol>:<network>` (`btc:bitcoin`), from `listAssets`.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "The asset to receive (`usdt:tron`).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                    },
                    "to": {
                      "type": "string",
                      "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                    },
                    "available": {
                      "type": "boolean"
                    },
                    "routes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "private",
                              "exchange",
                              "public"
                            ]
                          },
                          "rateTypes": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "float",
                                "fixed"
                              ]
                            }
                          }
                        },
                        "required": [
                          "provider",
                          "kind",
                          "rateTypes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "available",
                    "routes"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "from": "btc:bitcoin",
                  "to": "usdt:tron",
                  "available": true,
                  "routes": [
                    {
                      "provider": "changenow",
                      "kind": "exchange",
                      "rateTypes": [
                        "float"
                      ]
                    },
                    {
                      "provider": "fixedfloat",
                      "kind": "exchange",
                      "rateTypes": [
                        "float",
                        "fixed"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 15,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 600,
            "burst": 120
          }
        ],
        "x-mcp": {
          "title": "Check a pair",
          "readOnly": true
        }
      }
    },
    "/v1/partner/earnings": {
      "get": {
        "operationId": "getPartnerEarnings",
        "summary": "Read your key's partner fee earnings",
        "description": "The partner fee set on the calling key (0 to 300 basis points, set on mindswap.io/app/api) and what it has earned. `credited` is what completed orders added to the account's USDT balance, withdrawn through payouts. `pending` is the fee on open orders at their quoted value, an estimate that becomes `credited` only when the order completes. Needs the API key.\n\n**Rate limits.** 60 a minute per API key (bursts up to 20). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Keys"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "currency": {
                      "type": "string",
                      "const": "USDT"
                    },
                    "partnerFeeBps": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 300
                    },
                    "credited": {
                      "type": "string",
                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                    },
                    "pending": {
                      "type": "string",
                      "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                    },
                    "completedOrders": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "openOrders": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "keyId",
                    "currency",
                    "partnerFeeBps",
                    "credited",
                    "pending",
                    "completedOrders",
                    "openOrders"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "keyId": "0b9f3c52-6d1e-4a7b-9c8d-2e5f1a4b7c90",
                  "currency": "USDT",
                  "partnerFeeBps": 100,
                  "credited": "45",
                  "pending": "12.5",
                  "completedOrders": 3,
                  "openOrders": 1
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 80,
        "x-rate-limits": [
          {
            "by": "api_key",
            "perMinute": 60,
            "burst": 20
          }
        ]
      }
    },
    "/v1/quotes": {
      "get": {
        "operationId": "getQuotes",
        "summary": "Get swap quotes",
        "description": "Every route we can run for a pair and amount, answered by a deadline with the routes that arrived. `complete: false` means some providers are still answering (`pending`): call again, or use `streamQuotes`, for the late ones. `mind` names MIND's pick for each rate type; show it first. MIND's own routes show as provider `mind`. Each route's `routeId` is a sealed token you pass to `createOrder` unchanged. It stops working at `expiresAt` (about a minute), after which you quote again. `amountOut` and `fees.totalUser` are in the receive asset. A `fixed` route locks `amountOut` for the exact deposit amount sent before the deadline. `float` and `private` routes settle at the rate when the deposit arrives. `unavailable` lists routes that could not quote and why (`below_min` and `above_max` carry the `limit`). No key needed.\n\n**Rate limits.** 120 a minute per IP (bursts up to 30). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "The asset to send, `<symbol>:<network>` (`btc:bitcoin`), from `listAssets`.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "The asset to receive (`usdt:tron`).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "amountIn",
            "in": "query",
            "required": true,
            "description": "The amount to send, a decimal string in whole units of `from` (`0.01` BTC). Never a number, satoshi or wei.",
            "schema": {
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
            }
          },
          {
            "in": "header",
            "name": "x-api-key",
            "required": false,
            "description": "Optional. A business's API key (or the same key as `Authorization: Bearer msk_live_…`). With a key that has a partner fee, every route adds that fee (fees.partner, in the send asset, and in fees.totalUser), routes whose provider cannot carry it on the order are left out, and each routeId can be created only with this key. An invalid or revoked key answers 401 unauthorized.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "quoteKey": {
                      "type": "string"
                    },
                    "routes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "routeId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "private",
                              "exchange",
                              "public"
                            ]
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "float",
                              "fixed"
                            ]
                          },
                          "from": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                          },
                          "to": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                          },
                          "amountIn": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "amountOut": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "fees": {
                            "type": "object",
                            "properties": {
                              "network": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "provider": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "platform": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "partner": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "totalUser": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "network",
                              "provider",
                              "platform",
                              "totalUser"
                            ],
                            "additionalProperties": false
                          },
                          "feesEstimated": {
                            "type": "boolean"
                          },
                          "etaSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "min": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "max": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "routeId",
                          "provider",
                          "venue",
                          "kind",
                          "rateType",
                          "from",
                          "to",
                          "amountIn",
                          "amountOut",
                          "fees",
                          "feesEstimated",
                          "etaSeconds",
                          "min",
                          "max",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "mind": {
                      "type": "object",
                      "properties": {
                        "float": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fixed": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "private": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "float",
                        "fixed",
                        "private"
                      ],
                      "additionalProperties": false
                    },
                    "mindBacking": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]*$"
                            },
                            "fallback": {
                              "type": "boolean"
                            },
                            "venueCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "provider",
                            "fallback",
                            "venueCount"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usd": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                      }
                    },
                    "pending": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          }
                        },
                        "required": [
                          "provider",
                          "venue"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "unavailable": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "float",
                              "fixed",
                              "private"
                            ]
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "pair_not_listed",
                              "type_not_supported",
                              "below_min",
                              "above_max",
                              "provider_down",
                              "timeout"
                            ]
                          },
                          "limit": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "provider",
                          "venue",
                          "type",
                          "reason",
                          "limit"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "complete": {
                      "type": "boolean"
                    },
                    "asOf": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "quoteKey",
                    "routes",
                    "mind",
                    "mindBacking",
                    "usd",
                    "pending",
                    "unavailable",
                    "complete",
                    "asOf"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "quoteKey": "KShDNrpTrodHM6cj",
                  "routes": [
                    {
                      "routeId": "r1.k1.DMfUXFMSO0JVy6BWNJgmrvEeXjiKxbyb1NbeY7I4cf…",
                      "provider": "fixedfloat",
                      "venue": "mind",
                      "kind": "exchange",
                      "rateType": "fixed",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "618.368",
                      "fees": {
                        "network": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 1200,
                      "min": "0.0001599",
                      "max": "0.2422837",
                      "expiresAt": "2026-11-18T16:52:45.438Z"
                    },
                    {
                      "routeId": "r1.k1.RjcIN4Vigc6vxIxrUtGy53SntcktB1FpL8rMZM-9JL…",
                      "provider": "changenow",
                      "venue": "changenow",
                      "kind": "exchange",
                      "rateType": "float",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "614.92413",
                      "fees": {
                        "network": {
                          "amount": "5.0082263",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "5.0082263",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 900,
                      "min": "0.0001956",
                      "max": null,
                      "expiresAt": "2026-11-18T16:52:45.447Z"
                    }
                  ],
                  "mind": {
                    "float": null,
                    "fixed": "r1.k1.DMfUXFMSO0JVy6BWNJgmrvEeXjiKxbyb1NbeY7I4cf…",
                    "private": null
                  },
                  "mindBacking": null,
                  "usd": {
                    "btc:bitcoin": "61849.882627511591962905",
                    "usdt:tron": "1"
                  },
                  "pending": [],
                  "unavailable": [
                    {
                      "provider": "swapuz",
                      "venue": "swapuz",
                      "type": "fixed",
                      "reason": "provider_down",
                      "limit": null
                    }
                  ],
                  "complete": false,
                  "asOf": "2026-11-18T16:51:46.007Z"
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "422": {
            "description": "- `pair_unavailable`: No provider can swap this pair right now, or the pair is not listed. Next: Try another pair, or the same pair later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "unauthorized",
          "pair_unavailable",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 800,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 120,
            "burst": 30
          }
        ],
        "x-mcp": {
          "title": "Get swap quotes",
          "readOnly": true
        }
      }
    },
    "/v1/quotes/recipients": {
      "post": {
        "operationId": "quoteRecipients",
        "summary": "Estimate each wallet of a multi-wallet swap",
        "description": "For a multi-wallet order (the output split over 1 to 1000 payout wallets): what each wallet would receive and the smallest payout its exchange allows. Only a `float` route of MIND or one of its exchange venues takes several wallets. Send each wallet's `percent` (up to 2 decimals, all adding up to exactly 100) and `venue` (null for MIND), in the order you will send them to `createOrder`. `ok: false` marks a wallet its venue cannot pay out; `createOrder` would answer `recipient_below_min`. Read only: no order is made. No key needed.\n\n**Rate limits.** 60 a minute per IP (bursts up to 20). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Quotes"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "recipients": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean"
                          },
                          "amountOut": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minimum": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "ok",
                          "amountOut",
                          "minimum"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "recipients"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "recipients": [
                    {
                      "ok": true,
                      "amountOut": "371.2743819",
                      "minimum": "5.5"
                    },
                    {
                      "ok": true,
                      "amountOut": "247.0162546",
                      "minimum": "5.5"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "- `route_expired`: The routeId is past its `expiresAt`. Nothing was created. Next: Quote again and confirm the new route with the user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "422": {
            "description": "- `pair_unavailable`: No provider can swap this pair right now, or the pair is not listed. Next: Try another pair, or the same pair later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "route_expired",
          "pair_unavailable",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 3000,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "routeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "recipients": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "percent": {
                          "type": "string",
                          "pattern": "^(0|[1-9]\\d{0,2})(\\.\\d{1,2})?$"
                        },
                        "venue": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]*$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "percent",
                        "venue"
                      ]
                    }
                  }
                },
                "required": [
                  "routeId",
                  "recipients"
                ]
              },
              "example": {
                "routeId": "r1.k1.h3-EUyT9VmfLOIpC62z7AJZRuTxDh6H5OY9OUG4jlf…",
                "recipients": [
                  {
                    "percent": "60",
                    "venue": null
                  },
                  {
                    "percent": "40",
                    "venue": null
                  }
                ]
              }
            }
          }
        },
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 60,
            "burst": 20
          }
        ],
        "x-mcp": {
          "title": "Estimate each wallet of a multi-wallet swap",
          "readOnly": true
        }
      }
    },
    "/v1/quotes/stream": {
      "get": {
        "operationId": "streamQuotes",
        "summary": "Stream quotes as late routes arrive",
        "description": "Server-sent events. Each `snapshot` event carries the whole quote again (the shape of `getQuotes`) when a late route lands. One `done` event carries the final snapshot, and the stream closes. Replace what you show with each event; never merge. No key needed.\n\n**Rate limits.** 60 a minute per IP (bursts up to 20). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "The asset to send, `<symbol>:<network>` (`btc:bitcoin`), from `listAssets`.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "The asset to receive (`usdt:tron`).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
            }
          },
          {
            "name": "amountIn",
            "in": "query",
            "required": true,
            "description": "The amount to send, a decimal string in whole units of `from` (`0.01` BTC). Never a number, satoshi or wei.",
            "schema": {
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
            }
          },
          {
            "in": "header",
            "name": "x-api-key",
            "required": false,
            "description": "Optional. A business's API key (or the same key as `Authorization: Bearer msk_live_…`). With a key that has a partner fee, every route adds that fee (fees.partner, in the send asset, and in fees.totalUser), routes whose provider cannot carry it on the order are left out, and each routeId can be created only with this key. An invalid or revoked key answers 401 unauthorized.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "quoteKey": {
                      "type": "string"
                    },
                    "routes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "routeId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "private",
                              "exchange",
                              "public"
                            ]
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "float",
                              "fixed"
                            ]
                          },
                          "from": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                          },
                          "to": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                          },
                          "amountIn": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "amountOut": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "fees": {
                            "type": "object",
                            "properties": {
                              "network": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "provider": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "platform": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "partner": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              },
                              "totalUser": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                                  },
                                  "asset": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9._-]*:[a-z0-9][a-z0-9-]*$"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "asset"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "network",
                              "provider",
                              "platform",
                              "totalUser"
                            ],
                            "additionalProperties": false
                          },
                          "feesEstimated": {
                            "type": "boolean"
                          },
                          "etaSeconds": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "min": {
                            "type": "string",
                            "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "max": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "routeId",
                          "provider",
                          "venue",
                          "kind",
                          "rateType",
                          "from",
                          "to",
                          "amountIn",
                          "amountOut",
                          "fees",
                          "feesEstimated",
                          "etaSeconds",
                          "min",
                          "max",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "mind": {
                      "type": "object",
                      "properties": {
                        "float": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fixed": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "private": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "float",
                        "fixed",
                        "private"
                      ],
                      "additionalProperties": false
                    },
                    "mindBacking": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]*$"
                            },
                            "fallback": {
                              "type": "boolean"
                            },
                            "venueCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "provider",
                            "fallback",
                            "venueCount"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "usd": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                      }
                    },
                    "pending": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          }
                        },
                        "required": [
                          "provider",
                          "venue"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "unavailable": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "venue": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "float",
                              "fixed",
                              "private"
                            ]
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "pair_not_listed",
                              "type_not_supported",
                              "below_min",
                              "above_max",
                              "provider_down",
                              "timeout"
                            ]
                          },
                          "limit": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "provider",
                          "venue",
                          "type",
                          "reason",
                          "limit"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "complete": {
                      "type": "boolean"
                    },
                    "asOf": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "quoteKey",
                    "routes",
                    "mind",
                    "mindBacking",
                    "usd",
                    "pending",
                    "unavailable",
                    "complete",
                    "asOf"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "quoteKey": "KShDNrpTrodHM6cj",
                  "routes": [
                    {
                      "routeId": "r1.k1.DMfUXFMSO0JVy6BWNJgmrvEeXjiKxbyb1NbeY7I4cf…",
                      "provider": "fixedfloat",
                      "venue": "mind",
                      "kind": "exchange",
                      "rateType": "fixed",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "618.368",
                      "fees": {
                        "network": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "0.75919",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 1200,
                      "min": "0.0001599",
                      "max": "0.2422837",
                      "expiresAt": "2026-11-18T16:52:45.438Z"
                    },
                    {
                      "routeId": "r1.k1.RjcIN4Vigc6vxIxrUtGy53SntcktB1FpL8rMZM-9JL…",
                      "provider": "changenow",
                      "venue": "changenow",
                      "kind": "exchange",
                      "rateType": "float",
                      "from": "btc:bitcoin",
                      "to": "usdt:tron",
                      "amountIn": "0.01",
                      "amountOut": "614.92413",
                      "fees": {
                        "network": {
                          "amount": "5.0082263",
                          "asset": "usdt:tron"
                        },
                        "provider": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "platform": {
                          "amount": "0",
                          "asset": "usdt:tron"
                        },
                        "totalUser": {
                          "amount": "5.0082263",
                          "asset": "usdt:tron"
                        }
                      },
                      "feesEstimated": true,
                      "etaSeconds": 900,
                      "min": "0.0001956",
                      "max": null,
                      "expiresAt": "2026-11-18T16:52:45.447Z"
                    }
                  ],
                  "mind": {
                    "float": null,
                    "fixed": "r1.k1.DMfUXFMSO0JVy6BWNJgmrvEeXjiKxbyb1NbeY7I4cf…",
                    "private": null
                  },
                  "mindBacking": null,
                  "usd": {
                    "btc:bitcoin": "61849.882627511591962905",
                    "usdt:tron": "1"
                  },
                  "pending": [],
                  "unavailable": [
                    {
                      "provider": "swapuz",
                      "venue": "swapuz",
                      "type": "fixed",
                      "reason": "provider_down",
                      "limit": null
                    }
                  ],
                  "complete": false,
                  "asOf": "2026-11-18T16:51:46.007Z"
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "422": {
            "description": "- `pair_unavailable`: No provider can swap this pair right now, or the pair is not listed. Next: Try another pair, or the same pair later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "unauthorized",
          "pair_unavailable",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 800,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 60,
            "burst": 20
          }
        ]
      }
    },
    "/v1/rewards/program": {
      "get": {
        "operationId": "rewardsProgramGet",
        "summary": "Points program and cashback tiers",
        "description": "The points program: `pointsPerUsd` points per US dollar of completed volume, and the tiers by points with their cashback and referral shares in basis points (1500 = 15 %). Orders made with a commercial API key earn no points. No key needed.\n\n**Rate limits.** 120 a minute per IP (bursts up to 40). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Rewards"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pointsPerUsd": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "buybackBps": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 10000
                    },
                    "tiers": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tier": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minPoints": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "cashbackBps": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 10000
                          },
                          "referralBps": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 10000
                          }
                        },
                        "required": [
                          "tier",
                          "minPoints",
                          "cashbackBps",
                          "referralBps"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "pointsPerUsd",
                    "buybackBps",
                    "tiers"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "pointsPerUsd": 100,
                  "buybackBps": 4000,
                  "tiers": [
                    {
                      "tier": 1,
                      "minPoints": 0,
                      "cashbackBps": 1500,
                      "referralBps": 1000
                    },
                    {
                      "tier": 2,
                      "minPoints": 10000000,
                      "cashbackBps": 2500,
                      "referralBps": 2500
                    },
                    {
                      "tier": 3,
                      "minPoints": 50000000,
                      "cashbackBps": 3500,
                      "referralBps": 3500
                    },
                    {
                      "tier": 4,
                      "minPoints": 100000000,
                      "cashbackBps": 5000,
                      "referralBps": 5000
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 10,
        "x-rate-limits": [
          {
            "by": "ip",
            "perMinute": 120,
            "burst": 40
          }
        ],
        "x-mcp": {
          "title": "Points program and cashback tiers",
          "readOnly": true
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Read this API key's usage",
        "description": "The calling key's own traffic: requests, errors (4xx and 5xx except 429) and rate-limited answers, per hour for `24h` or per UTC day for `7d`, oldest first. The last bucket is still running. `limit` is the key's own bucket (`perMinute`, `burst`); it is null while the key is inactive and the anonymous per-IP limits apply. A key becomes active when an order made with any of the account's keys completes.\n\n**Auth.** An API key.\n\n**Rate limits.** 120 a minute per API key (bursts up to 30). Over a limit the answer is `429 rate_limited` with `retryAfterMs` and a `Retry-After` header. Wait that long, then call again.",
        "tags": [
          "Keys"
        ],
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": false,
            "description": "`24h` (hourly buckets, the default) or `7d` (daily buckets).",
            "schema": {
              "default": "24h",
              "type": "string",
              "enum": [
                "24h",
                "7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "window": {
                      "type": "string",
                      "enum": [
                        "24h",
                        "7d"
                      ]
                    },
                    "buckets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "requests": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "errors": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "rateLimited": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "start": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "requests",
                          "errors",
                          "rateLimited",
                          "start"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "requests": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "errors": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "rateLimited": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "requests",
                        "errors",
                        "rateLimited"
                      ],
                      "additionalProperties": false
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "limit": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "perMinute": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "burst": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "perMinute",
                            "burst"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "window",
                    "buckets",
                    "totals",
                    "lastUsedAt",
                    "limit"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "window": "24h",
                  "buckets": [
                    {
                      "start": "2026-11-18T16:00:00.000Z",
                      "requests": 412,
                      "errors": 3,
                      "rateLimited": 0
                    },
                    {
                      "start": "2026-11-18T17:00:00.000Z",
                      "requests": 128,
                      "errors": 0,
                      "rateLimited": 2
                    }
                  ],
                  "totals": {
                    "requests": 540,
                    "errors": 3,
                    "rateLimited": 2
                  },
                  "lastUsedAt": "2026-11-18T17:41:09.000Z",
                  "limit": {
                    "perMinute": 1200,
                    "burst": 200
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `invalid_request`: An input is missing or malformed. `details` names the field. Next: Fix the field that `details` names and send again. Sending it unchanged fails the same way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "- `unauthorized`: The call needs proof it did not carry: the API key that owns the resource, or for an order its payout address or `cap`. Next: For an order, send its payout address (or the `cap` from tracking). Swaps never need an API key. For an endpoint that reads your key (orders list, usage, partner earnings), send a valid `msk_live_` key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "- `rate_limited`: Too many requests from this caller (per IP, or per key once the key is active). Next: Wait `retryAfterMs` milliseconds, then send the same request again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "- `service_paused`: MindSwap paused this briefly (new orders or this endpoint). Next: Wait `retryAfterMs`, then try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          },
          "default": {
            "description": "Any other error, such as `internal` (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "apiKeyBearer": []
          }
        ],
        "x-error-codes": [
          "invalid_request",
          "unauthorized",
          "rate_limited",
          "service_paused"
        ],
        "x-p95-ms": 50,
        "x-rate-limits": [
          {
            "by": "api_key",
            "perMinute": 120,
            "burst": 30
          }
        ],
        "x-mcp": {
          "title": "Read this API key's usage",
          "readOnly": true
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiErrorBody": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_request",
                  "unauthorized",
                  "not_found",
                  "rate_limited",
                  "route_expired",
                  "quote_moved",
                  "pair_unavailable",
                  "amount_out_of_range",
                  "address_invalid",
                  "memo_required",
                  "recipient_below_min",
                  "idempotency_mismatch",
                  "create_in_progress",
                  "create_in_doubt",
                  "provider_rejected",
                  "order_not_claimable",
                  "already_claimed",
                  "duplicate",
                  "stale_version",
                  "wallet_linked_elsewhere",
                  "has_open_balance",
                  "payout_below_minimum",
                  "insufficient_balance",
                  "payout_open",
                  "payouts_frozen",
                  "key_revoked",
                  "too_many_open_orders",
                  "provider_busy",
                  "service_paused",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryAfterMs": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "details": {}
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "requestId"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your API key (`msk_live_…`), created in your MindSwap account. Never put it in a prompt, a log or a tool result."
      },
      "apiKeyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "msk_live_…",
        "description": "The same API key, sent as `Authorization: Bearer msk_live_…`."
      },
      "privy": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "A signed-in mindswap.io session: any Bearer token that is not an `msk_` key. For the website; integrations use an API key."
      },
      "device": {
        "type": "apiKey",
        "in": "cookie",
        "name": "ms_dev",
        "description": "The HttpOnly cookie a browser gets with its first order. Browsers only."
      }
    }
  }
}
