POST
/
lawsuits
curl --request POST \
  --url https://lawsuits.prod.judit.io/lawsuits \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "search": {
    "search_type": "<string>",
    "search_key": "<string>",
    "response_type": "<string>",
    "search_params": {
      "lawsuit_instance": 123,
      "filter": {
        "side": "<string>",
        "distribution_date_gte": "<string>",
        "amount_gte": 123,
        "amount_lte": 123,
        "tribunals": {
          "keys": [
            {}
          ],
          "not_equal": true
        },
        "subject_codes": {
          "conteins": [
            {}
          ],
          "not_contains": true
        },
        "classification_codes": {
          "keys": [
            {}
          ],
          "not_equal": true
        },
        "last_step_date_gte": "<string>",
        "last_step_date_lte": "<string>",
        "party_names": {},
        "party_documents": {}
      },
      "credential": {
        "customer_key": "<string>"
      }
    }
  }
}'
{
    "has_lawsuits": true,
    "request_id": "c37cacba-41b5-4694-919f-4a937f2ea5df",
    "response_data": [
      {
        "code": "9999999-99.9999.9.99.9999",
        "justice": "5",
        "tribunal": "01",
        "instance": 2,
        "distribution_date": "2023-05-18T11:12:59.000Z",
        "tribunal_acronym": "TRT1",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "13656",
            "name": "DOMÉSTICOS"
          }
        ],
        "classifications": [
          {
            "code": "1009",
            "name": "RECURSO ORDINÁRIO TRABALHISTA"
          }
        ],
        "courts": [
          {
            "code": "75580",
            "name": "GAB DES. GLAUCIA ZUCCARI FERNANDES BRAGA"
          }
        ],
        "parties": [
          {
            "name": "Usuário teste",
            "side": "Active",
            "person_type": "Autor",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Advogada do Autor",
                "side": "Active",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "Usuário teste",
            "side": "Passive",
            "person_type": "Réu",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome da advogada do réu",
                "side": "Passive",
                "person_type": "Advogado"
              }
            ]
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.466Z"
        },
        "amount": 7685.82,
        "last_step": {
          "lawsuit_cnj": "9999999-99.9999.9.99.9999",
          "lawsuit_instance": 1,
          "step_id": "JZzfEPTs10aeE+vpu+p+bkrz5K7enJhAM5kWattktHk=",
          "step_date": "2024-03-18T19:21:02.466Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "Nome do Autor X Nome do Réu"
      },
      {
        "code": "9999999-99.9999.9.99.9999",
        "justice": "5",
        "tribunal": "01",
        "instance": 1,
        "distribution_date": "2022-03-30T16:41:24.000Z",
        "tribunal_acronym": "TRT1",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "13656",
            "name": "DOMÉSTICOS"
          }
        ],
        "classifications": [
          {
            "code": "985",
            "name": "AÇÃO TRABALHISTA - RITO ORDINÁRIO"
          }
        ],
        "courts": [
          {
            "code": "33782",
            "name": "RIO DE JANEIRO - 37ª VARA DO TRABALHO"
          }
        ],
        "parties": [
          {
            "name": "Berenice",
            "side": "Active",
            "person_type": "Autor",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome do advogado do Autor",
                "side": "Active",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "Jhon Doe",
            "side": "Passive",
            "person_type": "Réu",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome da Advogada do réu",
                "side": "Passive",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "person_type": "Advogado",
            "side": "Active",
            "name": "Nome do Advogado",
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "person_type": "Advogado",
            "side": "Passive",
            "name": "Nome do Advogado",
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.465Z"
        },
        "amount": 7685.82,
        "last_step": {
          "lawsuit_cnj": "0100248-39.2022.5.01.0037",
          "lawsuit_instance": 1,
          "step_id": "u2r/3iZieAWrkFjxBZC/r4bMlFAvRO1IWvaOD8xdGl8=",
          "step_date": "2024-03-18T19:21:02.465Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "Autor X Réu"
      },
      {
        "code": "8888888-88.8888.8.88.8888",
        "justice": "8",
        "tribunal": "19",
        "instance": 1,
        "distribution_date": "2023-06-06T17:35:50.000Z",
        "tribunal_acronym": "TJRJ",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "7769",
            "name": "ABATIMENTO PROPORCIONAL DO PREÇO "
          },
          {
            "code": "7748",
            "name": "ACIDENTE AÉREO"
          },
          {
            "code": "10435",
            "name": "ACIDENTE DE TRÂNSITO"
          }
        ],
        "classifications": [
          {
            "code": "436",
            "name": "PROCEDIMENTO DO JUIZADO ESPECIAL CÍVEL"
          }
        ],
        "courts": [
          {
            "code": "13805",
            "name": "BARRA DA TIJUCA REGIONAL II JUI ESP CIV"
          }
        ],
        "parties": [
          {
            "name": "USUÁRIO TESTE",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "GABRIELLA",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
          {
            "name": "LEONARDO",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.466Z"
        },
        "amount": 28790,
        "last_step": {
          "lawsuit_cnj": "0817064-37.2023.8.19.0209",
          "lawsuit_instance": 1,
          "step_id": "nU9IcVb9NLoHrJeUXt+Hay139dqHAVbfxk7f0D77aRQ=",
          "step_date": "2024-03-18T19:21:02.466Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "DAVI LUIZ X GRUPO TURISMO LTDA"
      }
    ]
  }
{
    "has_lawsuits": true,
    "request_id": "c37cacba-41b5-4694-919f-4a937f2ea5df",
    "response_data": [
      {
        "code": "9999999-99.9999.9.99.9999",
        "justice": "5",
        "tribunal": "01",
        "instance": 2,
        "distribution_date": "2023-05-18T11:12:59.000Z",
        "tribunal_acronym": "TRT1",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "13656",
            "name": "DOMÉSTICOS"
          }
        ],
        "classifications": [
          {
            "code": "1009",
            "name": "RECURSO ORDINÁRIO TRABALHISTA"
          }
        ],
        "courts": [
          {
            "code": "75580",
            "name": "GAB DES. GLAUCIA ZUCCARI FERNANDES BRAGA"
          }
        ],
        "parties": [
          {
            "name": "Usuário teste",
            "side": "Active",
            "person_type": "Autor",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Advogada do Autor",
                "side": "Active",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "Usuário teste",
            "side": "Passive",
            "person_type": "Réu",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome da advogada do réu",
                "side": "Passive",
                "person_type": "Advogado"
              }
            ]
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.466Z"
        },
        "amount": 7685.82,
        "last_step": {
          "lawsuit_cnj": "9999999-99.9999.9.99.9999",
          "lawsuit_instance": 1,
          "step_id": "JZzfEPTs10aeE+vpu+p+bkrz5K7enJhAM5kWattktHk=",
          "step_date": "2024-03-18T19:21:02.466Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "Nome do Autor X Nome do Réu"
      },
      {
        "code": "9999999-99.9999.9.99.9999",
        "justice": "5",
        "tribunal": "01",
        "instance": 1,
        "distribution_date": "2022-03-30T16:41:24.000Z",
        "tribunal_acronym": "TRT1",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "13656",
            "name": "DOMÉSTICOS"
          }
        ],
        "classifications": [
          {
            "code": "985",
            "name": "AÇÃO TRABALHISTA - RITO ORDINÁRIO"
          }
        ],
        "courts": [
          {
            "code": "33782",
            "name": "RIO DE JANEIRO - 37ª VARA DO TRABALHO"
          }
        ],
        "parties": [
          {
            "name": "Berenice",
            "side": "Active",
            "person_type": "Autor",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome do advogado do Autor",
                "side": "Active",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "Jhon Doe",
            "side": "Passive",
            "person_type": "Réu",
            "document": "99999999999",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "Nome da Advogada do réu",
                "side": "Passive",
                "person_type": "Advogado"
              }
            ],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "person_type": "Advogado",
            "side": "Active",
            "name": "Nome do Advogado",
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "person_type": "Advogado",
            "side": "Passive",
            "name": "Nome do Advogado",
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.465Z"
        },
        "amount": 7685.82,
        "last_step": {
          "lawsuit_cnj": "0100248-39.2022.5.01.0037",
          "lawsuit_instance": 1,
          "step_id": "u2r/3iZieAWrkFjxBZC/r4bMlFAvRO1IWvaOD8xdGl8=",
          "step_date": "2024-03-18T19:21:02.465Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "Autor X Réu"
      },
      {
        "code": "8888888-88.8888.8.88.8888",
        "justice": "8",
        "tribunal": "19",
        "instance": 1,
        "distribution_date": "2023-06-06T17:35:50.000Z",
        "tribunal_acronym": "TJRJ",
        "secrecy_level": 0,
        "tags": {
          "is_fallback_source": true,
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
        },
        "subjects": [
          {
            "code": "7769",
            "name": "ABATIMENTO PROPORCIONAL DO PREÇO "
          },
          {
            "code": "7748",
            "name": "ACIDENTE AÉREO"
          },
          {
            "code": "10435",
            "name": "ACIDENTE DE TRÂNSITO"
          }
        ],
        "classifications": [
          {
            "code": "436",
            "name": "PROCEDIMENTO DO JUIZADO ESPECIAL CÍVEL"
          }
        ],
        "courts": [
          {
            "code": "13805",
            "name": "BARRA DA TIJUCA REGIONAL II JUI ESP CIV"
          }
        ],
        "parties": [
          {
            "name": "USUÁRIO TESTE",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          },
          {
            "name": "GABRIELLA",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
          {
            "name": "LEONARDO",
            "side": "Active",
            "person_type": "Autor",
            "document": "88888888888",
            "document_type": "CPF",
            "lawyers": [],
            "tags": {
              "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee"
            }
          }
        ],
        "steps": [],
        "attachments": [],
        "related_lawsuits": [],
        "crawler": {
          "source_name": "JTJ - BR - Document / Lawsuit - Auth",
          "crawl_id": "28e00227-e41b-4c94-956e-7a0f105eabee",
          "weight": 0,
          "updated_at": "2024-03-18T19:21:02.466Z"
        },
        "amount": 28790,
        "last_step": {
          "lawsuit_cnj": "0817064-37.2023.8.19.0209",
          "lawsuit_instance": 1,
          "step_id": "nU9IcVb9NLoHrJeUXt+Hay139dqHAVbfxk7f0D77aRQ=",
          "step_date": "2024-03-18T19:21:02.466Z",
          "private": false,
          "steps_count": 1
        },
        "phase": "Inicial",
        "status": "Ativo",
        "name": "DAVI LUIZ X GRUPO TURISMO LTDA"
      }
    ]
  }