Alert rules
List alert rules
GET
Returns alert rules in the active organization, optionally filtered by project.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
projectId?stringLength
1 <= length <= 64application/json- response
[index: integer]?curl -X GET 'https://api.example.com/api/v1/alert-rules'Example Response
[ { "id": "string", "name": "string", "projectId": "string", "projectName": "string", "kind": "new_issue", "environments": [ "string" ], "comparison": "above", "threshold": 0, "windowMinutes": 0, "cooldownMinutes": 0, "notifyRecovery": true, "enabled": true, "mutedUntil": "2019-08-24T14:15:22Z", "phase": "ok", "lastTriggeredAt": "2019-08-24T14:15:22Z", "subscribed": true, "subscriberCount": 0, "integrationIds": [ "string" ], "createdBy": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }]