Skip to main content
GET
/
v1
/
alerts
cURL
curl --request GET \
  --url https://api.pegana.xyz/v1/alerts
[
  {
    "asset": "<string>",
    "class": "<string>",
    "detected_at": "2023-11-07T05:31:56Z",
    "from_state": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "to_state": "<string>",
    "dispatched_at": "2023-11-07T05:31:56Z"
  }
]

Query Parameters

asset
string

Restrict to a single asset symbol.

class
string

Restrict to a single asset class.

limit
integer<int64>

Page size, must be in [1, 500]. Default 50. Out-of-range values are rejected with 400 rather than silently clamped.

since
string<date-time>

Inclusive lower bound on detected_at. Defaults to now − 7 days.

Response

Global alert feed, newest first

asset
string
required
class
string
required
detected_at
string<date-time>
required
from_state
string
required
id
string<uuid>
required
to_state
string
required
dispatched_at
string<date-time> | null

None while the dispatcher is still attempting delivery; populated once at least one fan-out target accepted the alert.