Skip to main content
1

Creating the tracking

Request payload

The POST request must include a payload with the following properties:search_type: This field defines the type of entity to be searched. The possible values are: cpf, cnpj, oab, name, lawsuit_cnj or lawsuit_id. For lawsuit searches, we will specifically use cpf, cnpj or oab, which correspond to the lawsuit number.
  • search_key: The lawsuit number (CNJ code), CPF, CNPJ, OAB or Name you want to search;
  • cache_ttl_in_days (optional): Integer that defines how many days the search result can be considered a valid cache;
  • search_params: An object containing some search parameters such as: - lawsuit_instance (optional): This parameter allows you to define the instance in which you want to search the lawsuit; - masked_response Defines whether the response will be returned minified. This parameter is only applicable to queries (simple or complete) by document in the lawsuit search context. - masked_response = true: will return a complete query - masked_response = false: will return a simple query *Note Check the commercial conditions for these different types of document-based queries.
Filters can be added to the request, allowing for a more accurate return based on the desired values. To do this, the filter parameter must be included within search_params, with the following filters available:
  • filter (optional): An object containing the search filters, such as:
  • side (optional): Allows searching by types of parties in the lawsuit, which can be: ‘Passive’, ‘Active’, ‘Interested’, ‘Unknown’;
  • amount_gte (optional): Filters lawsuits with a case amount greater than or equal to the value specified in amount_gte;
  • amount_lte (optional): Filters lawsuits with a case amount less than or equal to the value specified in amount_lte;
  • tribunals (optional): An object containing the court filters:
    • keys (optional): List of court codes available in the list of courts. This filter allows you to restrict the search to lawsuits that have or do not have these specific codes;
    • not_equal (optional): Boolean value that defines whether the filter will include or exclude the values specified in keys.
  • subject_codes (optional): An object containing the subject filters:
    • contains (optional): List of subject codes. Restricts the search to lawsuits that include the specified codes.
    • not_contains (optional): List of subject codes. Excludes lawsuits containing the specified codes.
  • classification_codes (optional): An object containing the procedural class filters:
    • keys (optional): List of procedural class codes. This filter allows you to restrict the search to lawsuits that have or do not have these specific codes;
    • not_equal (optional): Boolean value that defines whether the filter will include or exclude the values specified in keys.
  • credential (optional): Object for using the credentials vault:
  • customer_key (optional): Allows you to pass the user key registered in the credentials vault. If not provided, the API will try to find a credential registered for an empty customer_key.
  • last_step_date_gte (optional): Restricts the search to lawsuits whose last step date is greater than the provided date.
  • last_step_date_lte (optional): Restricts the search to lawsuits whose last step date is less than the provided date.
  • party_names (optional): List of names that restricts the search to lawsuits containing them in any of the parties. Note When using this filter together with the Side filter, the Side filter will not be considered for restricting these parties, since the Side filter is used to filter lawsuits where the main party being searched is on the specified side.
  • party_documents (optional): List of documents that restricts the search to lawsuits containing them in any of the parties. Note When using this filter together with the Side filter, the Side filter will not be considered for restricting these documents, since the Side filter is used to filter lawsuits where the main party being searched is on the specified side.
  • notification_emails (optional): Array of strings outside of search where you can add email addresses to receive notifications for every update of the registered tracking.
Example payload without filters:
 curl --location 'https://tracking.prod.judit.io/tracking' \
 --header 'api-key: <API-KEY>' \
 --header 'Content-Type: application/json' \
 --data '{
     "recurrence": 1,
     "search": {
         "search_type": "cpf",
         "search_key": "999.999.999-99"
     }
 }'
