Alerts
List incidents
Introduction
APIs
- Authentication
- Customers
- Accounts
- Aliases
- Event Schemas
- Usage Meters
- AddOns
- Licenses
- Feature
- (Deprecated) Price Plans
- Price Plan V2
- Settings
- Price Experimentation
- Jobs
- Event Ingestion
- Entitlements
- Event Management
- Metrics
- Credits
- Invoices
- Payments
- Wallet
- InvoiceGroups
- Alerts
- Reports
Alerts
List incidents
Returns a list of incidents with pagination and sort.
GET
/
incidents
curl --request GET \
--url https://api.togai.com/incidents \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "incident.1zYnCiM9Bpg.lv25y",
"alertTemplateId": "abcd-efgh-ijkl-mnop",
"alertId": "alert.1zYnCiM9Bpg.lv25y",
"alertVersion": 1,
"validUntil": "2020-01-01T00:00:00Z",
"reportData": {
"usageValue": 10
},
"status": "ACTIVE",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
Response for list incidents request
Incident ID
Alert ID
Alert Version
Alert Template Id
Incident Status
Created At
Last Checked At
Updated At
curl --request GET \
--url https://api.togai.com/incidents \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "incident.1zYnCiM9Bpg.lv25y",
"alertTemplateId": "abcd-efgh-ijkl-mnop",
"alertId": "alert.1zYnCiM9Bpg.lv25y",
"alertVersion": 1,
"validUntil": "2020-01-01T00:00:00Z",
"reportData": {
"usageValue": 10
},
"status": "ACTIVE",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}