Basic Flow
The Judit API operates with both a synchronous and an asynchronous pattern:Asynchronous requests:
-
Create request (
POST /requests) - Starts the query -
Wait for processing (
GET /requests) - The API fetches data from the courts (track status) -
Fetch result (
GET /responses) - Retrieves the processed data
Synchronous requests:
- Create request (
POST /lawsuits) - Starts the query and returns the response immediately
Prerequisites
- Valid API Key (request access from us)
- A tool to make HTTP requests (cURL, Postman, or code)
Environments and Base URLs
The Judit API is built on an architecture split by context to ensure better performance and organization. Before configuring your environment variables, identify the Base URL that corresponds to the module you want to integrate:| Base URL | Module / Context | Supported Operations |
|---|---|---|
https://requests.prod.judit.io | Asynchronous Queries | Lawsuit query, Historical query, Arrest warrants, and Penal execution (request and response flows). |
https://tracking.prod.judit.io | Tracking | Create, read, update, pause, delete, resume, and retrieve history of lawsuit tracking. |
https://lawsuits.production.judit.io | Synchronous Queries | Datalake query (Hot storage), Lawsuit count, Grouped historical query, Bucket attachment retrieval, and Registration data. |
https://crawler.prod.judit.io | Crawler & Infra | Credentials Vault management. |
Complete Example
1. Configure Environment Variables
Note: In the example below, we use the URL for Asynchronous Queries, but remember to replace it with the URL appropriate to your use case, according to the table above.2. Create a Request
3. Check the Request Status
4. Fetch the Results
When the status iscompleted, fetch the results:
Available Query Types
Response Types
parties: Party information onlyattachments: List of available attachmentsstep: Case updates
Advanced Filters
For more specific queries by document, you can use filters:Best Practices
1. Use Smart Caching
💡 Best Practice for Asynchronous Queries: If you are making asynchronous requests (via https://requests.prod.judit.io), using the cache parameter is strongly recommended. It drastically speeds up webhook response time and optimizes API consumption.
Set the cache_ttl_in_days parameter in your request body to avoid redundant lookups at the courts. This field defines for exactly how many days a result already stored in Judit’s base will be considered valid before forcing a new extraction.
2. Implement Retry with Backoff
Next Steps
- Authentication: Configure authentication correctly
- Endpoints: Explore all available endpoints
- Support: Contact our technical support for more information.
Tip: For development, use the Postman Collection with ready-to-use Judit API examples.