Criar monitoramento
curl --request POST \
--url https://api.lazydata.com.br/v1/monitoring/process \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"process_number": "<string>",
"court_code": "<string>",
"name": "<string>",
"frequency_id": "<string>",
"notification_email": "<string>"
}
'import requests
url = "https://api.lazydata.com.br/v1/monitoring/process"
payload = {
"process_number": "<string>",
"court_code": "<string>",
"name": "<string>",
"frequency_id": "<string>",
"notification_email": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
process_number: '<string>',
court_code: '<string>',
name: '<string>',
frequency_id: '<string>',
notification_email: '<string>'
})
};
fetch('https://api.lazydata.com.br/v1/monitoring/process', 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://api.lazydata.com.br/v1/monitoring/process",
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([
'process_number' => '<string>',
'court_code' => '<string>',
'name' => '<string>',
'frequency_id' => '<string>',
'notification_email' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.lazydata.com.br/v1/monitoring/process"
payload := strings.NewReader("{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.lazydata.com.br/v1/monitoring/process")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lazydata.com.br/v1/monitoring/process")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Monitoramento criado com sucesso.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"name": "Processo cliente exemplo",
"type": "process",
"status": "active",
"status_label": "Ativo",
"notification_email": "alertas@example.com",
"price_per_check": 0.03,
"checks_count": 1,
"events_count": 1,
"charged_total": 0.03,
"target": {
"type": "process",
"process_number": "0000001-77.2026.8.26.0000",
"court_code": "tjsp",
"court_acronym": "TJSP"
},
"frequency": "Diário",
"initial_email_sent": true
}
}
{
"code": 409,
"message": "Já existe um monitoramento para este processo e tribunal.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"status": "active"
}
}
Processo
Criar monitoramento
Crie um monitoramento para um processo em um tribunal específico.
POST
https://api.lazydata.com.br/
/
v1
/
monitoring
/
process
Criar monitoramento
curl --request POST \
--url https://api.lazydata.com.br/v1/monitoring/process \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"process_number": "<string>",
"court_code": "<string>",
"name": "<string>",
"frequency_id": "<string>",
"notification_email": "<string>"
}
'import requests
url = "https://api.lazydata.com.br/v1/monitoring/process"
payload = {
"process_number": "<string>",
"court_code": "<string>",
"name": "<string>",
"frequency_id": "<string>",
"notification_email": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
process_number: '<string>',
court_code: '<string>',
name: '<string>',
frequency_id: '<string>',
notification_email: '<string>'
})
};
fetch('https://api.lazydata.com.br/v1/monitoring/process', 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://api.lazydata.com.br/v1/monitoring/process",
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([
'process_number' => '<string>',
'court_code' => '<string>',
'name' => '<string>',
'frequency_id' => '<string>',
'notification_email' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.lazydata.com.br/v1/monitoring/process"
payload := strings.NewReader("{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.lazydata.com.br/v1/monitoring/process")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lazydata.com.br/v1/monitoring/process")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"process_number\": \"<string>\",\n \"court_code\": \"<string>\",\n \"name\": \"<string>\",\n \"frequency_id\": \"<string>\",\n \"notification_email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Monitoramento criado com sucesso.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"name": "Processo cliente exemplo",
"type": "process",
"status": "active",
"status_label": "Ativo",
"notification_email": "alertas@example.com",
"price_per_check": 0.03,
"checks_count": 1,
"events_count": 1,
"charged_total": 0.03,
"target": {
"type": "process",
"process_number": "0000001-77.2026.8.26.0000",
"court_code": "tjsp",
"court_acronym": "TJSP"
},
"frequency": "Diário",
"initial_email_sent": true
}
}
{
"code": 409,
"message": "Já existe um monitoramento para este processo e tribunal.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"status": "active"
}
}
Cria um monitoramento processual para o número e tribunal informados.
O campo
court_code é obrigatório porque um mesmo número deve ser validado contra o tribunal correto.
{
"code": 200,
"message": "Monitoramento criado com sucesso.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"name": "Processo cliente exemplo",
"type": "process",
"status": "active",
"status_label": "Ativo",
"notification_email": "alertas@example.com",
"price_per_check": 0.03,
"checks_count": 1,
"events_count": 1,
"charged_total": 0.03,
"target": {
"type": "process",
"process_number": "0000001-77.2026.8.26.0000",
"court_code": "tjsp",
"court_acronym": "TJSP"
},
"frequency": "Diário",
"initial_email_sent": true
}
}
{
"code": 409,
"message": "Já existe um monitoramento para este processo e tribunal.",
"result": {
"id": "9fcb573b-7f62-4774-978b-07e89dfef5f2",
"status": "active"
}
}
Corpo da requisição
string
required
Número do processo no padrão CNJ.
string
required
Sigla/código público do tribunal DataJud, como
tjsp, tjba, trf1, tst ou stj.string
Nome interno do monitoramento.
string
required
ID da frequência retornada em Configuração.
string
required
E-mail que receberá os alertas do monitoramento.
Exemplo de corpo
{
"process_number": "0000001-77.2026.8.26.0000",
"court_code": "tjsp",
"name": "Processo cliente exemplo",
"frequency_id": "daily",
"notification_email": "alertas@example.com"
}
Fluxo recomendado
- Use Detectar tribunal para obter
court_code. - Use Validar processo para confirmar que o processo foi encontrado no tribunal.
- Crie o monitoramento com a frequência desejada.
- Acompanhe eventos em Detalhar monitoramento.
⌘I

