Listar interrupções
RegistosGET /interruptions
Planned or active interruptions affecting the service areas of the caller's accounts
An account's areas are derived from the reading routes covering its meters and from service areas named like the property's locality or district. Finished interruptions are omitted.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
X-Tenant-IDNarrow to one of the caller's tenants
Devolve
200 Interruptions
Mostrar atributos
dataMostrar atributos filhos
idtenant_idtitleinterruption_typeum de
maintenance,emergency,rationingstatusum de
planned,active,completed,cancelledservice_area_iddma_iddescriptionstart_timeend_timeaffected_customers_estcreated_atupdated_at
has_morenext_cursor
curl -X GET "$CONSUMER_API/interruptions" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$CONSUMER_API/interruptions", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/interruptions",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/interruptions", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Resposta 200
{
"data": [
{
"id": "sup_2xVSEXVGkjH84PdmebPICxjIkZH",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"title": "Fuga na Rua 3",
"interruption_type": "maintenance",
"status": "planned",
"service_area_id": "ser_23fmkpfkC17kSVJ2spjyiBbOED9",
"dma_id": "dma_2gE3tiwbLQQnDGcrVkstPO8Bjkg",
"description": "Leitura confirmada no local.",
"start_time": "2026-11-19T09:30:00Z",
"end_time": "2026-11-19T09:30:00Z",
"affected_customers_est": 1,
"created_at": "2026-11-19T09:30:00Z",
"updated_at": "2026-11-19T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "next cursor"
}