Get alert history
GET https://datafa.st/api/v1/admin/websites/{websiteId}/alerts/historyReturn recent alert trigger logs — which alerts fired, for which goals, and whether delivery succeeded or failed.
Use
alertId to filter to one alert. Results are capped at 100.Related: Alerts announcement · Custom goals
Request
Path parameters
websiteIdstring
Query parameters
alertIdstring
Filter to one alert. ObjectId from List alerts. Example:
665f0b3c4d2e1a0012345678.limitnumber
Max logs returned. Default
50, max 100. Example: limit=25.Example query
GET /api/v1/admin/websites/{websiteId}/alerts/history?alertId=665f0b3c4d2e1a0012345678&limit=25
Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data.Response fields
data[].alertIdstring
Alert ObjectId.
data[].alertNamestring
Alert name.
data[].goalNamestring
Goal that triggered the alert.
data[].statusstring
sent or failed status.data[].errorstring|null
Error message when delivery failed.
data[].visitorIdstring|null
Alias for
datafast_visitor_id on endpoints that accept both names.data[].triggeredAtstring
Trigger timestamp.
counts.sentnumber
Number of sent logs before limit slicing.
counts.failednumber
Number of failed logs before limit slicing.
counts.totalnumber
Total logs before limit slicing.
Authentication
Use a
dft_ account token with alerts:read.A
df_ website API key for the same website can also call this route when the path websiteId matches the key's website. Write access with a df_ key is capped at member level — owner-only actions such as team management require a dft_ token and owner role.Errors
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.