AlertsList alerts

List alerts

The feed, newest first. One row per episode of a condition: it opens once, repeat reports only bump occurrences and last_seen_at, and it resolves when the detector clears it or stops watching its subject (link disabled, contracts removed, experiment ended, connection deleted), shown as resolved_by: source, or when a user resolves it (resolved_by: user). A condition that returns after resolving opens a new row. Page with before set to the previous response's next_before.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/alerts/events?status=open&location_id=example_string&source=contracts&limit=42&before=2024-12-25T10%3A00%3A00Z" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "source": "contracts",
      "fingerprint": "uptime:loc_abc123:spring-sale",
      "location_id": "example_string",
      "severity": "info",
      "title": "Short link /spring-sale is down",
      "detail": "example_string",
      "payload": {},
      "status": "open",
      "occurrences": 42,
      "opened_at": "2024-12-25T10:00:00Z",
      "last_seen_at": "2024-12-25T10:00:00Z",
      "resolved_at": "2024-12-25T10:00:00Z",
      "resolved_by": "source"
    }
  ],
  "next_before": "2024-12-25T10:00:00Z"
}
GET
/client/v1/alerts/events
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) are accepted and need alerts:read or alerts:write. Keys are server-side credentials; this surface serves no CORS headers.

Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) are accepted and need alerts:read or alerts:write. Keys are server-side credentials; this surface serves no CORS headers.
query
statusstring

open (default), resolved or all.

Options: open, resolved, all
query
location_idstring

Only alerts about this client. Must belong to the agency (403 location_not_linked).

query
sourcestring
Options: contracts, uptime, airbyte, drift, quota
query
limitinteger

1 to 200. Default 50.

Min: 1 • Max: 200
query
beforestring

ISO timestamp cursor: only alerts opened before it.

Format: date-time
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) are accepted and need alerts:read or alerts:write. Keys are server-side credentials; this surface serves no CORS headers.

Query Parameters

statusstring

open (default), resolved or all.

Allowed values:openresolvedall
location_idstring

Only alerts about this client. Must belong to the agency (403 location_not_linked).

sourcestring
Allowed values:contractsuptimeairbytedriftquota
limitinteger

1 to 200. Default 50.

beforestring

ISO timestamp cursor: only alerts opened before it.

Responses

successboolean
dataarray
next_beforestring

Pass as before for the next page. null on the last page.