Contract Extraction
Comprehensive contract extraction preset capturing terms, parties, obligations, and signatures for legal document processing.
The fields this preset extracts.
titlestringOfficial title or name of the contract as stated in the document.
contract_typestringPrimary classification of the contract type.
effective_datestringISO-8601 date when the contract becomes effective.
expiration_datestringISO-8601 date when the contract expires or terminates.
execution_datestringISO-8601 date when the contract was executed or signed.
partiesarray<object>All parties to the contract with roles and signatory details.
governing_lawobjectJurisdiction and venue for dispute resolution.
termobjectContract duration and renewal parameters.
considerationobjectMonetary or other consideration exchanged.
payment_termsstringNet-30, Net-60, upon invoice, or other payment terms.
key_obligationsarraySummary bullets of each party's primary obligations.
termination_clausesarrayConditions and procedures for contract termination.
confidentiality_clauseobjectConfidentiality and non-disclosure requirements.
non_competeobjectNon-compete and non-solicitation restrictions.
indemnificationobjectIndemnity obligations and coverage.
liability_capobjectLimitation of liability clause parameters.
signaturesarraySignature blocks with dates and authorized signatories.
attachments_referencedarrayExhibits, schedules, or appendices named in the contract.
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'file=@your-document.pdf' \
--form-string 'options={"preset":"contract"}'- Call mode
- Text and vision
- Citations
- Enabled
- Version
- v1
The instructions Xberg gives the AI model when it extracts this document type.
You are a legal contract analyst. Extract all metadata, party information, key terms, obligations, and signature details from the contract document. Capture verbatim text for complex clauses such as termination, indemnification, and confidentiality. Preserve all legal entity names, signatory titles, and dates exactly as printed. For parties, extract the full legal entity name and signatory information from signature blocks. Flag ambiguous terms but prioritize accuracy over interpretation. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.