{
  "openapi": "3.1.0",
  "info": {
    "title": "Rebel With A Calling — Agent Commerce API",
    "version": "0.1.0",
    "description": "Public, read-only commerce endpoints for AI agents: catalogue, availability, quoting and paid content. Payments are completed on hosted Stripe Checkout or via the x402 handshake.",
    "contact": {
      "name": "Rebel With A Calling",
      "email": "ceo@rebelwithacalling.com",
      "url": "https://rebelwithacalling.com"
    }
  },
  "servers": [
    {
      "url": "https://rebelwithacalling.com"
    }
  ],
  "x-service-info": {
    "name": "Rebel With A Calling",
    "categories": [
      "professional-services",
      "consulting",
      "decision-intelligence",
      "digital-products",
      "physical-goods"
    ],
    "currencies": [
      "USD"
    ],
    "payment_methods": [
      "stripe",
      "card",
      "x402"
    ],
    "protocols": {
      "acp": "https://rebelwithacalling.com/.well-known/acp.json",
      "ucp": "https://rebelwithacalling.com/.well-known/ucp",
      "mcp": "https://rebelwithacalling.com/mcp",
      "a2a": "https://rebelwithacalling.com/.well-known/agent-card.json"
    }
  },
  "paths": {
    "/api/public/agent/catalog": {
      "get": {
        "operationId": "listCatalog",
        "summary": "List purchasable services and products with live pricing.",
        "responses": {
          "200": {
            "description": "Catalogue"
          }
        }
      }
    },
    "/api/public/agent/availability": {
      "get": {
        "operationId": "listAvailability",
        "summary": "List open appointment slots.",
        "responses": {
          "200": {
            "description": "Availability"
          }
        }
      }
    },
    "/api/public/agent/quote": {
      "post": {
        "operationId": "quoteEngagement",
        "summary": "Quote a service and receive a hosted checkout link.",
        "x-payment-info": {
          "intent": "session",
          "method": "stripe",
          "amount": 147,
          "currency": "USD",
          "description": "Hosted Stripe Checkout session for the quoted engagement. Amount varies by service; see the quote response."
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "service_id"
                ],
                "properties": {
                  "service_id": {
                    "type": "string"
                  },
                  "date": {
                    "type": "string",
                    "format": "date"
                  },
                  "time": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Quote with payment plan and checkout link"
          }
        }
      }
    },
    "/api/public/agent/premium/decision-brief": {
      "get": {
        "operationId": "getDecisionBrief",
        "summary": "Machine-payable forensic decision brief.",
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "amount": 5,
          "currency": "USD",
          "description": "One-off charge for a machine-readable decision-intelligence brief. Also payable over x402 (HTTP 402)."
        },
        "responses": {
          "200": {
            "description": "Brief content"
          },
          "402": {
            "description": "Payment required — x402 payment requirements returned"
          }
        }
      }
    }
  }
}