Relatório de ronda de um alarme
curl --request GET \
--url https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id}"
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/sheets/alarm/{alarm_id}', 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/sheets/alarm/{alarm_id}",
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/sheets/alarm/{alarm_id}"
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/sheets/alarm/{alarm_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id}")
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{
"cameras": [
{
"channel_number": 1,
"device_id": "0b8f1c22-6d4e-4a17-9b02-3f5a7c8d9e10",
"dvr_id": "3a4b5c60-7d8e-4f01-a2b3-c4d5e6f70819",
"dvr_name": "DVR Portaria",
"error": null,
"external_id": "G87232574",
"finished_at": "2026-09-03T03:12:19Z",
"frames_analyzed": 3,
"name": "Guarita - entrada",
"owner": null,
"photo": null,
"reason_code": null,
"reason_label": null,
"requested_at": "2026-09-03T03:12:10Z",
"situation": "with_frame",
"situation_label": "Com imagem",
"verdict": "sem_ocorrencia",
"verdict_label": "Sem ocorrência"
}
],
"checklist": "Ronda virtual de CFTV",
"emitted_at": "2026-09-03T03:14:02Z",
"header": {
"cameras_not_sampled": 0,
"cameras_pending": 0,
"cameras_person": 2,
"cameras_total": 11,
"cameras_vehicle": 0,
"cameras_with_frame": 10,
"cameras_without_frame": 1,
"duration_seconds": 97,
"executor": "Pictor - verificação automática",
"finished_at": "2026-09-03T03:13:41Z",
"photos": 10,
"site": {
"address": "Rua das Acácias, 100",
"external_ref": "4021",
"name": "Cond. Alvorada - Portaria",
"site_id": "1d2e3f40-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
},
"started_at": "2026-09-03T03:12:04Z",
"trigger": {
"account": "4021",
"code": "1130",
"description": "Alarme de intrusão",
"provider": "sowil"
}
},
"items": [
{
"answer": "Cond. Alvorada - Portaria",
"number": 1,
"question": "QUAL O LOCAL MONITORADO?",
"source": "monitored_site",
"state": "answered"
},
{
"number": 4,
"question": "HÁ ALGUMA CÂMERA COM OBSTRUÇÃO DE IMAGEM?",
"reason": "A plataforma não avalia obstrução de imagem.",
"source": "none",
"state": "not_measured"
},
{
"number": 7,
"question": "Informar SAs que estão abertas para manutenção:",
"source": "none",
"state": "phase_2"
}
],
"source": {
"kind": "alarm",
"ref": "9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Ronda
Relatório de ronda de um alarme
O relatório de ronda de um evento: as verificações feitas sob aquele alarme, prontas para virar a folha que o cliente recebe.
Quando nenhuma verificação foi registrada para o alarme, a resposta é 404 —
não um relatório vazio. Relatório sem verificação seria um documento afirmando
que ninguém olhou, com a aparência de que alguém olhou.
As fotos vêm em endereços assinados e temporários. Quem guarda o relatório guarda os bytes, não o link — é a diferença entre um documento que abre em seis meses e um que abre hoje.
GET
/
api
/
patrols
/
sheets
/
alarm
/
{alarm_id}
Relatório de ronda de um alarme
curl --request GET \
--url https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id}"
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/sheets/alarm/{alarm_id}', 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/sheets/alarm/{alarm_id}",
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/sheets/alarm/{alarm_id}"
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/sheets/alarm/{alarm_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pictor.cloud/api/patrols/sheets/alarm/{alarm_id}")
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{
"cameras": [
{
"channel_number": 1,
"device_id": "0b8f1c22-6d4e-4a17-9b02-3f5a7c8d9e10",
"dvr_id": "3a4b5c60-7d8e-4f01-a2b3-c4d5e6f70819",
"dvr_name": "DVR Portaria",
"error": null,
"external_id": "G87232574",
"finished_at": "2026-09-03T03:12:19Z",
"frames_analyzed": 3,
"name": "Guarita - entrada",
"owner": null,
"photo": null,
"reason_code": null,
"reason_label": null,
"requested_at": "2026-09-03T03:12:10Z",
"situation": "with_frame",
"situation_label": "Com imagem",
"verdict": "sem_ocorrencia",
"verdict_label": "Sem ocorrência"
}
],
"checklist": "Ronda virtual de CFTV",
"emitted_at": "2026-09-03T03:14:02Z",
"header": {
"cameras_not_sampled": 0,
"cameras_pending": 0,
"cameras_person": 2,
"cameras_total": 11,
"cameras_vehicle": 0,
"cameras_with_frame": 10,
"cameras_without_frame": 1,
"duration_seconds": 97,
"executor": "Pictor - verificação automática",
"finished_at": "2026-09-03T03:13:41Z",
"photos": 10,
"site": {
"address": "Rua das Acácias, 100",
"external_ref": "4021",
"name": "Cond. Alvorada - Portaria",
"site_id": "1d2e3f40-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
},
"started_at": "2026-09-03T03:12:04Z",
"trigger": {
"account": "4021",
"code": "1130",
"description": "Alarme de intrusão",
"provider": "sowil"
}
},
"items": [
{
"answer": "Cond. Alvorada - Portaria",
"number": 1,
"question": "QUAL O LOCAL MONITORADO?",
"source": "monitored_site",
"state": "answered"
},
{
"number": 4,
"question": "HÁ ALGUMA CÂMERA COM OBSTRUÇÃO DE IMAGEM?",
"reason": "A plataforma não avalia obstrução de imagem.",
"source": "none",
"state": "not_measured"
},
{
"number": 7,
"question": "Informar SAs que estão abertas para manutenção:",
"source": "none",
"state": "phase_2"
}
],
"source": {
"kind": "alarm",
"ref": "9f52a3b1-0c4d-4e6f-8a90-1b2c3d4e5f60"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Chave de API da conta, no formato pct_<prefixo>_<segredo>.
Path Parameters
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes