Alerts API
Create an alert history entry
Record an alert event (for example a manually created failure or recovery signal). Requires monitor manage permission.
POST
bearerAuthheader
AuthorizationBearer <token>Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.
application/json- body
type*stringValue in
"monitor_failure""monitor_recovery""job_failed""job_success""job_timeout""ssl_expiring"message*stringtarget*stringtargetType*stringValue in
"monitor""job"provider*stringstatus*stringValue in
"sent""failed""pending"monitorId?stringFormat
uuidjobId?stringFormat
uuiderrorMessage?stringAlert history entry created
application/json- response
id?stringFormat
uuidtargetType?stringtargetId?stringtargetName?stringtype?stringmessage?stringstatus?stringtimestamp?stringFormat
date-timenotificationProvider?stringmetadata?curl -X POST 'https://demo.supercheck.dev/api/alerts/history' \ -H 'Content-Type: application/json' \ -d '{ "type": "monitor_failure", "message": "string", "target": "string", "targetType": "monitor", "provider": "string", "status": "sent"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "targetType": "string", "targetId": "string", "targetName": "string", "type": "string", "message": "string", "status": "string", "timestamp": "2019-08-24T14:15:22Z", "notificationProvider": "string", "metadata": { "errorMessage": "string" }}