Contract Extraction

Legal

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

curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \
  -H "Authorization: Bearer $XBERG_API_KEY" \
  -F file=@your-contract.pdf \
  -F 'preset=contract'
Sample Contract Extraction document

Structured fields extracted by this preset

titlestringrequired

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

contract_typestringrequired

Primary classification of the contract type.

effective_datestringrequired

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>required

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.

Configuration

Call Mode

text_plus_vision

Citations

Enabled

Version

v1

Tags

contractlegalagreementtermspartiessignatures
+System Prompt
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 dates without explicit year, infer from context. For parties, extract the full legal entity name and signatory information from signature blocks. Flag ambiguous terms but prioritize accuracy over interpretation.

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

Cookies

We value your privacy

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