{"uid":"cap_Ai__Rhs9xcY7y7hm5J-3X","slug":"rafid-document-facts-extractor-34953edd","name":"Rafid Document Facts Extractor","description":"Rafid Agent API provides structured intelligence and paid APIs for AI agents across property, company and risk, supplier, finance, document, website, automotive, logistics, recruitment, trading, voice, video and business-planning workflows.","url":"https://api.rafidsystem.com/api/v1/x402/documents/facts-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"dates":[{"type":"agreement_date","precision":"day","confidence":0.97,"originalValue":"15 January 2026"}],"facts":[{"key":"parties","label":"Parties","value":[{"name":"Northwind Facilities LLC","role":"supplier"},{"name":"Contoso Properties SAOG","role":"customer"}],"method":"definition","confidence":0.9}],"title":"MAINTENANCE SERVICES AGREEMENT","amounts":[{"type":"contract_value","amount":48000,"confidence":0.92,"originalValue":"OMR 48,000"}],"entities":[{"name":"Northwind Facilities LLC","type":"company","confidence":0.9}],"language":"en","metadata":{"format":"text","source":{"url":null,"kind":"text","byteLength":null,"contentType":null},"llmAssist":{"status":"disabled","rejectedFacts":0,"verifiedFacts":0},"pageCount":2,"wordCount":217,"characterCount":1548,"extractionMode":"auto","pageProvenance":true,"extractionMethod":"deterministic","extractorVersion":"dfx-1.0.0"},"warnings":[],"deadlines":[{"type":"expiry","confidence":0.85,"description":"This Agreement shall commence on 1 February 2026 and shall expire on 31 January 2027."}],"riskFlags":[{"type":"automatic_renewal","reason":"The document states that the term renews automatically.","severity":"medium"}],"limitations":["Extraction certainty is not business, legal or financial advice: facts are what the document ..."],"obligations":[{"modality":"must","confidence":0.85,"obligation":"The Customer shall pay each invoice within thirty (30) days of receipt of a valid invoice."}],"percentages":[{"type":"late_payment_interest","ratio":0.015,"value":1.5,"confidence":0.9,"originalValue":"1.5%"}],"documentType":"contract","requirements":[],"requestedFacts":[{"key":"expiry_date","value":"31 January 2027","method":"pattern","status":"found","request":"contract expiry date","confidence":0.97}],"documentSubtype":"service_agreement","overallConfidence":0.78,"documentTypeSource":"detected","documentTypeConfidence":0.97}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bj8WfT_c2NM3zf5H-m5ZB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured facts, dates, amounts, obligations, risk flags, entities, and deadlines from documents using deterministic and LLM-assisted parsing.","exampleAgentPrompt":"Extract all the key facts from this maintenance services agreement — I need the parties, contract value, start and expiry dates, payment obligations, and any automatic renewal or risk flags: [paste document text here].","exampleUseCases":[{"title":"Contract review before signing","prompt":"Can you pull out the key facts from this supplier contract? I need to know who the parties are, the total contract value, when it expires, and whether there are any automatic renewal clauses or risky terms I should know about."},{"title":"Accounts payable obligation tracking","prompt":"Extract all payment obligations and due dates from this service agreement so I can log them into our accounts payable system — especially any invoice payment windows and late payment penalties."},{"title":"Legal document classification and risk screening","prompt":"Analyze this document text and tell me what type of document it is, identify all the entities involved, and flag any medium or high severity risks like automatic renewals, liability caps, or unusual clauses."}],"resultDescription":"Returns a structured JSON object containing: document title, type, and subtype; extracted facts (parties, roles, values) with confidence scores; dates (agreement date, expiry, etc.); monetary amounts; named entities; obligations with modality; risk flags with severity; deadlines; percentages; requirements; warnings; overall confidence score; and detailed metadata including extraction method, word count, page count, and LLM assist status.","failureModes":["Missing or malformed document body returns validation error","Very short or non-document text may yield low confidence scores or empty extractions","Non-English documents may extract with reduced accuracy or return language warning","Documents with complex formatting (tables, scanned images) may result in lower extraction confidence","Ambiguous or poorly structured text may trigger warnings in the response"],"whenToPreferThis":"Choose this endpoint when you need structured, confidence-scored extraction of legal, financial, or contractual facts from raw document text — especially when you need obligations, risk flags, deadlines, and named entities in a single call. Prefer this over generic NLP APIs when working with contracts, agreements, or procurement documents where precision and risk classification matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:42:50.841Z","isFirstParty":false,"canonicalSlug":"rafid-document-facts-extractor-34953edd"}