{
  "openapi": "3.1.0",
  "info": {
    "title": "Company Research Brief by Agentropolis",
    "version": "0.1.0",
    "summary": "Company name / domain / ticker → cited company research brief.",
    "description": "Company Research Brief: send a company name, website domain or US ticker and get who they are, what they do, founding, HQ, leadership, size, ownership and stock listings (Wikidata/Wikipedia), SEC financials, recent filings and red flags if a US filer, recent news and Hacker News mentions, risks, an optional answer to your focus question, and a brief that cites every source. $0.05 per call. Informational, not investment advice. $0.05 USDC per call on Base mainnet.",
    "contact": {
      "name": "Agentropolis",
      "url": "https://agentropolis.io",
      "email": "hello@agentropolis.io"
    },
    "x-guidance": "POST /api/company with {\"company\":\"Stripe\"} (or {\"domain\":\"stripe.com\"} / {\"ticker\":\"AAPL\"}); add \"domain\" to disambiguate common names and \"focus\" for a specific question. brief.*[].cites map to sources[].id. company.public_us_filer=true means sec{} has XBRL financials, recent filings and red flags. Not investment advice."
  },
  "servers": [
    {
      "url": "https://seenly-kit-finder.vercel.app"
    }
  ],
  "paths": {
    "/api/company": {
      "post": {
        "operationId": "companyResearchBrief",
        "summary": "Company research brief ($0.05)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "rails": [
            {
              "protocol": "x402",
              "version": 2,
              "scheme": "exact",
              "network": "eip155:8453",
              "networkName": "Base mainnet",
              "asset": "USDC",
              "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "amount": "50000",
              "priceUsd": "0.05",
              "payTo": "0xeE6239F3E17bEBe5e89F21F29D74D68CAa0d78CE",
              "facilitator": "Coinbase CDP (gas sponsored; payer needs no ETH)",
              "header": "PAYMENT-SIGNATURE"
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Company profile, SEC data if a US filer, recent mentions and a cited brief",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResult"
                }
              }
            }
          },
          "402": {
            "description": "x402 payment required"
          },
          "422": {
            "description": "Invalid input or company not found (not charged)"
          },
          "503": {
            "description": "Sources or model unavailable (not charged)"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompanyRequest": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120,
            "description": "Company name, e.g. Stripe. One of company / domain / ticker is required."
          },
          "domain": {
            "type": "string",
            "description": "Company website domain, e.g. stripe.com (also disambiguates names)."
          },
          "ticker": {
            "type": "string",
            "description": "US stock ticker, e.g. AAPL (adds SEC filings and XBRL financials)."
          },
          "focus": {
            "type": "string",
            "maxLength": 300,
            "description": "Optional question to answer from the sources."
          },
          "requestKey": {
            "type": "string",
            "maxLength": 128
          }
        }
      },
      "CompanyResult": {
        "type": "object",
        "properties": {
          "company": {
            "type": "object"
          },
          "brief": {
            "type": "object",
            "properties": {
              "headline": {
                "type": "string"
              },
              "overview": {
                "type": "string"
              },
              "key_facts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "cites": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "recent_developments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "cites": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "risks_and_watch_items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "cites": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "focus_answer": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "sec": {
            "type": [
              "object",
              "null"
            ]
          },
          "news": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "caveats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "disclaimer": {
            "type": "string"
          }
        },
        "required": [
          "company",
          "brief",
          "sources"
        ]
      }
    }
  }
}