{
  "openapi": "3.1.0",
  "info": {
    "title": "Polexbot Agent API",
    "version": "1.1.0",
    "description": "JSON API for AI agents and integrations to read a Polexbot account, validate and configure supported strategies, and control the existing Polymarket trading engine. There is deliberately no arbitrary buy, sell, or order-placement endpoint. Many validation failures use HTTP 200 with ok=false; clients must always inspect ok. Full guide: https://www.polexbotpro.pro/agents. MCP and sandbox: https://www.polexbotpro.pro/agents/mcp"
  },
  "servers": [
    {
      "url": "https://www.polexbotpro.pro",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "token",
        "description": "Account token returned by /api/wallet/connect. Do not place bearer tokens or private keys in prompts, URLs, logs, or browser JavaScript."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "ok",
          "error"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "string"
          }
        }
      },
      "Success": {
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": true
      },
      "Config": {
        "type": "object",
        "description": "Partial strategy configuration. Explicit values override presets. The MCP integration adds strict validation and reviewed preview hashes before applying changes.",
        "properties": {
          "strategy": {
            "type": "string",
            "enum": [
              "constellation",
              "aistrat",
              "aces",
              "custom"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "selective",
              "balanced",
              "aggressive"
            ]
          },
          "dcaMode": {
            "type": "string",
            "enum": [
              "standard",
              "off",
              "capped",
              "confirm"
            ]
          },
          "initialBuy": {
            "type": "number",
            "minimum": 1,
            "description": "Initial entry size in dollars"
          },
          "maxPerTrade": {
            "type": "number",
            "minimum": 1,
            "description": "Must be at least initialBuy"
          },
          "bankroll": {
            "type": "number",
            "minimum": 1
          },
          "maxConcurrent": {
            "type": "integer",
            "minimum": 1,
            "maximum": 6
          },
          "entryLow": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "entryHigh": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "avoidLow": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "avoidHigh": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "upThreshold": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "downThreshold": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "minAgree": {
            "type": "integer",
            "minimum": 2,
            "maximum": 6
          },
          "laggardGap": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "dca1": {
            "type": "number",
            "minimum": 0
          },
          "dca2": {
            "type": "number",
            "minimum": 0
          },
          "dcaDrop": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "stopLoss": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "assets": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "enum": [
                "btc",
                "eth",
                "sol",
                "xrp",
                "doge",
                "bnb"
              ]
            }
          },
          "skipHours": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 23
            }
          },
          "tradeUp": {
            "type": "boolean"
          },
          "tradeDown": {
            "type": "boolean"
          },
          "streakReversal": {
            "type": "boolean"
          },
          "streakLength": {
            "type": "integer",
            "minimum": 2
          }
        },
        "additionalProperties": true
      },
      "Trade": {
        "type": "object",
        "properties": {
          "ts": {
            "type": "number"
          },
          "dt": {
            "type": "string"
          },
          "asset": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "won": {
            "type": "boolean"
          },
          "pnl": {
            "type": "number"
          },
          "spent": {
            "type": "number"
          },
          "shares": {
            "type": "number"
          },
          "entry": {
            "type": "number"
          },
          "dcaCount": {
            "type": "integer"
          },
          "orderId": {
            "type": [
              "string",
              "null"
            ]
          },
          "conditionId": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Stats": {
        "type": "object",
        "properties": {
          "trades": {
            "type": "integer"
          },
          "wins": {
            "type": "integer"
          },
          "losses": {
            "type": "integer"
          },
          "pnl": {
            "type": "number"
          },
          "winRate": {
            "type": "number"
          },
          "today": {
            "type": "integer"
          }
        }
      },
      "LogEntry": {
        "type": "object",
        "properties": {
          "ts": {
            "type": "number"
          },
          "kind": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "msg": {
            "type": "string"
          }
        }
      },
      "WalletLink": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "marks": {
            "type": "boolean"
          },
          "fix": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "wallet": {
            "type": "object",
            "properties": {
              "connected": {
                "type": "boolean"
              },
              "address": {
                "type": "string"
              },
              "proxy": {
                "type": "string"
              },
              "pk": {
                "type": "string",
                "description": "Always redacted by this endpoint"
              },
              "botActive": {
                "type": "boolean"
              }
            }
          },
          "config": {
            "$ref": "#/components/schemas/Config"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "trades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trade"
            }
          }
        }
      },
      "BotStateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Success"
          },
          {
            "type": "object",
            "properties": {
              "running": {
                "type": "boolean",
                "description": "Engine state is fresh, not proof of fills"
              },
              "botActive": {
                "type": "boolean",
                "description": "Requested on/off flag"
              },
              "proxyRestricted": {
                "type": "boolean"
              },
              "link": {
                "$ref": "#/components/schemas/WalletLink"
              },
              "state": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "alive": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "number"
                  },
                  "age_seconds": {
                    "type": "integer"
                  },
                  "stale": {
                    "type": "boolean"
                  },
                  "bankroll": {
                    "type": "number"
                  },
                  "open_positions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "recent_trades": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "logs": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/LogEntry"
                    }
                  },
                  "trading_paused": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              "trades": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Trade"
                }
              },
              "stats": {
                "$ref": "#/components/schemas/Stats"
              }
            }
          }
        ]
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid bearer token. WWW-Authenticate points to the OAuth protected-resource metadata.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Failure": {
        "description": "Request failed. Some failures are HTTP 200 with ok=false.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "parameters": {
      "slug": {
        "name": "slug",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "briefDate": {
        "name": "date",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/api/wallet/connect": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Connect a wallet and return its account bearer token",
        "description": "The private key is a full wallet credential and is retained server-side for order signing. Use a dedicated limited-funds wallet. The MCP server exposes this flow through connect_wallet only when POLEXBOT_AUTONOMOUS=true; bearer-token mode remains available for supervised use.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "privateKey",
                  "proxyAddress"
                ],
                "properties": {
                  "privateKey": {
                    "type": "string",
                    "format": "password",
                    "writeOnly": true,
                    "pattern": "^(0x)?[a-fA-F0-9]{64}$"
                  },
                  "proxyAddress": {
                    "type": "string",
                    "pattern": "^(0x)?[a-fA-F0-9]{40}$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Connected account or validation failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/wallet/derive-address": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Derive deployed Polymarket wallet candidates from a private key",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "privateKey"
                ],
                "properties": {
                  "privateKey": {
                    "type": "string",
                    "format": "password",
                    "writeOnly": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Derivation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/wallet/disconnect": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Mark the wallet disconnected and stop new bot activity",
        "description": "Preserves account credentials and history; reconnecting restores the account.",
        "responses": {
          "200": {
            "description": "Disconnected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get the safe account record, configuration, trades, and statistics",
        "responses": {
          "200": {
            "description": "Account record with private key redacted",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Success"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "user": {
                          "$ref": "#/components/schemas/User"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/wallet/balance": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get collateral, positions value, bankroll, and wallet warnings",
        "responses": {
          "200": {
            "description": "Live balance or fetch failure",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Success"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "pusd": {
                          "type": "number"
                        },
                        "usdce": {
                          "type": "number"
                        },
                        "pol": {
                          "type": "number"
                        },
                        "usdc": {
                          "type": "number"
                        },
                        "deployed": {
                          "type": "boolean"
                        },
                        "positionsValue": {
                          "type": "number"
                        },
                        "positionsCost": {
                          "type": "number"
                        },
                        "bankroll": {
                          "type": "number"
                        },
                        "proxyRestricted": {
                          "type": "boolean"
                        },
                        "link": {
                          "$ref": "#/components/schemas/WalletLink"
                        },
                        "warning": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/wallet/approve": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Check trading readiness without submitting a transaction",
        "responses": {
          "200": {
            "description": "Readiness result; inspect ready even when ok=true",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/bot/config": {
      "post": {
        "tags": [
          "Strategy"
        ],
        "summary": "Merge and return strategy configuration",
        "description": "The raw endpoint accepts a partial configuration. Agents should use preview/validation and either human approval or an explicit autonomous trust policy. /api/config is equivalent.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Config"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved configuration",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Success"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "config": {
                          "$ref": "#/components/schemas/Config"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/config": {
      "post": {
        "tags": [
          "Strategy"
        ],
        "summary": "Alias for /api/bot/config",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Config"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved configuration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/bot/state": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get requested and actual engine state",
        "responses": {
          "200": {
            "description": "Engine state and recent account results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BotStateResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/trades": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get persisted trades and aggregate statistics",
        "responses": {
          "200": {
            "description": "Up to 200 trades and all-time statistics",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Success"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "trades": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Trade"
                          }
                        },
                        "stats": {
                          "$ref": "#/components/schemas/Stats"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/logs": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get engine and durable result logs",
        "responses": {
          "200": {
            "description": "Activity log",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Success"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "logs": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LogEntry"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/bot/start": {
      "post": {
        "tags": [
          "Control"
        ],
        "summary": "Start the existing real trading strategy engine",
        "description": "Enables real signed orders when the strategy permits. Does not promise a fill. Check wallet readiness and obtain owner approval or explicit autonomous authorization first.",
        "responses": {
          "200": {
            "description": "Start result or readiness failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/bot/stop": {
      "post": {
        "tags": [
          "Control"
        ],
        "summary": "Disable new bot activity",
        "description": "Does not liquidate existing positions or guarantee cancellation of already-submitted activity.",
        "responses": {
          "200": {
            "description": "Stop result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/ask-ai": {
      "post": {
        "tags": [
          "Strategy"
        ],
        "summary": "Return a sanitized AI strategy suggestion without saving or starting it",
        "responses": {
          "200": {
            "description": "Suggestion or error; per-user cooldown applies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/onboard-ai": {
      "post": {
        "tags": [
          "Strategy"
        ],
        "summary": "Map plain English to a sanitized AI Strat proposal without saving or starting it",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "maxLength": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Proposal or error; per-user cooldown applies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/prices": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get the current crypto price snapshot",
        "security": [],
        "responses": {
          "200": {
            "description": "BTC, ETH, SOL, XRP, and BNB prices",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "502": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/markets/live": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get live five-minute market data",
        "security": [],
        "responses": {
          "200": {
            "description": "Live market snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/signals/live": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get the live signal board",
        "security": [],
        "responses": {
          "200": {
            "description": "Live signals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/signals/history": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get historical signal-board data",
        "security": [],
        "responses": {
          "200": {
            "description": "Historical signals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/traders/positions": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get tracked traders' public Polymarket positions",
        "security": [],
        "responses": {
          "200": {
            "description": "Public positions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/politics": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get politics market boards",
        "security": [],
        "responses": {
          "200": {
            "description": "Politics boards",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/politics/{slug}": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get one politics board and its analysis",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Board",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/esports": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get esports market boards",
        "security": [],
        "responses": {
          "200": {
            "description": "Esports boards",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/esports/{slug}": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get one esports board and its analysis",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Board",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/uefa": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get UEFA market boards",
        "security": [],
        "responses": {
          "200": {
            "description": "UEFA boards",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/uefa/{slug}": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get one UEFA board and its analysis",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Board",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    },
    "/api/briefs": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get the daily market brief index",
        "security": [],
        "responses": {
          "200": {
            "description": "Brief index",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    },
    "/api/briefs/{date}": {
      "get": {
        "tags": [
          "Public market data"
        ],
        "summary": "Get one daily market brief",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/briefDate"
          }
        ],
        "responses": {
          "200": {
            "description": "Brief",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          }
        }
      }
    }
  }
}
