SmartGare
API referenceEndpoints

Read the open alerts, or the closed ones, meant for the caller

**Required permission:** `supervision.alert:read`

GET/supervision/v1/alerts

Required permission: supervision.alert:read

AuthorizationBearer <token>

In: header

Query Parameters

closed?boolean

The closed alerts rather than the open ones.

Defaultfalse
after?string

For the closed alerts, the next_after of the page before.

size?integer

For the closed alerts, how many per page: 50 unless said, 200 at most.

Formatint32

Response Body

*/*

curl -X GET "https://example.com/supervision/v1/alerts"
{  "alerts": [    {      "acknowledge_by": "2019-08-24T14:15:22Z",      "acknowledged_at": "2019-08-24T14:15:22Z",      "acknowledged_by": "string",      "alert_id": "string",      "audience": "string",      "cause": {        "code": "string",        "details": {          "property1": "string",          "property2": "string"        }      },      "cause_detail": "string",      "closed_at": "2019-08-24T14:15:22Z",      "closed_by": "string",      "closure": "string",      "closure_evidence": {        "code": "string",        "details": {          "property1": "string",          "property2": "string"        }      },      "closure_reason": "string",      "cycle_review_id": "string",      "escalated": true,      "escalated_at": "2019-08-24T14:15:22Z",      "escalated_to": "string",      "escalates_to": "string",      "last_occurred_at": "2019-08-24T14:15:22Z",      "occurrences": 0,      "place": {        "code": "string",        "details": {          "property1": "string",          "property2": "string"        }      },      "raised_at": "2019-08-24T14:15:22Z",      "seconds_to_acknowledge": 0,      "severity": "string",      "state": "string",      "trail": [        {          "actor": "string",          "at": "2019-08-24T14:15:22Z",          "detail": "string",          "kind": "string",          "permission": "string",          "reported": {            "code": "string",            "details": {              "property1": "string",              "property2": "string"            }          }        }      ],      "type": "string"    }  ],  "freshness": {    "age_seconds": 0,    "budget_seconds": 0,    "late_by_seconds": 0,    "newest_information_at": "2019-08-24T14:15:22Z",    "state": "string"  },  "next_after": "string",  "read_at": "2019-08-24T14:15:22Z"}