Supercheck LogoSupercheck
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
/api/alerts/history

Authorization

bearerAuth
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
type*string
Value in"monitor_failure""monitor_recovery""job_failed""job_success""job_timeout""ssl_expiring"
message*string
target*string
targetType*string
Value in"monitor""job"
provider*string
status*string
Value in"sent""failed""pending"
monitorId?string
Formatuuid
jobId?string
Formatuuid
errorMessage?string

Response Body

Alert history entry created

application/json
  1. response
id?string
Formatuuid
targetType?string
targetId?string
targetName?string
type?string
message?string
status?string
timestamp?string
Formatdate-time
notificationProvider?string
metadata?
Example Request
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"  }}