Skip to main content
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 (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:
⚠️ A user may only access files belonging to their own company’s tenant.

📂 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, parquet
  • name: string (filters by file name)
  • status: string or array (e.g., status=completed or status=["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: asc or desc (default: desc)

Example call with curl:

Example response:

Explanation of return fields:

  • page: current page number
  • page_data: list of files returned on this page
  • page_count: number of records on this page
  • all_count: total number of files matching the filter
  • all_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:
To report an error:

Example response - status downloaded:

Common errors

Next steps