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.
Public beta. Before starting, confirm with Judit’s commercial team that your API key has
miner_enabled granted — without that flag, every call returns 403.Prerequisites
- Judit API key with
miner_enabled: true(ask the commercial team). - Credit balance sufficient — check it on the dashboard.
- An HTTP client (cURL, Postman or your language of choice).
Step 1: List available courts
Before filtering, you need the Miner-internal court IDs. They are not the acronyms: every court has its own numeric identifier in Miner.Note the IDs of the courts you want to cover. Full list at Supported courts.
Step 2: Count without spending credits (/requests/count)
The /requests/count route is free — use it to find out the volume before purchasing the query.
| Field | Meaning |
|---|---|
total_lawsuits | How many new lawsuits for your company match the filters (already excluding what you queried before). |
request_id | ID of the count record — kept in history but not used downstream. |
status | Always completed for count (it’s synchronous). |
Step 3: Create the find (charges credits)
Oncetotal_lawsuits makes sense for your case, trigger the real query with /requests/create. This is when credits are debited.
💡Response (responses_limitis an optional cap on the number of materialized lawsuits in this query. If omitted, returns everything that matches. Use it to control cost whencountreturns a large volume.
201 Created):
| Field | Meaning |
|---|---|
request_id | ID you’ll use in the next steps. Save it. |
status | Always pending here. |
cost | Total credits charged (sum of tier prices × counts). Detailed in Credits & billing. |
Step 4: Poll until done
Processing is async. UseGET /requests/{request_id} to track:
status becomes completed. Typical time: 2–10 minutes for up to 1000 lawsuits.
Python (poll example)
Step 5: Paginate the returned lawsuits
Withstatus: completed, fetch the lawsuits via /responses:
page=2..20 until total_pages is exhausted. Each item follows LawsuitRepositoryOutput — lawsuit cover + parties, lawyers, steps and metadata.
Common errors
| HTTP | Code | When | How to handle |
|---|---|---|---|
400 | (validation) | Invalid filter combination (e.g. tags with kind: judgement-bond). | Review rules in Concepts. |
403 | MISSING_CREDITS | Account has no credit balance. | Top up or contact commercial. |
403 | MISSING_CONFIGURATIONS | Plan has no Miner pricing tiers. | Request configuration. |
403 | INSUFFICIENT_CREDITS | Balance is below the computed cost. | Reduce responses_limit or top up. |
404 | REQUEST_NOT_FOUND | request_id does not exist for your company. | Check the ID; request_id is per-company, not global. |
422 | REQUEST_NOT_COMPLETED | Reading /responses while status is still pending. | Poll /requests/{id} until completed. |
422 | INVALID_REQUEST_TYPE | Reading /responses for a count-type request. | Use the request_id returned by /requests/create. |
Next steps
Full concepts
All valid combinations of
kind, natures, tags, amount_tier.Credits & billing
How
cost is computed and how to handle billing errors.API Reference
Interactive spec with every endpoint and schema.
Court list
IDs and acronyms for the 60+ supported courts.