{
  "openapi": "3.1.0",
  "info": {
    "title": "AwardTape agent data feed",
    "version": "1.0.0",
    "description": "Pay-per-call REST API and MCP server for U.S. DoD and DHS contract awards, daily Department of War releases, contractor profiles, Federal Register rules (DFARS, FAR, DoD, DHS), DSCA arms sales and allied defense contracts. Pay per call with x402 (USDC on Base, X-PAYMENT header), Stripe machine payments, or a prepaid bearer key. Free sample at /api/agent/v1/sample. Docs: https://awardtape.com/agents/",
    "contact": {
      "name": "AwardTape",
      "email": "hello@awardtape.com",
      "url": "https://awardtape.com/agents/"
    },
    "termsOfService": "https://awardtape.com/terms/"
  },
  "servers": [
    {
      "url": "https://awardtape.com"
    }
  ],
  "x-service-info": {
    "categories": [
      "data",
      "government",
      "defense",
      "contracts"
    ],
    "docs": {
      "homepage": "https://awardtape.com/agents/",
      "apiReference": "https://awardtape.com/openapi.json",
      "llms": "https://awardtape.com/llms.txt"
    }
  },
  "components": {
    "securitySchemes": {
      "mpp": {
        "type": "http",
        "scheme": "Payment",
        "description": "Machine Payments Protocol credential returned after paying the 402 challenge"
      },
      "bundleKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "atk_... key from POST /api/agent/v1/credits (1,000 calls)"
      },
      "planKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "atp_... legacy owner plan key (still accepted)"
      },
      "x402": {
        "type": "apiKey",
        "in": "header",
        "name": "X-PAYMENT",
        "description": "x402 v1 exact scheme, USDC on Base. Unpaid calls return 402 with accepts[]; retry with a signed X-PAYMENT header. Status and payTo: /.well-known/x402.json"
      }
    }
  },
  "paths": {
    "/api/agent/v1/sample": {
      "get": {
        "operationId": "sample",
        "summary": "Free sample: 5 latest awards and 1 company",
        "responses": {
          "200": {
            "description": "Sample JSON"
          }
        }
      }
    },
    "/api/agent/v1/awards": {
      "get": {
        "operationId": "searchAwards",
        "summary": "Award search, up to 100 rows, $0.02 per call",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Company name or PIID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agency",
            "in": "query",
            "required": false,
            "description": "Agency slug",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "psc",
            "in": "query",
            "required": false,
            "description": "4-character PSC",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min",
            "in": "query",
            "required": false,
            "description": "Minimum obligated USD",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "x-payment-info": {
          "amount": "20000",
          "currency": "0x20c000000000000000000000b9537d11c60e8b50",
          "description": "Award search, up to 100 rows ($0.02)",
          "intent": "charge",
          "method": "tempo"
        },
        "responses": {
          "200": {
            "description": "Awards, largest obligated first"
          },
          "402": {
            "description": "Payment Required. WWW-Authenticate: Payment challenge (MPP); JSON body lists price_usd, card bundle and free sample."
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "20000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/companies/{id}": {
      "get": {
        "operationId": "getCompany",
        "summary": "Company profile and top 25 awards, $0.02 per call",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Company slug, e.g. anduril-industries"
          }
        ],
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "x-payment-info": {
          "amount": "20000",
          "currency": "0x20c000000000000000000000b9537d11c60e8b50",
          "description": "Company profile ($0.02)",
          "intent": "charge",
          "method": "tempo"
        },
        "responses": {
          "200": {
            "description": "Company profile"
          },
          "402": {
            "description": "Payment Required. WWW-Authenticate: Payment challenge (MPP); JSON body lists price_usd, card bundle and free sample."
          },
          "404": {
            "description": "Unknown company, not charged"
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "20000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/daily": {
      "get": {
        "operationId": "dailyList",
        "summary": "Latest 200 awards by action date, $0.05 per call",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "x-payment-info": {
          "amount": "50000",
          "currency": "0x20c000000000000000000000b9537d11c60e8b50",
          "description": "Daily list, 200 rows ($0.05)",
          "intent": "charge",
          "method": "tempo"
        },
        "responses": {
          "200": {
            "description": "Latest awards"
          },
          "402": {
            "description": "Payment Required. WWW-Authenticate: Payment challenge (MPP); JSON body lists price_usd, card bundle and free sample."
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/credits": {
      "post": {
        "operationId": "buyCredits",
        "summary": "Buy the Starter credit pack ($5.00 for 1,000 calls); returns a bearer key",
        "security": [
          {
            "mpp": []
          }
        ],
        "x-payment-info": {
          "offers": [
            {
              "amount": "500",
              "currency": "usd",
              "description": "1,000 calls by card (Stripe shared payment token)",
              "intent": "charge",
              "method": "stripe"
            },
            {
              "amount": "5000000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "250 calls in USDC on Tempo",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "responses": {
          "201": {
            "description": "{ key: atk_..., calls: 250 }"
          },
          "402": {
            "description": "Payment Required. WWW-Authenticate: Payment challenge (MPP); JSON body lists price_usd, card bundle and free sample."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Empty body"
              }
            }
          }
        }
      }
    },
    "/api/agent/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "MCP JSON-RPC 2.0 over HTTP. Tools: sample (free), search_awards ($0.02), get_company ($0.02), latest_awards ($0.05), request_owner_payment (free), check_owner_payment (free)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result or error payment_required"
          }
        }
      }
    },
    "/api/agent/v1/checkout": {
      "post": {
        "operationId": "ownerCheckout",
        "summary": "Free. Stripe Checkout link for the agent's owner to buy a credit pack by card: starter $5 (1,000 calls), builder $25 (6,000), scale $100 (30,000). Returns pay_url, claim_token, claim_url, expires_at",
        "parameters": [
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "starter",
                "builder",
                "scale"
              ],
              "default": "starter"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "pay_url, claim_token, claim_url, expires_at, instructions"
          },
          "400": {
            "description": "Unknown plan"
          },
          "429": {
            "description": "3 open checkouts per IP"
          },
          "410": {
            "description": "Monthly plans are retired; use a credit pack"
          }
        }
      }
    },
    "/api/agent/v1/checkout/{claim_token}": {
      "get": {
        "operationId": "ownerCheckoutStatus",
        "summary": "Free. pending | paid (key returned once) | claimed | expired",
        "parameters": [
          {
            "name": "claim_token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Status, and the key once when paid"
          },
          "404": {
            "description": "Unknown token"
          }
        }
      }
    },
    "/api/agent/v1/foia": {
      "get": {
        "summary": "Contract Documents & SOW feed",
        "parameters": [
          {
            "name": "piid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trigger",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ok,count,items,credits_policy}"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "security": [
          {
            "x402": []
          }
        ],
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      },
      "post": {
        "summary": "Queue an anonymous contract file request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "piid"
                ],
                "properties": {
                  "piid": {
                    "type": "string"
                  },
                  "contractor": {
                    "type": "string"
                  },
                  "agency": {
                    "type": "string"
                  },
                  "doc_type": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "callback_url": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "{ok,request_id,piid,status,foia_office,estimated_turnaround_days,message}"
          },
          "402": {
            "description": "Payment required"
          },
          "422": {
            "description": "Not available for this contract type"
          }
        }
      }
    },
    "/api/agent/v1/opportunities": {
      "get": {
        "operationId": "getCommercialOpportunities",
        "summary": "Sell Now (subcontract windows, open bids, IDIQ vehicles) and Sell Next (expiring incumbent recompetes)",
        "description": "Returns CRM-ready immediate capture targets (recent $15M+ prime subcontracting windows, open SAM.gov/DIU solicitations, IDIQ vehicle headroom) and 6-18 month expiring recompetes with incumbent vulnerability and FOIA (Beta) links. Supports ?format=csv.",
        "x-payment-info": {
          "price": "$0.05",
          "currency": "USD",
          "network": "tempo",
          "amount": "50000",
          "decimals": 6,
          "scheme": "Payment"
        },
        "parameters": [
          {
            "name": "pillar",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "sell_now",
                "sell_next"
              ],
              "default": "all"
            },
            "description": "Commercial pillar filter"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Keyword, capability, PSC, standard, or company filter"
          },
          {
            "name": "agency",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Buying agency or branch filter"
          },
          {
            "name": "min",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Minimum award or ceiling USD"
          },
          {
            "name": "max_days",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 540
            },
            "description": "Max days until contract expiration for recompetes"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ]
            },
            "description": "Set format=csv for CRM-ready CSV download"
          }
        ],
        "responses": {
          "200": {
            "description": "Structured Sell Now and Sell Next commercial opportunities"
          },
          "402": {
            "description": "Payment Required (MPP challenge or Bearer key link)"
          }
        },
        "security": [
          {
            "x402": []
          }
        ],
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/demand": {
      "get": {
        "operationId": "getDemandForXyz",
        "summary": "Demand for XYZ capability & commodity velocity, top buying commands, and market structure",
        "description": "For any query, commodity, PSC/FSC code, MIL-STD, or weapon system, returns 7d/30d spend velocity, velocity multiplier vs baseline, top buying commands, market concentration (Consolidated -> Subcontract Play vs Open -> Direct Bid Play), and matching Sell Now / Sell Next opportunities. Supports ?format=csv.",
        "x-payment-info": {
          "price": "$0.05",
          "currency": "USD",
          "network": "tempo",
          "amount": "50000",
          "decimals": 6,
          "scheme": "Payment"
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Capability, commodity, PSC/FSC code, MIL-STD, or weapon system (e.g. radar, counter-uas, fuel, 4470, MIL-STD-810H)"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ]
            },
            "description": "Set format=csv for CSV export"
          }
        ],
        "responses": {
          "200": {
            "description": "Demand velocity analysis, buying commands, market structure, and capability clusters"
          },
          "402": {
            "description": "Payment Required (MPP challenge or Bearer key link)"
          }
        },
        "security": [
          {
            "x402": []
          }
        ],
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/grid": {
      "get": {
        "operationId": "searchGridInterconnectionQueue",
        "summary": "Search US power grid interconnection queues & HV transformer bottlenecks (523 projects / 107.8 GW)",
        "parameters": [
          {
            "name": "iso",
            "in": "query",
            "required": false,
            "description": "ISO/RTO filter (PJM, ERCOT, MISO, NYISO, CAISO, SPP, ISO-NE, DOD-DOE)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Substation, developer, county, state, or trigger keyword",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_mw",
            "in": "query",
            "required": false,
            "description": "Minimum capacity in MW",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json or csv",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Grid interconnection queue projects and transformer lead-time bottleneck intelligence"
          }
        },
        "security": [
          {
            "x402": []
          }
        ],
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/compliance": {
      "get": {
        "operationId": "screenSupplierComplianceUflpaBis",
        "summary": "Screen suppliers, factories, and HTS/FSC codes against BIS Entity List, DHS UFLPA, DoD 1260H, ITAR/AECA, FDA port refusals, and Section 301 tariffs with Cleared US/Allied Alternative Primes",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Entity name, alias, keyword, or replacement prime",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "2-letter ISO country code (e.g. CN, RU, IR, IN)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "List filter (BIS, UFLPA, 1260H, AECA, OFAC, FDA, HTS)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hts",
            "in": "query",
            "required": false,
            "description": "HTS or FSC code filter (e.g. 8504, 8542, 5962)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json or csv",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Supplier compliance screening rows and cleared alternative primes"
          }
        },
        "security": [
          {
            "x402": []
          }
        ],
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "50000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/rules": {
      "get": {
        "operationId": "rulesSearch",
        "summary": "Federal Register rules and notices (DFARS, FAR, DoD, DHS, DSCA), $0.01 per call",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "dsca",
                "dfars",
                "far",
                "dod",
                "dhs"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "maximum": 200
            }
          }
        ],
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "responses": {
          "200": {
            "description": "Federal Register documents"
          },
          "402": {
            "description": "Payment Required (MPP challenge, plus x402 accepts[] when enabled)"
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "10000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/fms": {
      "get": {
        "operationId": "fmsNotices",
        "summary": "Foreign Military Sales: DSCA arms sale notifications, $0.02 per call",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "maximum": 200
            }
          }
        ],
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "responses": {
          "200": {
            "description": "Federal Register documents"
          },
          "402": {
            "description": "Payment Required (MPP challenge, plus x402 accepts[] when enabled)"
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "20000",
          "discovery": "https://awardtape.com/.well-known/x402.json"
        }
      }
    },
    "/api/agent/v1/allied": {
      "get": {
        "operationId": "allied",
        "summary": "Allied and partner defense contracts ($0.02 per call)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "keyword"
          },
          {
            "name": "jurisdiction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "source jurisdiction"
          },
          {
            "name": "theater",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "combatant command theater"
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ISO3 country code"
          },
          {
            "name": "min",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "minimum amount in USD"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "csv for CSV output"
          }
        ],
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "responses": {
          "200": {
            "description": "Federal Register documents"
          },
          "402": {
            "description": "Payment Required (MPP challenge, plus x402 accepts[] when enabled)"
          }
        },
        "x-x402": {
          "scheme": "exact",
          "network": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "maxAmountRequired": "20000",
          "discovery": "https://awardtape.com/.well-known/x402.json",
          "price_usd": "0.02"
        },
        "description": "Defense awards from allied public procurement portals (UK, EU, Australia, Canada, USSOUTHCOM partners) and DoD subawards, amounts in USD. See https://awardtape.com/data/allied/"
      }
    },
    "/api/agent/v1/signup": {
      "post": {
        "operationId": "signup",
        "summary": "Free API key with 100 calls. One key per email; the key is shown once.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "key, free_calls, use, dashboard"
          },
          "409": {
            "description": "Email already has a key"
          },
          "429": {
            "description": "Too many keys from this network today"
          }
        }
      }
    },
    "/api/agent/v1/comparables": {
      "get": {
        "operationId": "priceToWin",
        "summary": "Price to win: comparable awards by PSC or category",
        "description": "Obligated value p25, median, p75, competition mix, median offers received and top winners with share, from up to 500 comparable DoD and DHS awards. $0.02 or 1 credit.",
        "parameters": [
          {
            "name": "psc",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "4-character product or service code, e.g. 8470"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Category slug, e.g. radar"
          },
          {
            "name": "agency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Agency slug, e.g. department-of-the-army"
          },
          {
            "name": "min",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Minimum obligated USD"
          },
          {
            "name": "max",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Maximum obligated USD"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ]
      }
    },
    "/api/agent/v1/recompetes": {
      "get": {
        "operationId": "contractsEnding",
        "summary": "Contracts ending in the next N days by PSC or category",
        "description": "Biggest first, with incumbent, agency, end date, days left, competition type and offers received. $0.02 or 1 credit.",
        "parameters": [
          {
            "name": "psc",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "4-character product or service code, e.g. 8470"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Category slug, e.g. radar"
          },
          {
            "name": "agency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Agency slug, e.g. department-of-the-army"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Window in days, default 365, max 730"
          },
          {
            "name": "min",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Minimum obligated USD"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Rows, max 100"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "402": {
            "description": "Payment required"
          }
        },
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ]
      }
    },
    "/api/agent/v1/demo": {
      "get": {
        "operationId": "demo",
        "summary": "Free live demo used on /use-cases/ (30 calls per hour)",
        "parameters": [
          {
            "name": "case",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "recompetes, pricing, supplier, investor, allied or builder"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/agent/v1/subawards": {
      "get": {
        "operationId": "searchSubawards",
        "summary": "DoD and DHS subcontracts by prime contract or company ($0.02)",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "parameters": [
          {
            "name": "company",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uei",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "piid",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON"
          },
          "402": {
            "description": "Payment required"
          }
        }
      }
    },
    "/api/agent/v1/network": {
      "get": {
        "operationId": "subNetwork",
        "summary": "Prime to sub network for one company ($0.02)",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "parameters": [
          {
            "name": "company",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uei",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON"
          },
          "402": {
            "description": "Payment required"
          }
        }
      }
    },
    "/api/agent/v1/solicitations": {
      "get": {
        "operationId": "searchSolicitations",
        "summary": "Contract opportunities since FY2024 linked to awards ($0.02)",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "parameters": [
          {
            "name": "naics",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "psc",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "set_aside",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "awarded",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON"
          },
          "402": {
            "description": "Payment required"
          }
        }
      }
    },
    "/api/agent/v1/registration": {
      "get": {
        "operationId": "getRegistration",
        "summary": "SAM.gov registration and exclusion check for one company ($0.02)",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "parameters": [
          {
            "name": "company",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uei",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON"
          },
          "402": {
            "description": "Payment required"
          }
        }
      }
    },
    "/api/agent/v1/exclusions": {
      "get": {
        "operationId": "searchExclusions",
        "summary": "Search the SAM.gov exclusions list ($0.02)",
        "security": [
          {
            "bundleKey": []
          },
          {
            "planKey": []
          },
          {
            "mpp": []
          },
          {
            "x402": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uei",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "classification",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON"
          },
          "402": {
            "description": "Payment required"
          }
        }
      }
    }
  }
}