{"openapi": "3.1.0", "info": {"title": "Negotiate-Anything API (ANY-B03)", "version": "1.0.0", "description": "Polymorphic 5-domain B2B quote parser, overcharge benchmark evidence engine, BATNA comparison, and 3-tier buyer-draft counter-offer email compiler. Independent data analysis and procurement benchmarking tool; not legal advice, not a law firm, not a CPA firm; fixed-fee prepaid tooling with zero percentage cut on savings."}, "servers": [{"url": "https://negotiate.fastmesh.dev", "description": "Production HTTPS gateway"}, {"url": "http://127.0.0.1:8923", "description": "Local runtime"}], "paths": {"/health": {"get": {"operationId": "getHealth", "summary": "Service health, loaded domains, benchmark counts, and cache telemetry", "responses": {"200": {"description": "Service healthy", "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "/openapi.json": {"get": {"operationId": "getOpenApiSpec", "summary": "OpenAPI 3.1 schema document", "responses": {"200": {"description": "OpenAPI JSON", "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "/v1/analyze": {"post": {"operationId": "analyzeQuote", "summary": "Parse any B2B quote and compute verified overcharge evidence, red flags, and BATNA alternatives", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"quote": {"description": "Raw quote string (plain text, CSV, Markdown, PDF text, JSON) or structured JSON object/list", "oneOf": [{"type": "string"}, {"type": "object"}, {"type": "array"}]}, "domain": {"type": "string", "enum": ["auto", "saas_renewal", "cloud_bill", "freight_quote", "agency_sow", "supplier_quote"], "default": "auto"}, "currency": {"type": "string", "description": "Optional ISO currency override (USD, EUR, GBP, CNY, CAD, AUD, JPY, SGD)"}, "vendor_name": {"type": "string"}, "tenant_id": {"type": "string", "default": "public_trial"}, "no_cache": {"type": "boolean", "default": false}, "live_spot_check": {"type": "boolean", "default": false}}, "required": ["quote"]}}}}, "responses": {"200": {"description": "Verified quote benchmark dossier with SHA-256 receipt", "content": {"application/json": {"schema": {"type": "object"}}}}, "422": {"description": "Unparseable or empty quote — zero charge applied (billed_micros: 0)", "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "/v1/counter-offer": {"post": {"operationId": "compileCounterOffer", "summary": "Compile 3-tier pricing targets, 3 buyer-draft counter-offer emails, and itemized contract redlines", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"quote": {"oneOf": [{"type": "string"}, {"type": "object"}, {"type": "array"}]}, "analysis": {"type": "object", "description": "Optional prior /v1/analyze payload"}, "domain": {"type": "string"}, "currency": {"type": "string"}, "vendor_name": {"type": "string"}, "buyer_name": {"type": "string"}, "buyer_company": {"type": "string"}, "vendor_contact": {"type": "string"}, "sender_title": {"type": "string"}, "tenant_id": {"type": "string", "default": "public_trial"}}}}}}, "responses": {"200": {"description": "3-tier counter-offer pack with buyer-draft templates and SHA-256 receipt", "content": {"application/json": {"schema": {"type": "object"}}}}, "422": {"description": "Unparseable or empty quote — zero charge applied (billed_micros: 0)", "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "/v1/benchmarks": {"post": {"operationId": "queryBenchmarks", "summary": "Query public pricing benchmarks, junk-fee catalogs, and BATNA alternatives backed by ArchiveCache", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"domain": {"type": "string"}, "query": {"type": "string"}, "keyword": {"type": "string"}, "tenant_id": {"type": "string", "default": "public_trial"}, "no_cache": {"type": "boolean", "default": false}, "include_junk_fees": {"type": "boolean", "default": true}, "include_batna": {"type": "boolean", "default": true}}}}}}, "responses": {"200": {"description": "Matching benchmark items, junk fees, and BATNA alternatives", "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "/webhooks/creem": {"post": {"operationId": "handleCreemWebhook", "summary": "Verify Creem.io HMAC-SHA256 webhook signature and idempotently credit prepaid dossier pack", "parameters": [{"name": "creem-signature", "in": "header", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Verified & recorded idempotently"}, "401": {"description": "Invalid or missing creem-signature"}}}}, "/mcp": {"post": {"operationId": "handleMcpJsonRpc", "summary": "Native MCP JSON-RPC 2.0 endpoint exposing direct negotiation tools plus Barbarian DualMcpFacade meta-tools", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"jsonrpc": {"type": "string", "const": "2.0"}, "id": {"oneOf": [{"type": "string"}, {"type": "integer"}]}, "method": {"type": "string", "enum": ["initialize", "tools/list", "tools/call"]}, "params": {"type": "object"}}, "required": ["jsonrpc", "method"]}}}}, "responses": {"200": {"description": "JSON-RPC 2.0 response", "content": {"application/json": {"schema": {"type": "object"}}}}}}}}}