curl --request GET \
--url https://api.pictor.cloud/api/patrols/reports/digest \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/patrols/reports/digest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictor.cloud/api/patrols/reports/digest', 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.pictor.cloud/api/patrols/reports/digest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.pictor.cloud/api/patrols/reports/digest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pictor.cloud/api/patrols/reports/digest")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/patrols/reports/digest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"date": "2026-09-03",
"site_name": "Cond. Alvorada - Portaria",
"sweeps": [
{
"account": "4021",
"cameras_pending": 0,
"cameras_person": 1,
"cameras_total": 11,
"cameras_vehicle": 0,
"cameras_with_frame": 10,
"finished_at": "2026-09-03T03:13:41Z",
"ref": "9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60",
"report_url": "https://app.pictor.cloud/share/patrol/9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60?exp=1757462400&t=8f2c1d9a4b6e0357",
"started_at": "2026-09-03T03:12:04Z",
"trigger_code": "1130",
"trigger_description": "Alarme de intrusão"
}
],
"time_zone": "America/Sao_Paulo",
"totals": {
"cameras_pending": 0,
"cameras_person": 1,
"cameras_total": 22,
"cameras_vehicle": 0,
"cameras_with_frame": 21,
"measured": true,
"sweeps": 2
},
"truncated": false,
"window_end": "2026-09-04T03:00:00Z",
"window_start": "2026-09-03T03:00:00Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Resumo do dia
As rondas de um dia somadas: quantas foram, quantas câmeras trouxeram imagem e o que foi identificado, com o link do relatório de cada uma.
É a resposta de “como foi o dia” numa chamada, no lugar de uma por ronda. O dia é
local: time_zone diz em que fuso ele foi recortado e window_start /
window_end dão a janela em UTC — a ronda das 21h pertence ao dia local dela, não
ao dia UTC seguinte.
totals.measured é false quando nenhuma câmera chegou a ser avaliada no dia.
Nesse caso os zeros do bloco não são medida, e um resumo que diga “0
detecções” ali estaria afirmando o que ninguém apurou.
report_url sai null para chave com escopo recortado: o link abre o relatório
inteiro daquela ronda, e ele não tem como ser recortado por câmera.
curl --request GET \
--url https://api.pictor.cloud/api/patrols/reports/digest \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/patrols/reports/digest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pictor.cloud/api/patrols/reports/digest', 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.pictor.cloud/api/patrols/reports/digest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.pictor.cloud/api/patrols/reports/digest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pictor.cloud/api/patrols/reports/digest")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/patrols/reports/digest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"date": "2026-09-03",
"site_name": "Cond. Alvorada - Portaria",
"sweeps": [
{
"account": "4021",
"cameras_pending": 0,
"cameras_person": 1,
"cameras_total": 11,
"cameras_vehicle": 0,
"cameras_with_frame": 10,
"finished_at": "2026-09-03T03:13:41Z",
"ref": "9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60",
"report_url": "https://app.pictor.cloud/share/patrol/9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60?exp=1757462400&t=8f2c1d9a4b6e0357",
"started_at": "2026-09-03T03:12:04Z",
"trigger_code": "1130",
"trigger_description": "Alarme de intrusão"
}
],
"time_zone": "America/Sao_Paulo",
"totals": {
"cameras_pending": 0,
"cameras_person": 1,
"cameras_total": 22,
"cameras_vehicle": 0,
"cameras_with_frame": 21,
"measured": true,
"sweeps": 2
},
"truncated": false,
"window_end": "2026-09-04T03:00:00Z",
"window_start": "2026-09-03T03:00:00Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Chave de API da conta, no formato pct_<prefixo>_<segredo>.
Query Parameters
Dia a resumir, no formato AAAA-MM-DD. É um dia LOCAL, no fuso configurado para a conta — a resposta devolve o fuso usado e a janela em UTC. Sem date, é hoje nesse mesmo fuso.
Dia local (default: hoje no fuso da conta).
Response
Successful Response
O dia somado. measured é o que separa "nada aconteceu" de "zero".
Show child attributes
Show child attributes
Show child attributes
Show child attributes