The tracking will be started for the first time within the best court-request concurrency window, within the next 24 hours from the creation date.
After that, it will run according to the frequency registered in the recurrence field.Example payload with some optional filters:
curl --location 'https://tracking.prod.judit.io/tracking' \
 --header 'api-key: e8f62c5c-7465-426c-abc5-9735c67f25b1' \
 --header 'Content-Type: application/json' \
 --data '{
     "recurrence": 1,
     "search": {
         "search_type": "cnpj",
         "search_key": "00.000.000/0001-00",
         "search_params": {
             "filter": {
                 "subject_codes": {
                     "keys": ["10433"],
                     "not_equal": false
                 },
                 "classification_codes": {
                     "keys": ["985"],
                     "not_equal": false
                 }
             }
         }
     }
 }'

All registered new-cases trackings are performed on-demand. We recommend checking the cost conditions associated with this service before using it.
Response:
{
"tracking_id": "15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9",
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"status": "created",
"recurrence": 1,
"search": {
  "search_type": "cnpj",
  "search_key": "00.000.000/0001-00",
  "response_type": "lawsuit",
  "search_params": {
    "filter": {},
    "pagination": {}
  }
},
"hour_range": 21,
"tracked_items_count": 0,
"tracked_items_steps_count": 0,
"tags": {},
"created_at": "2024-02-21T18:26:38.499Z",
"updated_at": "2024-02-21T18:26:38.499Z"
}
In the tracking creation response, the hour_range field is returned, indicating the time at which the court queries will be performed for the first time. In the example above, the first query is scheduled to occur at 9 PM.
2

Checking the tracking status

The URL takes the tracking_id returned in the first request:
curl --request GET
--url "https://tracking.prod.judit.io/tracking/15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9"
--header "api-key: YOUR-API-KEY"
--header "Content-Type: application/json"
Response:
{
  "tracking_id": "15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9",
  "user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
  "status": "created",
  "recurrence": 1,
  "search": {
    "search_type": "cnpj",
    "search_key": "00.000.000/0001-00",
    "response_type": "lawsuit",
    "search_params": {
      "filter": {},
      "pagination": {}
    }
  },
  "tracked_items_count": 0,
  "tracked_items_steps_count": 0,
  "tags": {
    "dashboard_id": null
  },
  "request_id": "05ee9825-b2b4-480b-b29e-f071ca7d9c72",
  "created_at": "2024-02-21T18:26:38.499Z",
  "updated_at": "2024-02-21T18:26:38.499Z"
}
The status property indicates the current state of the tracking, which can be:
  1. created: Tracking created, but never executed.
  2. updating: Has a request currently being processed.
  3. updated: Tracking updated with at least one response available. The updated_at field indicates the last update date of the tracking, and the request_id property indicates the ID of the last request made by the tracking.
  4. paused: Tracking paused, but can still be resumed.
  5. deleted: Tracking canceled and can no longer be resumed.
The request_id property is only created after the tracking has executed for the first time, that is, once it reaches the updated status.
3

Retrieving the response content (new case found)

