Listar pedidos de apoio
RegistosGET /tickets
Returns the tickets the caller opened plus tickets on accounts the caller can read, across the utilities where the caller holds accounts, or only one utility when the X-Tenant-ID header selects it. The list can be narrowed with account_id, category and status, and is cursor-paginated with limit (default 20, at most 100) and after. Answers 403 when the caller has no consumer access.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Consumer tickets
curl -X GET "$CONSUMER_API/tickets" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$CONSUMER_API/tickets", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/tickets",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/tickets", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Consumer tickets