Pular para o conteúdo principal
GET
/
v1
/
deadlines
/
notifications
Recuperar notificações de prazos
curl --request GET \
  --url https://reporter.sandbox.lerian.net/v1/deadlines/notifications \
  --header 'X-Organization-id: <x-organization-id>'
import requests

url = "https://reporter.sandbox.lerian.net/v1/deadlines/notifications"

headers = {"X-Organization-id": "<x-organization-id>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Organization-id': '<x-organization-id>'}};

fetch('https://reporter.sandbox.lerian.net/v1/deadlines/notifications', 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://reporter.sandbox.lerian.net/v1/deadlines/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Organization-id: <x-organization-id>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://reporter.sandbox.lerian.net/v1/deadlines/notifications"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Organization-id", "<x-organization-id>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://reporter.sandbox.lerian.net/v1/deadlines/notifications")
.header("X-Organization-id", "<x-organization-id>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://reporter.sandbox.lerian.net/v1/deadlines/notifications")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Organization-id"] = '<x-organization-id>'

response = http.request(request)
puts response.read_body
{
  "total": 1,
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000001",
      "name": "CADOC 4010",
      "description": "Relatório regulatório mensal",
      "type": "regulatory",
      "frequency": "monthly",
      "dueDate": "2026-07-31T00:00:00Z",
      "notifyDaysBefore": 5,
      "color": "#ef4444"
    }
  ]
}
{
"code": "TPL-0017",
"title": "Bad Request",
"message": "The server could not understand the request due to malformed syntax. Please check the listed fields and try again."
}

Cabeçalhos

Authorization
string

O token de autorização no formato 'Bearer '.

Importante: Este header é obrigatório se o seu ambiente tiver o Access Manager habilitado. Para mais informações, consulte a documentação do Access Manager.

X-Organization-id
string
obrigatório

O identificador único da Organização associada à requisição.

Parâmetros de consulta

limit
integer
padrão:10

Número máximo de notificações retornadas. Deve ser um inteiro entre 1 e 100.

Resposta

A lista de notificações de prazos ativos dentro da sua janela de alerta.

items
object[]

Notificações de prazos dentro da sua janela de alerta, ordenadas por urgência.

total
integer

Número de notificações retornadas.