{"openapi":"3.1.0","info":{"title":"DeepSynth","version":"0.1.0","description":"Turns text or a URL into an evidence-grounded, validated JSON intelligence brief with cited claims, insights, gaps, and action items."},"servers":[{"url":"https://deepsynth.cs1.com"}],"paths":{"/health":{"get":{"operationId":"health","summary":"Liveness check (free)","responses":{"200":{"description":"Service is up","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"ok"},"service":{"type":"string"},"version":{"type":"string"},"network":{"type":"string"}}}}}}}}},"/v1/distill":{"post":{"operationId":"distill","summary":"Produce an intelligence brief (x402 paid)","description":"Turns text or a URL into an evidence-grounded, validated JSON intelligence brief with cited claims, insights, gaps, and action items. Unauthenticated requests receive HTTP 402 with a PAYMENT-REQUIRED header (x402). Retry with PAYMENT-SIGNATURE after signing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Exactly one of text or url is required.","properties":{"text":{"type":"string","description":"Raw text to distill (max ~15k chars)"},"url":{"type":"string","format":"uri","description":"Public http(s) URL to fetch and distill"}}},"examples":{"text":{"value":{"text":"OrbitPay launched instant USDC payouts for freelancers in 32 countries."}},"url":{"value":{"url":"https://example.com/article"}}}}}},"responses":{"200":{"description":"Validated intelligence brief + payment receipt metadata","headers":{"PAYMENT-RESPONSE":{"description":"x402 settlement response (base64 JSON)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistillResponse"}}}},"400":{"description":"Bad request (missing/invalid body, empty extraction)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required (x402). See PAYMENT-REQUIRED header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded payment requirements","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Synthesis failed validation after repair (payment may have settled)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"detail":{"type":"string"}}},"DistillResponse":{"type":"object","required":["meta","brief"],"properties":{"meta":{"type":"object","properties":{"source":{"type":"string","enum":["url","text"]},"url":{"type":"string"},"title":{"type":"string"},"input_chars":{"type":"integer"},"model":{"type":"string"},"processing_ms":{"type":"integer"},"version":{"type":"string"},"receipt":{"type":"object","properties":{"network":{"type":"string"},"amount":{"type":"string"},"asset":{"type":"string"},"settled":{"type":"boolean"}}}}},"brief":{"type":"object","required":["one_liner","summary","key_claims","entities","insights","sentiment","gaps_contrarian","action_items","follow_up_questions"],"properties":{"one_liner":{"type":"string"},"summary":{"type":"string"},"key_claims":{"type":"array","items":{"type":"object","properties":{"claim":{"type":"string"},"confidence":{"type":"string","enum":["stated","implied","speculative"]},"evidence_from_text":{"type":"string"}}}},"entities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"context":{"type":"string"},"relevance":{"type":"string"}}}},"insights":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["implication","risk","opportunity","trend"]},"title":{"type":"string"},"detail":{"type":"string"},"evidence_from_text":{"type":"string"},"confidence":{"type":"string","enum":["stated","implied","speculative"]},"why_it_matters":{"type":"string"}}}},"sentiment":{"type":"object","properties":{"overall":{"type":"string","enum":["positive","neutral","negative","mixed"]},"rationale":{"type":"string"}}},"gaps_contrarian":{"type":"array","items":{"type":"string"}},"action_items":{"type":"array","items":{"type":"string"}},"follow_up_questions":{"type":"array","items":{"type":"string"}}}}}}}},"x-x402":{"price":"$0.02","network":"eip155:8453","scheme":"exact","payTo":"0x54c0a913a35a5eA7075CdE4509a0a687109abE09","facilitator":"https://facilitator.payai.network"}}