Comece a usar
Essenciais
Fluxo de Consulta por Documento
Consulta por Nome
Essa página tem como objetivo mostrar o fluxo de Consulta por Nome.
Em uma consulta por nome, podem ocorrer homônimos.
Criação de Request
Para realizar a consulta por nome, é necessário primeiramente criar uma requisição para o endpoint de consulta nome.
curl --request POST
--url 'https://requests.prod.judit.io/requests'
--header 'Content-Type: application/json'
--header 'api_key: SUA-API-KEY'
--data '{
"search": {
"search_type": "name",
"search_key": "MARCO ANTONIO DE OLIVEIRA RODRIGUES"
}
}
'
A resposta dessa requisição será um objeto JSON com os dados de criação da Request:
{
"request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
"search": {
"search_type": "name",
"search_key": "MARCO ANTONIO DE OLIVEIRA RODRIGUES",
"response_type": "lawsuits",
"search_params": {
"filter": {},
"pagination": {}
}
},
"origin": "api",
"origin_id": "8c8bc14b-9f46-4e52-bc05-25a8af855690",
"user_id": "6dc91e78-400e-489c-b30c-61789e323d7c",
"status": "pending",
"created_at": "2024-02-16T13:14:09.645Z",
"updated_at": "2024-02-16T13:14:09.645Z",
"tags": {}
}
Na consulta por nome o search_type deve ser “name”.
Outros parâmetros que podem ser adicionados na requisição, como filtros, podem ser encontrados na página:
https://docs.judit.io/api-reference/endpoint/requests/create
Consultar o status da request
Esta é uma etapa importante para saber quando a consulta terminou, já que as respostas serão adicionadas de forma incremental por tribunal.
curl --request GET
--url 'https://requests.prod.judit.io/requests/05ee9825-b2b4-480b-b29e-f071ca7d9c72'
--header 'api_key: SUA-API-KEY'
--header 'Content-Type: application/json'
Retorno:
{
"request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
"search": {
"search_type": "cpf",
"search_key": "09206529722",
"response_type": "lawsuits",
"search_params": {
"filter": {},
"pagination": {}
}
},
"origin": "api",
"origin_id": "46fac09a-b34f-4dfd-a24f-b358bf04dfd4",
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"status": "completed",
"created_at": "2024-02-21T17:33:22.876Z",
"updated_at": "2024-02-21T17:33:26.316Z",
"tags": {
"dashboard_id": null
}
}
Através da propriedade status é possível saber se a requisição está completa.
Consultar o conteúdo da resposta
Na URL vai o request_id retornado na primeira requisição.
curl --request GET \
--url 'https://requests.prod.judit.io/responses/?request_id=cb97f8ba-7736-43c7-a961-436b151cd65c&page=1&page_size=10'
--header 'api_key: SUA-API-KEY'
--header 'Content-Type: application/json'
Processo encontrado
{
"page": 1,
"page_data": [
{
"request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
"response_id": "e49d2e2c-92ed-4dad-8701-c53a569d675b",
"response_type": "lawsuit",
"response_data": {
"code": "0817064-37.2023.8.19.0209",
"justice": "8",
"tribunal": "19",
"tribunal_acronym": "TJRJ",
"secrecy_level": 0,
"tags": {
"is_fallback_source": true,
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e"
},
"instance": 1,
"crawler": {
"source_name": "JTJ - BR - Document / Lawsuit - Auth",
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e",
"weight": 10,
"updated_at": "2024-02-21T17:33:24.063Z"
},
"classifications": [
{
"code": "436",
"name": "PROCEDIMENTO DO JUIZADO ESPECIAL CÍVEL"
}
],
"subjects": [
{
"code": "7769",
"name": "ABATIMENTO PROPORCIONAL DO PREÇO"
},
{
"code": "7748",
"name": "ACIDENTE AÉREO"
},
{
"code": "10435",
"name": "ACIDENTE DE TRÂNSITO"
}
],
"courts": [
{
"code": "13805",
"name": "BARRA DA TIJUCA REGIONAL II JUI ESP CIV"
}
],
"amount": 28790,
"parties": [
{
"name": "DAVID WILLIAM CONCEICAO DE OLIVEIRA",
"side": "Active",
"person_type": "Autor",
"document": "14224726718",
"document_type": "CPF",
"lawyers": []
},
{
"name": "GABRIELLA OLIVEIRA DA MATA",
"side": "Active",
"person_type": "Autor",
"document": "16663398733",
"document_type": "CPF",
"lawyers": []
},
{
"name": "JULIANA OLIVEIRA CARVALHO",
"side": "Active",
"person_type": "Autor",
"document": "18250433700",
"document_type": "CPF",
"lawyers": []
},
{
"name": "LEONARDO MENDES LIMA",
"side": "Active",
"person_type": "Autor",
"document": "14904631781",
"document_type": "CPF",
"lawyers": []
},
{
"name": "LEONARDO OLIVEIRA DE LIMA",
"side": "Active",
"person_type": "Autor",
"document": "13726926739",
"document_type": "CPF",
"lawyers": []
},
{
"name": "LIVIA BEATRIZ LIMA DA COSTA DA SILVA",
"side": "Active",
"person_type": "Autor",
"document": "13482560790",
"document_type": "CPF",
"lawyers": []
},
{
"name": "LUCAS OLIVEIRA DE LIMA",
"side": "Active",
"person_type": "Autor",
"document": "13726925767",
"document_type": "CPF",
"lawyers": []
},
{
"name": "MARCO ANTONIO DE OLIVEIRA RODRIGUES",
"side": "Active",
"person_type": "Autor",
"document": "09206529722",
"document_type": "CPF",
"lawyers": []
},
{
"name": "MARIA DE FATIMA GABRIELA PIVA",
"side": "Active",
"person_type": "Autor",
"document": "50559689829",
"document_type": "CPF",
"lawyers": []
},
{
"name": "SUELEN CLARINDO DOS SANTOS",
"side": "Active",
"person_type": "Autor",
"document": "13565811706",
"document_type": "CPF",
"lawyers": []
},
{
"name": "GRUPO HURB VIAGENS E TURISMO S/A",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HOTEL URBANO VIAGENS E TURISMO S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HURB TECHNOLIGIES S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HURB TECHNOLOGIES S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
}
],
"attachments": [],
"steps": [],
"related_lawsuits": [],
"last_step": {
"lawsuit_cnj": "0817064-37.2023.8.19.0209",
"lawsuit_instance": 1,
"step_id": "nU9IcVb9NLoHrJeUXt+Hay139dqHAVbfxk7f0D77aRQ=",
"step_date": "2024-02-21T17:33:24.064Z",
"private": false,
"steps_count": 1
},
"name": "DAVID WILLIAM CONCEICAO DE OLIVEIRA X GRUPO HURB VIAGENS E TURISMO S/A",
"distribution_date": "2023-06-06T17:35:50.000Z",
"phase": "Inicial",
"status": "Ativo"
},
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"created_at": "2024-02-21T17:33:24.490Z",
"request_status": "completed",
"tags": {
"dashboard_id": null
}
},
{
"request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
"response_id": "66da2fca-6f5d-4664-9e46-0d34f80746c2",
"response_type": "lawsuit",
"response_data": {
"code": "0100248-39.2022.5.01.0037",
"justice": "5",
"tribunal": "01",
"tribunal_acronym": "TRT1",
"secrecy_level": 0,
"tags": {
"is_fallback_source": true,
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e"
},
"instance": 1,
"crawler": {
"source_name": "JTJ - BR - Document / Lawsuit - Auth",
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e",
"weight": 10,
"updated_at": "2024-02-21T17:33:24.063Z"
},
"classifications": [
{
"code": "985",
"name": "AÇÃO TRABALHISTA - RITO ORDINÁRIO"
}
],
"subjects": [
{
"code": "13656",
"name": "DOMÉSTICOS"
}
],
"courts": [
{
"code": "33782",
"name": "RIO DE JANEIRO - 37ª VARA DO TRABALHO"
}
],
"amount": 7685.82,
"parties": [
{
"name": "VIVIANE DA SILVA SALOMAO",
"side": "Active",
"person_type": "Autor",
"document": "05705252765",
"document_type": "CPF",
"lawyers": [
{
"name": "EDUARDO BIOSCA LIMA DE OLIVEIRA",
"side": "Active",
"person_type": "Advogado"
}
]
},
{
"name": "MARCO ANTONIO DE OLIVEIRA RODRIGUES",
"side": "Passive",
"person_type": "Réu",
"document": "09206529722",
"document_type": "CPF",
"lawyers": [
{
"name": "PAULA GUERRA DA CRUZ",
"side": "Passive",
"person_type": "Advogado"
}
]
},
{
"person_type": "Advogado",
"side": "Active",
"name": "EDUARDO BIOSCA LIMA DE OLIVEIRA"
},
{
"person_type": "Advogado",
"side": "Passive",
"name": "PAULA GUERRA DA CRUZ"
}
],
"attachments": [],
"steps": [],
"related_lawsuits": [],
"last_step": {
"lawsuit_cnj": "0100248-39.2022.5.01.0037",
"lawsuit_instance": 1,
"step_id": "u2r/3iZieAWrkFjxBZC/r4bMlFAvRO1IWvaOD8xdGl8=",
"step_date": "2024-02-21T17:33:24.063Z",
"private": false,
"steps_count": 1
},
"name": "VIVIANE DA SILVA SALOMAO X MARCO ANTONIO DE OLIVEIRA RODRIGUES",
"distribution_date": "2022-03-30T16:41:24.000Z",
"phase": "Inicial",
"status": "Ativo"
},
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"created_at": "2024-02-21T17:33:24.490Z",
"request_status": "completed",
"tags": {
"dashboard_id": null
}
},
{
"request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
"response_id": "5f83741e-97f4-4c3b-84fb-6c49e4cfe494",
"response_type": "lawsuit",
"response_data": {
"code": "0824046-82.2023.8.19.0204",
"justice": "8",
"tribunal": "19",
"tribunal_acronym": "TJRJ",
"secrecy_level": 0,
"tags": {
"is_fallback_source": true,
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e"
},
"instance": 1,
"crawler": {
"source_name": "JTJ - BR - Document / Lawsuit - Auth",
"crawl_id": "bd5ca800-9351-4d6e-a238-4690face8a5e",
"weight": 10,
"updated_at": "2024-02-21T17:33:24.063Z"
},
"classifications": [
{
"code": "436",
"name": "PROCEDIMENTO DO JUIZADO ESPECIAL CÍVEL"
}
],
"subjects": [
{
"code": "7780",
"name": "INDENIZAÇÃO POR DANO MATERIAL"
},
{
"code": "7779",
"name": "INDENIZAÇÃO POR DANO MORAL"
}
],
"courts": [
{
"code": "7869",
"name": "BANGU REGIONAL XVII JUI ESP CIV"
}
],
"amount": 46831,
"parties": [
{
"name": "FERNANDO SILVA DE SOUZA",
"side": "Active",
"person_type": "Autor",
"document": "72472723768",
"document_type": "CPF",
"lawyers": []
},
{
"name": "MARCO ANTONIO DE OLIVEIRA RODRIGUES",
"side": "Active",
"person_type": "Autor",
"document": "09206529722",
"document_type": "CPF",
"lawyers": []
},
{
"name": "SUELEN CLARINDO DOS SANTOS",
"side": "Active",
"person_type": "Autor",
"document": "13565811706",
"document_type": "CPF",
"lawyers": []
},
{
"name": "SUELI DE BARROS CLARINDO",
"side": "Active",
"person_type": "Autor",
"document": "02088098720",
"document_type": "CPF",
"lawyers": []
},
{
"name": "GRUPO HURB VIAGENS E TURISMO S/A",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HOTEL URBANO VIAGENS E TURISMO S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HURB TECHNOLIGIES S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
},
{
"name": "HURB TECHNOLOGIES S.A.",
"side": "Passive",
"person_type": "Réu",
"lawyers": []
}
],
"attachments": [],
"steps": [],
"related_lawsuits": [],
"last_step": {
"lawsuit_cnj": "0824046-82.2023.8.19.0204",
"lawsuit_instance": 1,
"step_id": "YpIR5rAfSprFSseqRe9oVUPtkKcgQI0Na8RIv1djKZI=",
"step_date": "2024-02-21T17:33:24.063Z",
"private": false,
"steps_count": 1
},
"name": "FERNANDO SILVA DE SOUZA X GRUPO HURB VIAGENS E TURISMO S/A",
"phase": "Inicial",
"status": "Ativo"
},
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"created_at": "2024-02-21T17:33:24.490Z",
"request_status": "completed",
"tags": {
"dashboard_id": null
}
}
],
"page_count": 3,
"all_count": 3,
"all_pages_count": 1
}
Processo não encontrado
Exemplo de retorno quando o processo não foi encontrado no tribunal:
{
"page": 1,
"page_data": [
{
"request_id": "ef1ea0fb-cac8-4901-8415-2af08822765b",
"response_id": "4ecdf43c-4a21-4138-969b-5f7e6b21654d",
"response_type": "application_error",
"response_data": {
"code": 2,
"message": "LAWSUIT_NOT_FOUND"
},
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"created_at": "2024-02-21T17:28:05.659Z",
"request_status": "completed",
"tags": {
"dashboard_id": null
}
}
],
"page_count": 1,
"all_count": 1,
"all_pages_count": 1
}
Os parâmetro page e page_size são opcionais, porém necessários para percorrer as páginas com os processos, caso venham mais de uma, o que é comum no caso de consulta por nome.
Define a página atual da busca.
Total de processos na página.
Total de processos encontrados
Quantidade de páginas de processos
Array com as respostas e dentro da propriedade response_data o conteúdo do processo.
O significado de cada campo pode ser encontrado no glossário: