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

In: header

Request Body

application/json

type*string
message*string
target*string
targetType*string
provider*string
status?string
monitorId?string
Formatuuid
jobId?string
Formatuuid
errorMessage?string

Response Body

application/json

application/json

application/json

curl -X POST "https://demo.supercheck.dev/api/alerts/history" \  -H "Content-Type: application/json" \  -d '{    "type": "string",    "message": "string",    "target": "string",    "targetType": "string",    "provider": "string"  }'
{
  "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"
  }
}
Empty
{
  "error": "Unauthorized"
}
{
  "error": "string"
}
Empty