The URL takes the request_id returned in the first request:
curl --request GET
--url "https://requests.prod.judit.io/responses/?request_id=15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9"
--header "api-key: YOUR-API-KEY"
--header "Content-Type: application/json"
{
  "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": "USUÁRIO 1",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 2",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 3",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 4",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 5",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 6",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 7",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 8",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 9",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 10",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "EMPRESA EXEMPLO 1 S/A",
            "side": "Passive",
            "person_type": "Réu",
            "lawyers": []
          },
          {
            "name": "EMPRESA EXEMPLO 2 S.A.",
            "side": "Passive",
            "person_type": "Réu",
            "lawyers": []
          },
          {
            "name": "EMPRESA EXEMPLO 3 S.A.",
            "side": "Passive",
            "person_type": "Réu",
            "lawyers": []
          },
          {
            "name": "EMPRESA EXEMPLO 4 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": "USUÁRIO 1 X EMPRESA EXEMPLO 1 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": "1111111-04.1111.1.11.1111",
        "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": "USUÁRIO 1",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "USUÁRIO 2",
                "side": "Active",
                "person_type": "Advogado"
              }
            ]
          },
          {
            "name": "USUÁRIO 3",
            "side": "Passive",
            "person_type": "Réu",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": [
              {
                "name": "ADVOGADO 2",
                "side": "Passive",
                "person_type": "Advogado"
              }
            ]
          },
          {
            "person_type": "Advogado",
            "side": "Active",
            "name": "ADVOGADO 1"
          },
          {
            "person_type": "Advogado",
            "side": "Passive",
            "name": "ADVOGADO 2"
          }
        ],
        "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": "USUÁRIO 4",
        "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": "1111111-04.1111.1.11.1111",
        "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": "USUÁRIO 1",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 2",
            "side": "Active",
            "person_type": "Autor",
            "document": "000.000.000-00",
            "document_type": "CPF",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 4",
            "side": "Passive",
            "person_type": "Réu",
            "lawyers": []
          },
          {
            "name": "USUÁRIO 5",
            "side": "Passive",
            "person_type": "Réu",
            "lawyers": []
          }
        ],
        "attachments": [],
        "steps": [],
        "related_lawsuits": [],
        "last_step": {
          "lawsuit_cnj": "1111111-04.1111.1.11.1111",
          "lawsuit_instance": 1,
          "step_id": "YpIR5rAfSprFSseqRe9oVUPtkKcgQI0Na8RIv1djKZI=",
          "step_date": "2024-02-21T17:33:24.063Z",
          "private": false,
          "steps_count": 1
        },
        "name": "USUÁRIO 1",
        "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
}
The page and page_size parameters are optional but necessary to navigate through the pages of lawsuits, in case there is more than one — which is common for searches by document.

Pagination properties:

page
integer
Defines the current page of the search.
page_count
integer
Total number of lawsuits on the page.
all_count
integer
Total number of lawsuits found.
all_pages_count
integer
Number of lawsuit pages.
page_data
array
Array with the responses, and within the response_data property, the lawsuit content.
For document-based tracking, it will always be for new cases — that is, requests will only produce responses when a new lawsuit is distributed.
The meaning of each field can be found in the glossary
4

Retrieving the history of a tracking

