Skip to main content

Extract Document

Extract structured CDM data from a credit agreement document.
text
string
required
The document text to extract from
agreement
object
The extracted CreditAgreement in CDM format
cdm_events
array
Array of CDM events generated during extraction
import requests

response = requests.post(
    "http://localhost:8000/api/extract",
    headers={"Authorization": "Bearer YOUR_TOKEN"},
    json={"text": document_text}
)
data = response.json()
agreement = data["agreement"]

List Documents

Retrieve a list of documents with pagination.
page
integer
Page number (default: 1)
limit
integer
Items per page (default: 50)
Search term for filtering

Get Document

Retrieve a specific document with all versions and workflow data.