The File Transfer API delivers large files generated by Judit — CSV/JSON exports from custom searches, on-demand reports, bulky aggregations — asynchronously, with auditable status (Documentation Index
Fetch the complete documentation index at: https://docs.judit.io/llms.txt
Use this file to discover all available pages before exploring further.
pending, available, consumed) per file.
🤖 Base URL: https://lawsuits.production.judit.io/. After generating a report (e.g. Custom Search), use this API to list pending files, download via pre-signed URL and mark as consumed to avoid reprocessing.
When to use
On-demand reports
Consume Custom Search results that arrive as files (CSV/JSON) instead of webhook.
Batch export
Receive periodic dumps of an entire portfolio (hundreds of thousands of lawsuits).
Audit
Auditable trail of who downloaded each file and when — perfect for SOX/LGPD/GDPR.
Data pipelines
Integrate Judit into your data lake/warehouse via batch file consumption.
🔐 Authentication
Every request must include a header with the company’s API key:📂 List available files
GET /transfer-file
Returns a paginated list of files available for the authenticated user’s company.
Supported query params:
description: string (filters by description)file_type:csv,json,parquetname: string (filters by file name)status: string or array (e.g.,status=completedorstatus=["completed","error"])- Dates: range filters for the fields below:
created_at,updated_at,completed_at,downloaded_at,error_at,failed_at,started_at- Example:
created_at_gte=2025-04-01T00:00:00.000Z
- Pagination and sorting:
page: page number (default: 1)page_size: page size (max: 100, default: 10)order_by: sorting field (default:created_at)order:ascordesc(default:desc)
Example call with curl:
Example response:
Explanation of return fields:
page: current page numberpage_data: list of files returned on this pagepage_count: number of records on this pageall_count: total number of files matching the filterall_pages_count: total number of pages available
📥 Get the download URL
GET /transfer-file/:transfer_file_id
Returns the file’s metadata and a pre-signed AWS URL for download (valid for 5 minutes).
Example call with curl:
Example response:
🛠 Update a file’s status
PATCH /transfer-file/:transfer_file_id
Lets you mark the file as downloaded or error after attempting to use it.
Example call with curl:
Request body:
To mark as downloaded:Example response - status downloaded:
Common errors
| HTTP | Reason | How to handle |
|---|---|---|
400 | Invalid filter or status. | Validate query params before sending. |
401 | API Key missing or invalid. | Check api-key header. |
404 | File not found. | The transfer_file_id may be from another tenant. |
429 | Rate limit exceeded. | Exponential backoff. |
Next steps
- Custom Search — generate large reports.
- Webhooks — get notified when a file is ready.