To retrieve the history of responses generated by a specific tracking, make a GET request to the /tracking/{tracking} route, replacing {tracking} with the desired tracking ID.You can filter the results using the created_at_gte and created_at_lte parameters, where:created_at_gte: defines the start date of the query. created_at_lte: defines the end date of the query.Here is an example of how to do this using curl:
curl --location 'https://requests.prod.judit.io/responses/tracking/<TRACKING_ID>?order=asc&page=1&page_size=50&created_at_gte=2024-03-05T00%3A00%3A00&created_at_lte=2025-03-11T00%3A00%3A00' \
--header 'api-key: <API-KEY>'
Here is the expected response:
{
    "request_status": "completed",
    "page": 1,
    "page_count": 2,
    "all_pages_count": 1,
    "all_count": 2,
    "page_data": [
        {
            "request_id": "644a4759-1ae2-48a4-8b09-76afffc75849393",
            "response_id": "a37ca823-e1d2-4de4-a973-ec9e859d21ed",
            "origin": "tracking",
            "origin_id": "cfb61e6e-f2bd-4375-8c87-373405cac6db",
            "response_type": "lawsuit",
            "response_data": {
                "amount": 13687.36,
                "attachments": [
                    {
                        "attachment_id": "f2f14dca-5b3f-aba2-a9bd95bd367f",
                        "attachment_date": "2025-01-22T15:19:46.000Z",
                        "attachment_name": "id_externo_3",
                        "content": "CÁLCULOS",
                        "extension": "octet-stream",
                        "status": "done",
                        "tags": {
                            "crawl_id": "bf565435-68c6-4b6b-8004-6533cbd0fb8e"
                        },
                        "user_data": null
                    },
                    {
                        "attachment_id": "e26be17f-06ba-9f0c-7fc840e092b1",
                        "attachment_date": "2025-01-22T15:19:46.000Z",
                        "attachment_name": "id_externo_2",
                        "content": "CERTIDÃO DE DÍVIDA ATIVA",
                        "extension": "octet-stream",
                        "status": "done",
                        "tags": {
                            "crawl_id": "bf565435-68c6-4b6b-8004-6533cbd0fb8e"
                        },
                        "user_data": null
                    },
                    {
                        "attachment_id": "54e833a9-58a3-9484-0e6e1cb6c457",
                        "attachment_date": "2025-01-22T15:19:46.000Z",
                        "attachment_name": "id_externo_1",
                        "content": "PETIÇÃO INICIAL",
                        "step_id": "ac8ea79b",
                        "extension": "octet-stream",
                        "status": "done",
                        "tags": {
                            "crawl_id": "bf565435-68c6-4b6b-8004-6533cbd0fb8e"
                        },
                        "user_data": null
                    }
                ],
                "classifications": [
                    {
                        "code": "1116",
                        "name": "EXECUÇÃO FISCAL"
                    }
                ],
                "code": "3000133-12.2025.8.19.0001",
                "county": "TESTE TRIBUNAL",
                "city": "RIO DE JANEIRO",
                "state": "RJ",
                "area": "NÃO INFORMADO",
                "justice_description": "JUSTIÇA ESTADUAL",
                "created_at": "2025-01-23T16:09:20.134Z",
                "updated_at": "2025-01-24T16:10:56.948Z",
                "metadata": {},
                "courts": [
                    {
                        "code": "7798",
                        "name": "TESTE RETORNO TRIUNAL"
                    }
                ],
                "crawler": {
                    "source_name": "JTJ - BR - Document / Lawsuit - Auth",
                    "crawl_id": "8b485368-4315-4247-8314-a6169aa46e0b",
                    "weight": 0,
                    "updated_at": "2025-01-24T16:10:50.024Z"
                },
                "distribution_date": "2025-01-22T15:19:46.000Z",
                "free_justice": false,
                "instance": 1,
                "justice": "8",
                "last_step": {
                    "lawsuit_cnj": "9999999-99.9999.9.99.9999",
                    "lawsuit_instance": 1,
                    "private": false,
                    "step_id": "91dc5544",
                    "step_date": "2025-01-22T18:40:18.000Z",
                    "content": "Conclusos para decisão/despacho",
                    "step_type": "51",
                    "tags": {
                        "crawl_id": "8b485368-4315-4247-8314-a6169aa46e0b"
                    },
                    "steps_count": 1
                },
                "name": "USUÁRIO EXEMPLO 1 X USUÁRIO EXEMPLO 2",
                "parties": [
                    {
                        "side": "Active",
                        "name": "USUÁRIO EXEMPLO 1",
                        "main_document": "99999999999",
                        "person_type": "EXEQUENTE",
                        "entity_type": "company",
                        "documents": [
                            {
                                "document": "99999999999999",
                                "document_type": "CNPJ"
                            }
                        ],
                        "lawyers": [
                            {
                                "name": "USUÁRIO EXEMPLO 3",
                                "main_document": "99999999999",
                                "documents": [
                                    {
                                        "document": "99999999999",
                                        "document_type": "cpf"
                                    }
                                ]
                            }
                        ],
                        "tags": {
                            "crawl_id": "8b485368-4315-4247-8314-a6169aa46e0b"
                        }
                    },
                    {
                        "side": "Passive",
                        "name": "USUÁRIO EXEMPLO 2",
                        "main_document": "99999999999",
                        "person_type": "EXECUTADO",
                        "entity_type": "company",
                        "documents": [
                            {
                                "document": "99999999999999",
                                "document_type": "CNPJ"
                            }
                        ],
                        "tags": {
                            "crawl_id": "8b485368-4315-4247-8314-a6169aa46e0b"
                        },
                        "lawyers": []
                    }
                ],
                "related_lawsuits": [],
                "secrecy_level": 0,
                "status": "Ativo",
                "phase": "Inicial",
                "steps": [],
                "subjects": [
                    {
                        "code": "6017",
                        "name": "DÍVIDA ATIVA (EXECUÇÃO FISCAL)"
                    },
                    {
                        "code": "5953",
                        "name": "IPVA - IMPOSTO SOBRE PROPRIEDADE DE VEÍCULOS AUTOMOTORES"
                    }
                ],
                "tags": {
                    "crawl_id": "8b485368-4315-4247-8314-a6169aa46e0b",
                    "dictionary_updated_at": "2025-01-24T16:10:50.384Z"
                },
                "tribunal": "19",
                "tribunal_acronym": "TJRJ"
            },
            "user_id": "98c1d8e0-94bf-43ab-b298-a7158a9efbc9",
            "created_at": "2025-01-24T16:10:53.278Z",
            "tags": {
                "dashboard_id": null
            }
        },
        {
            "request_id": "32e0cbb6-71ed-4165-81d5-08ef4dcf80c6",
            "response_id": "a6690acb-0856-4e4d-ae69-c8d808ce7d9e",
            "origin": "tracking",
            "origin_id": "cfb61e6e-f2bd-4375-8c87-373405cac6db",
            "response_type": "lawsuit",
            "response_data": {
                "amount": 17456.15,
                "attachments": [],
                "classifications": [
                    {
                        "code": "1116",
                        "name": "EXECUÇÃO FISCAL"
                    }
                ],
                "code": "3000233-64.2025.8.19.0001",
                "county": "CAPITAL 12 VARA FAZ PUBLICA",
                "city": "RIO DE JANEIRO",
                "state": "RJ",
                "area": "NÃO INFORMADO",
                "justice_description": "JUSTIÇA ESTADUAL",
                "created_at": "2025-01-27T16:09:19.112Z",
                "updated_at": "2025-01-27T16:09:19.112Z",
                "metadata": {},
                "courts": [
                    {
                        "code": "79705",
                        "name": " CAPITAL 17 FAZ PUBLICA"
                    }
                ],
                "crawler": {
                    "source_name": "JTJ - BR - Document / Lawsuit - Auth",
                    "crawl_id": "f9efa845-8501-4804-9595-f01c25fd7ba1",
                    "weight": 0,
                    "updated_at": "2025-01-27T16:09:18.570Z"
                },
                "distribution_date": "2025-01-24T17:08:03.000Z",
                "free_justice": false,
                "instance": 1,
                "justice": "8",
                "last_step": {
                    "lawsuit_cnj": "9999999-99.9999.9.99.9999",
                    "lawsuit_instance": 1,
                    "private": false,
                    "step_id": "5d93c333",
                    "step_date": "2025-01-27T10:30:20.000Z",
                    "content": "Expedição de Carta pelo Correio - 1 carta",
                    "step_type": "60",
                    "tags": {
                        "crawl_id": "f9efa845-8501-4804-9595-f01c25fd7ba1"
                    },
                    "steps_count": 1
                },
                "name": "usuário teste 1 X usuário teste 2",
                "parties": [
                    {
                        "side": "Active",
                        "name": "USUÁRIO 1",
                        "main_document": "99999999999999",
                        "person_type": "EXEQUENTE",
                        "entity_type": "company",
                        "documents": [
                            {
                                "document": "99999999999999",
                                "document_type": "CNPJ"
                            }
                        ],
                        "lawyers": [
                            {
                                "name": "USUÁRIO 2",
                                "main_document": "99999999999",
                                "documents": [
                                    {
                                        "document": "99999999999",
                                        "document_type": "cpf"
                                    }
                                ]
                            }
                        ],
                        "tags": {
                            "crawl_id": "f9efa845-8501-4804-9595-f01c25fd7ba1"
                        }
                    },
                    {
                        "side": "Passive",
                        "name": "USUÁRIO 2",
                        "main_document": "99999999999999",
                        "person_type": "EXECUTADO",
                        "entity_type": "company",
                        "documents": [
                            {
                                "document": "99999999999999",
                                "document_type": "CNPJ"
                            }
                        ],
                        "tags": {
                            "crawl_id": "f9efa845-8501-4804-9595-f01c25fd7ba1"
                        },
                        "lawyers": []
                    }
                ],
                "related_lawsuits": [],
                "secrecy_level": 0,
                "status": "Ativo",
                "phase": "Inicial",
                "steps": [],
                "subjects": [
                    {
                        "code": "6017",
                        "name": "DÍVIDA ATIVA (EXECUÇÃO FISCAL)"
                    },
                    {
                        "code": "5953",
                        "name": "IPVA - IMPOSTO SOBRE PROPRIEDADE DE VEÍCULOS AUTOMOTORES"
                    }
                ],
                "tags": {
                    "crawl_id": "f9efa845-8501-4804-9595-f01c25fd7ba1",
                    "dictionary_updated_at": "2025-01-27T16:09:19.635Z"
                },
                "tribunal": "19",
                "tribunal_acronym": "TJRJ"
            },
            "user_id": "98c1d8e0-94bf-43ab-b298-a7158a9efbc9",
            "created_at": "2025-01-27T16:09:18.752Z",
            "tags": {
                "dashboard_id": null
            }
        }
    ]
}
5

