Criar requisição
curl --request POST \
--url https://requests.production.judit.io/requests \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"search": {
"search_type": "cpf",
"search_key": "string"
}
}
'import requests
url = "https://requests.production.judit.io/requests"
payload = { "search": {
"search_type": "cpf",
"search_key": "string"
} }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({search: {search_type: 'cpf', search_key: 'string'}})
};
fetch('https://requests.production.judit.io/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://requests.production.judit.io/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'search' => [
'search_type' => 'cpf',
'search_key' => 'string'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://requests.production.judit.io/requests"
payload := strings.NewReader("{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://requests.production.judit.io/requests")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://requests.production.judit.io/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"search": {
"search_type": "cpf",
"search_key": "<string>",
"search_params": {
"full_lawsuit": true,
"should_search_branches": true,
"public_search": true,
"lawsuit_instance": 123,
"attachment_id": "<string>",
"attachment_extension": "<string>",
"filter": {
"side": "Passive",
"party_names": [
"<string>"
],
"party_documents": [
"<string>"
],
"distribution_date_gte": "2023-11-07T05:31:56Z",
"distribution_date_lte": "2023-11-07T05:31:56Z",
"last_step_date_gte": "2023-11-07T05:31:56Z",
"last_step_date_lte": "2023-11-07T05:31:56Z",
"tribunals": {
"keys": [
"<string>"
],
"not_equal": true
},
"classification_codes": {
"keys": [
"<string>"
],
"not_equal": true
},
"classification_names": {
"keys": [
"<string>"
],
"not_equal": true
},
"subject_codes": {
"contains": [
"<string>"
],
"not_contains": [
"<string>"
]
},
"subject_names": {
"contains": [
"<string>"
],
"not_contains": [
"<string>"
]
},
"amount_lte": 123,
"amount_gte": 123
},
"pagination": {
"page": 123,
"page_size": 123
},
"credential": {
"customer_key": "<string>"
}
},
"on_demand": true,
"search_name": "<string>",
"response_type": "lawsuit",
"cache_ttl_in_days": 123
},
"origin": "api",
"origin_id": "<string>",
"company_id": "<string>",
"user_id": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"with_attachments": true,
"tags": {},
"source_name": "<string>",
"plan_config_type": "datalake_lawsuit_search",
"judit_ia": [
"summary"
],
"cost": 123,
"callback_url": "<string>",
"responses_count": 123,
"filters_count": 123,
"is_unique_name": true,
"ip": "<string>",
"trace_id": "<string>"
}{
"error": {
"name": "HttpUnauthorizedError",
"message": "UNAUTHORIZED",
"stack": "<string>",
"data": "User must be authenticated"
}
}{
"error": {
"name": "HttpInternalServerError",
"message": "INTERNAL_SERVER_ERROR",
"stack": "<string>",
"data": {
"message": "Database connection failed"
}
}
}Requests · Asynchronous Queries
Create a request
This endpoint creates a lawsuit request by document (CPF, CNPJ, OAB) or CNJ code.
POST
/
requests
Criar requisição
curl --request POST \
--url https://requests.production.judit.io/requests \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"search": {
"search_type": "cpf",
"search_key": "string"
}
}
'import requests
url = "https://requests.production.judit.io/requests"
payload = { "search": {
"search_type": "cpf",
"search_key": "string"
} }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({search: {search_type: 'cpf', search_key: 'string'}})
};
fetch('https://requests.production.judit.io/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://requests.production.judit.io/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'search' => [
'search_type' => 'cpf',
'search_key' => 'string'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://requests.production.judit.io/requests"
payload := strings.NewReader("{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://requests.production.judit.io/requests")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://requests.production.judit.io/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search\": {\n \"search_type\": \"cpf\",\n \"search_key\": \"string\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"search": {
"search_type": "cpf",
"search_key": "<string>",
"search_params": {
"full_lawsuit": true,
"should_search_branches": true,
"public_search": true,
"lawsuit_instance": 123,
"attachment_id": "<string>",
"attachment_extension": "<string>",
"filter": {
"side": "Passive",
"party_names": [
"<string>"
],
"party_documents": [
"<string>"
],
"distribution_date_gte": "2023-11-07T05:31:56Z",
"distribution_date_lte": "2023-11-07T05:31:56Z",
"last_step_date_gte": "2023-11-07T05:31:56Z",
"last_step_date_lte": "2023-11-07T05:31:56Z",
"tribunals": {
"keys": [
"<string>"
],
"not_equal": true
},
"classification_codes": {
"keys": [
"<string>"
],
"not_equal": true
},
"classification_names": {
"keys": [
"<string>"
],
"not_equal": true
},
"subject_codes": {
"contains": [
"<string>"
],
"not_contains": [
"<string>"
]
},
"subject_names": {
"contains": [
"<string>"
],
"not_contains": [
"<string>"
]
},
"amount_lte": 123,
"amount_gte": 123
},
"pagination": {
"page": 123,
"page_size": 123
},
"credential": {
"customer_key": "<string>"
}
},
"on_demand": true,
"search_name": "<string>",
"response_type": "lawsuit",
"cache_ttl_in_days": 123
},
"origin": "api",
"origin_id": "<string>",
"company_id": "<string>",
"user_id": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"with_attachments": true,
"tags": {},
"source_name": "<string>",
"plan_config_type": "datalake_lawsuit_search",
"judit_ia": [
"summary"
],
"cost": 123,
"callback_url": "<string>",
"responses_count": 123,
"filters_count": 123,
"is_unique_name": true,
"ip": "<string>",
"trace_id": "<string>"
}{
"error": {
"name": "HttpUnauthorizedError",
"message": "UNAUTHORIZED",
"stack": "<string>",
"data": "User must be authenticated"
}
}{
"error": {
"name": "HttpInternalServerError",
"message": "INTERNAL_SERVER_ERROR",
"stack": "<string>",
"data": {
"message": "Database connection failed"
}
}
}Authorizations
apiKeyAuthjwtAuth
API key for authentication
Body
application/json
Response
Successful response
Show child attributes
Show child attributes
Available options:
api, tracking, dashboard Available options:
pending, started, cancelling, cancelled, completed Show child attributes
Show child attributes
Available options:
datalake_lawsuit_search, download_attachment, download_full_lawsuit, download_execution_attachment, simple_lawsuit_search, simple_lawsuit_search_with_summary, complete_lawsuit_search, complete_lawsuit_search_with_summary, full_lawsuit_search, full_lawsuit_search_with_summary, simple_lawsuit_tracking, simple_lawsuit_tracking_fixed_time, complete_lawsuit_tracking, complete_lawsuit_tracking_fixed_time, full_lawsuit_tracking, full_lawsuit_tracking_fixed_time, simple_warrant_search, complete_warrant_search, simple_execution_search, complete_execution_search, binary_document_search, count_document_search, aggregate_document_search, simple_document_search, simple_document_search_with_summary, complete_document_search, complete_document_search_with_summary, complete_document_search_on_demand, complete_document_search_on_demand_with_summary, document_tracking, document_tracking_fixed_time, public_document_tracking, public_document_tracking_fixed_time, custom_search, custom_tracking, custom_tracking_fixed_time, communication_tracking, entity_person_search, entity_person_search_on_demand, entity_person_name_search, entity_person_name_search_on_demand, entity_company_search, entity_company_search_on_demand, complete_company_search_with_branches, complete_company_search_with_branches_on_demand, sanctions_lists_search, sync_complete_document_search, error Available options:
summary Was this page helpful?