curl --request POST \
--url https://requests.prod.judit.io/requests \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"search": {
"search_type": "<string>",
"search_key": "<string>",
"response_type": "<string>",
"cache_ttl_in_days": 123,
"should_search_branches": true,
"search_params": {
"lawsuit_instance": 123,
"masked_response": true,
"filter": {
"side": "<string>",
"distribution_date_gte": "<string>",
"amount_gte": 123,
"amount_lte": 123,
"tribunals": {
"keys": [
{}
],
"not_equal": true
},
"subject_codes": {
"keys": [
{}
],
"not_equal": true
},
"classification_codes": {
"keys": [
{}
],
"not_equal": true
}
},
"credential": {
"customer_key": "<string>"
}
}
}
}
'{
"request_id": "00000000-0000-0000-0000-000000000001",
"search": {
"search_type": "lawsuit_cnj",
"search_key": "9999999-99.9999.9.99.9999",
"search_params": {}
},
"origin": "api",
"origin_id": "00000000-0000-0000-0000-000000000002",
"status": "pending",
"tags": {},
"created_at": "2023-10-18T18:36:58.775Z",
"updated_at": "2023-10-18T18:36:58.775Z"
}
This endpoint creates a lawsuit request by document (CPF, CNPJ, OAB) or CNJ code.
curl --request POST \
--url https://requests.prod.judit.io/requests \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"search": {
"search_type": "<string>",
"search_key": "<string>",
"response_type": "<string>",
"cache_ttl_in_days": 123,
"should_search_branches": true,
"search_params": {
"lawsuit_instance": 123,
"masked_response": true,
"filter": {
"side": "<string>",
"distribution_date_gte": "<string>",
"amount_gte": 123,
"amount_lte": 123,
"tribunals": {
"keys": [
{}
],
"not_equal": true
},
"subject_codes": {
"keys": [
{}
],
"not_equal": true
},
"classification_codes": {
"keys": [
{}
],
"not_equal": true
}
},
"credential": {
"customer_key": "<string>"
}
}
}
}
'{
"request_id": "00000000-0000-0000-0000-000000000001",
"search": {
"search_type": "lawsuit_cnj",
"search_key": "9999999-99.9999.9.99.9999",
"search_params": {}
},
"origin": "api",
"origin_id": "00000000-0000-0000-0000-000000000002",
"status": "pending",
"tags": {},
"created_at": "2023-10-18T18:36:58.775Z",
"updated_at": "2023-10-18T18:36:58.775Z"
}
Show properties
cpf, cnpj, oab, lawsuit_cnj, or lawsuit_id.lawsuit, parties, attachments, step, or lawsuits.true, a separate request will be created for each branch (subsidiary) linked to the provided CNPJ.
All generated requests are associated with the original request through the origin_id field.Show properties
Show properties
Passive or Active.{
"request_id": "00000000-0000-0000-0000-000000000001",
"search": {
"search_type": "lawsuit_cnj",
"search_key": "9999999-99.9999.9.99.9999",
"search_params": {}
},
"origin": "api",
"origin_id": "00000000-0000-0000-0000-000000000002",
"status": "pending",
"tags": {},
"created_at": "2023-10-18T18:36:58.775Z",
"updated_at": "2023-10-18T18:36:58.775Z"
}
Was this page helpful?