Pausing a tracking

To pause a tracking, you can make a POST request to the /tracking/{tracking}/pause route, replacing {tracking} with the ID of the tracking you want to pause.Here is an example of how to pause the tracking using curl:
curl -X POST "https://tracking.prod.judit.io/tracking/15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9/pause" \
-H "api-key: YOUR-API_KEY"
Here is an example of the paused tracking response:
{
"tracking_id": "15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9",
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"status": "paused",
"recurrence": 1,
"search": {
  "search_type": "cpf",
  "search_key": "999.999.999-99",
  "response_type": "lawsuit",
  "search_params": {
  "filter": {},
  "pagination": {}
  }
},
"tracked_items_count": 0,
"tracked_items_steps_count": 0,
"tags": {},
"created_at": "2024-02-21T18:26:38.499Z",
"updated_at": "2024-02-21T18:26:38.499Z"
}
6

Resuming a tracking

To resume a paused tracking, you can make a POST request to the /tracking/{tracking}/resume route, replacing {tracking} with the ID of the tracking you want to resume.Here is an example of how to resume a tracking using curl:
curl -X POST "https://tracking.prod.judit.io/tracking/15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9/resume" \
-H "api-key: YOUR_API_KEY"
Here is an example of an active tracking response:
{
"tracking_id": "15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9",
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"status": "updated",
"recurrence": 1,
"search": {
  "search_type": "cpf",
  "search_key": "999.999.999-99",
  "response_type": "lawsuit",
  "search_params": {
  "filter": {},
  "pagination": {}
  }
},
"tracked_items_count": 0,
"tracked_items_steps_count": 0,
"tags": {},
"created_at": "2024-02-21T18:26:38.499Z",
"updated_at": "2024-02-21T18:26:38.499Z"
}
7

Deleting a tracking

To delete a tracking, you can make a DELETE request to the /tracking/{tracking} route, replacing {tracking} with the ID of the tracking you want to delete.Here is an example of how to delete a tracking using curl:
curl -X DELETE "https://tracking.prod.judit.io/tracking/15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9" \
-H "api-key: YOUR_API_KEY"
Here is an example of the deleted tracking response:
{
"tracking_id": "15d632c6-a2ab-40c1-bfc5-d8f7bf8d8dd9",
"user_id": "82082593-c664-4d7b-b174-2f0dc4791daf",
"status": "deleted",
"recurrence": 1,
"search": {
  "search_type": "cpf",
  "search_key": "999.999.999-99",
  "response_type": "lawsuit",
  "search_params": {
  "filter": {},
  "pagination": {}
  }
},
"tracked_items_count": 0,
"tracked_items_steps_count": 0,
"tags": {},
"created_at": "2024-02-21T18:26:38.499Z",
"updated_at": "2024-02-21T18:26:38.499Z"
}