Contract Extraction

Comprehensive contract extraction preset capturing terms, parties, obligations, and signatures for legal document processing.

The fields this preset extracts.

titlestring

Official title or name of the contract as stated in the document.

contract_typestring

Primary classification of the contract type.

effective_datestring

ISO-8601 date when the contract becomes effective.

expiration_datestring

ISO-8601 date when the contract expires or terminates.

execution_datestring

ISO-8601 date when the contract was executed or signed.

partiesarray<object>

All parties to the contract with roles and signatory details.

governing_lawobject

Jurisdiction and venue for dispute resolution.

termobject

Contract duration and renewal parameters.

considerationobject

Monetary or other consideration exchanged.

payment_termsstring

Net-30, Net-60, upon invoice, or other payment terms.

key_obligationsarray

Summary bullets of each party's primary obligations.

termination_clausesarray

Conditions and procedures for contract termination.

confidentiality_clauseobject

Confidentiality and non-disclosure requirements.

non_competeobject

Non-compete and non-solicitation restrictions.

indemnificationobject

Indemnity obligations and coverage.

liability_capobject

Limitation of liability clause parameters.

signaturesarray

Signature blocks with dates and authorized signatories.

attachments_referencedarray

Exhibits, schedules, or appendices named in the contract.

curl
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.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.