Listar interrupções
RegistosGET /interruptions
Returns the tenant's planned and unplanned supply interruptions with type, status, service area, DMA, start and end times and estimated affected customers. Results are cursor-paginated (default 20, maximum 100); the handler also accepts service_area_id and status filters. Customers in an affected service area see open interruptions through the consumer API. Requires the interruptions:read permission.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Supply 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
Erros 403
Permissões interruptions:read · Funções: admin, analyst, customer_service, field_reader, field_supervisor, operations, owner, viewer
curl -X GET "$BUSINESS_API/interruptions" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/interruptions", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/interruptions",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/interruptions", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"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"
}