Queues extraction of case context from one of the case files (a complaint, petition or other filing) and answers 202 with the queued extraction; list the extractions to follow it. Returns 404 when the file is not an active file of the case. Requires owner or admin access to the case and an active plan (403 otherwise); not available to opposing counsel.
POST
/ai/cases/{caseId}/context/extract-filing
curl \
--request POST 'http://api.example.com/ai/cases/{caseId}/context/extract-filing' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"caseFileId": "string"
}'
Request examples
{
"caseFileId": "string"
}
Response examples (202)
{
"data": {
"_id": "65a1b2c3d4e5f6a7b8c9d0e1",
"case": "65a1b2c3d4e5f6a7b8c9d0e2",
"organization": "65a1b2c3d4e5f6a7b8c9d0e3",
"caseFile": "65a1b2c3d4e5f6a7b8c9d0e5",
"status": "completed",
"rawExtraction": {},
"appliedAt": "2026-01-15T10:15:00.000Z",
"appliedBy": "65a1b2c3d4e5f6a7b8c9d0e4",
"appliedFields": [
"caseType",
"legalClaims"
],
"modelVersion": "string",
"promptVersion": "case_context_filing_extraction.v1",
"errorMessage": "string",
"createdAt": "2026-01-15T10:15:00.000Z",
"updatedAt": "2026-01-15T10:15:00.000Z"
},
"statusCode": 202,
"timestamp": "2026-01-15T10:15:00.000Z"
}