Skip to content

๐Ÿ“‹ OpenAPI Reference โ€‹

Interactive API Documentation โ€‹

For full interactive Swagger UI, use these external tools with our OpenAPI specification:

๐Ÿ› ๏ธ Online Swagger Editor โ€‹

  1. Copy the content from openapi.json
  2. Paste into Swagger Editor
  3. Test requests directly in your browser

๐Ÿ“ฑ Postman Collections โ€‹

  • Import URL: https://fantasy402-api-production.utahj4754.workers.dev/docs/openapi.json
  • Full request/response testing with authentication

๐ŸŒ Alternative Online Viewers โ€‹

๐Ÿ“„ Complete API Specification โ€‹

The Fantasy402 MCP API follows OpenAPI 3.1.0 specification with 40+ tools:

  • ๐Ÿค– AI Intelligence: Player analysis, anomaly detection, market analysis
  • ๐Ÿ‘ฅ Fantasy402 Manager: Customer admin, agent performance, weekly figures
  • โšฝ Core Betting: Place bets, get odds, manage betting pipeline
  • ๐Ÿ’ฐ Financial Operations: Commissions, settlements, cash flow
  • ๐Ÿ›ก๏ธ Risk Management: Sharp detection, exposure monitoring, circuit breakers
  • โš™๏ธ Operational Tools: Performance monitoring, system management

๐Ÿš€ Getting Started โ€‹

1. Choose Your Tool โ€‹

Use either the Tool Tester for direct API testing or import our OpenAPI spec into your preferred API client.

2. Authentication โ€‹

All endpoints require proper API credentials. Contact your Fantasy402 representative for authentication details.

3. JSON-RPC Format โ€‹

All requests follow the JSON-RPC 2.0 specification:

json
{
  "jsonrpc": "2.0",
  "id": "unique-request-id",
  "method": "tools/call",
  "params": {
    "name": "toolName",
    "arguments": {
      // Tool-specific parameters
    }
  }
}

4. Response Format โ€‹

json
{
  "jsonrpc": "2.0",
  "id": "unique-request-id",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "Tool execution result"
      }
    ],
    "isError": false
  }
}

๐Ÿ’ก Need Help? โ€‹