{
"document_id": 42,
"org_id": 1,
"version": 3,
"file_name": "Acme_MSA_2025.pdf",
"document_title": "Master Service Agreement - Acme Corp",
"document_type": "MSA",
"category": "contract",
"visibility": "visible",
"active": {
"value": "active",
"is_verified": true
},
"summary": "Master service agreement between Acme Corp and our organization, covering SaaS platform licensing and support services.",
"exhibits": ["Exhibit A - Pricing", "Exhibit B - SLA"],
"attachments_ids": [101, 102],
"previous_versions": [38, 35],
"fields": [
{
"field_name": "Counterparty",
"field_value_type": "text",
"org_field_id": 1,
"is_verified": true,
"is_unclear": false,
"reasoning": "Extracted from the first page header",
"source_text": ["This agreement is entered into by Acme Corporation"],
"chunk_ids": [1],
"text_value": "Acme Corporation"
},
{
"field_name": "Contract Value",
"field_value_type": "number",
"org_field_id": 2,
"is_verified": false,
"is_unclear": false,
"reasoning": "Found in Section 4 - Pricing",
"source_text": ["The total contract value shall not exceed $150,000"],
"chunk_ids": [4],
"number_value": 150000.0
},
{
"field_name": "Auto-Renewal",
"field_value_type": "boolean",
"org_field_id": 3,
"is_verified": false,
"is_unclear": false,
"reasoning": "Found in Section 8 - Term",
"source_text": ["This agreement shall automatically renew"],
"chunk_ids": [8],
"boolean_value": true
},
{
"field_name": "Effective Date",
"field_value_type": "date",
"org_field_id": 4,
"is_verified": true,
"is_unclear": false,
"reasoning": "Found on the signature page",
"source_text": ["Effective as of January 15, 2025"],
"chunk_ids": [12],
"date_value": "2025-01-15"
},
{
"field_name": "Contract Type",
"field_value_type": "enum",
"org_field_id": 5,
"is_verified": false,
"is_unclear": false,
"reasoning": "Determined from the document title and content",
"source_text": null,
"chunk_ids": null,
"enum_value": "Master Service Agreement"
},
{
"field_name": "Unclear Field Example",
"field_value_type": "text",
"org_field_id": 6,
"is_verified": false,
"is_unclear": true,
"reasoning": "Multiple conflicting values found in the document",
"source_text": ["Amount: $50,000", "Total: $75,000"],
"chunk_ids": [3, 7],
"text_value": null
}
],
"mapped_fields": {
"text": {
"vendor_name": "Acme Corporation"
},
"number": {
"total_value": 150000.0
},
"boolean": {
"auto_renew": true
},
"date": {
"effective_date": "2025-01-15T00:00:00Z"
},
"link": {}
},
"workflow_metadata": {
"workflow_state_id": "ws_abc123",
"workflow_id": "vendor_contract_review",
"org_id": 1,
"user_id": 10,
"workflow_version": 2,
"task_id": 5001
},
"related_template": {
"template_id": 7,
"template_version": 1
},
"document_created_at": "2025-01-15T10:30:00Z",
"source": "external_api",
"uploaded_by_user_id": 10
}