New CNPJ format (IN 2229/24)Judit already accepts the new alphanumeric CNPJ format in compliance with the Brazilian Federal Revenue Normative Instruction No. 2229/2024.
- Zero effort: no changes are required in your integration.
- Test environment: use the document
A1B2C3D4/E5F6-68to validate the flow and receive a mock lawsuit in response.
🤖 Endpoint:POST https://lawsuits.production.judit.io/lawsuits. The response is synchronous (HTTP 200 with the full JSON). This route does not query the court — it reads Judit’s datalake, so there may be a small lag versus the most current state of the lawsuit. If you need real-time data, usePOST /requests(async).
Synchronous vs. asynchronous — which one?
When to use
Real-time validation
Onboarding, KYC, autocomplete — whenever you need an immediate response for the UI.
Interactive dashboards
Dashboards and BI listing lawsuits linked to a customer without forcing a court refresh.
Risk pre-filtering
Before firing an expensive async query, find out quickly whether it’s worth it.
Counts and aggregates
Combine with
/lawsuits/count and /lawsuits/synthetic for analytics.Step 1: Create the synchronous query (POST)
To start the synchronous query, make aPOST request with the desired document.
POST https://lawsuits.production.judit.io/lawsuits
Synchronous query examples
Payload parameters
Most common filters (search_params.filter)
The synchronous query accepts the same filters as the historical query. Practical examples:
Full list of accepted courts: see Historical-query filters.
Request example (POST)
Step 2: Read the response
The response comes in the body of the same POST (no polling). Main fields:Full response example
See response example
See response example
The response will be a JSON object with the data:
Full structure of each response_data item: see Lawsuit Schema.
Common errors
Next steps
- For listing and filtering with depth (advanced filters, side, classes): Historical Query by document.
- For aggregation (counts by court/area/phase): Grouped Query.
- To force real-time read at the court: Asynchronous Query.