curl -X GET \
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10&offset=0' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch(
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10',
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const result = await response.json();
console.log(result);
import requests
url = "https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents"
params = {
'limit': 10,
'offset': 0
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "contract.pdf",
"file_size": 245678,
"mime_type": "application/pdf",
"document_type": "contract",
"description": "Signed service contract",
"processing_status": "completed",
"created_at": "2025-10-08T10:30:00Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "invoice_2025_001.pdf",
"file_size": 123456,
"mime_type": "application/pdf",
"document_type": "invoice",
"description": null,
"processing_status": "completed",
"created_at": "2025-10-08T11:15:00Z"
}
],
"total": 2
}
{
"success": false,
"message": "Claim not found"
}
Documents
List Documents
Get all documents attached to a specific claim
GET
/
openapi
/
claims
/
{claim_id}
/
documents
curl -X GET \
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10&offset=0' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch(
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10',
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const result = await response.json();
console.log(result);
import requests
url = "https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents"
params = {
'limit': 10,
'offset': 0
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "contract.pdf",
"file_size": 245678,
"mime_type": "application/pdf",
"document_type": "contract",
"description": "Signed service contract",
"processing_status": "completed",
"created_at": "2025-10-08T10:30:00Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "invoice_2025_001.pdf",
"file_size": 123456,
"mime_type": "application/pdf",
"document_type": "invoice",
"description": null,
"processing_status": "completed",
"created_at": "2025-10-08T11:15:00Z"
}
],
"total": 2
}
{
"success": false,
"message": "Claim not found"
}
Overview
Retrieve a list of all documents uploaded to a claim. Supports pagination and filtering.Authentication
Requires API Token authentication via Bearer token.Request
string
required
UUID of the claim
integer
default:"20"
Number of documents per page (max: 100)
integer
default:"0"
Number of documents to skip for pagination
string
Filter by document typeOptions:
invoice, contract, correspondence, legal, general, additional_documentstring
Filter by OCR processing statusOptions:
pending, processing, completed, failedResponse
boolean
Indicates if the request was successful
array
Array of document objects
Show Document Object
Show Document Object
string
Document ID (UUID)
string
Associated claim ID
string
Original filename
integer
File size in bytes
string
MIME type
string
Document type/category
string
creditor (the creditor organisation sees it) or partner_only (only your partner integration). Partner API keys list both; the debtor sees neither.string
Document description (optional)
string
OCR processing status
string
Upload timestamp (ISO 8601)
integer
Total number of documents for this claim
curl -X GET \
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10&offset=0' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch(
'https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents?limit=10',
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const result = await response.json();
console.log(result);
import requests
url = "https://service.incaseof.law/openapi/claims/3c90c3cc-0d44-4b50-8888-8dd257363052/documents"
params = {
'limit': 10,
'offset': 0
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "contract.pdf",
"file_size": 245678,
"mime_type": "application/pdf",
"document_type": "contract",
"description": "Signed service contract",
"processing_status": "completed",
"created_at": "2025-10-08T10:30:00Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd257363052",
"original_filename": "invoice_2025_001.pdf",
"file_size": 123456,
"mime_type": "application/pdf",
"document_type": "invoice",
"description": null,
"processing_status": "completed",
"created_at": "2025-10-08T11:15:00Z"
}
],
"total": 2
}
{
"success": false,
"message": "Claim not found"
}
Notes
- Documents are returned in descending order by creation date (newest first)
- Use pagination for claims with many documents
- Filter by
documentTypeto get specific categories - Check
processing_statusto see if OCR is complete