Send a test alert for a monitoring service

Manually send a test alert from your monitoring service. This is useful for verifying that your alerts are configured correctly and function as expected. The endpoint returns a job ID to track the test alert status.

Path Parameters

id string required Example

id parameter

Headers

Accept Example
Content-Type Example

Body

required
application/json
url string
name string
description string
check_interval integer
timeout integer
max_response_time integer
consecutive_failures integer
method string
expected_status_codes array
search_string string
check_ssl boolean
ssl_alert_days integer
alert_channels array
type string
endpoint_id integer

Responses

200
success boolean
timestamp string
requestId string
data object
400
error string
message string
code string
timestamp string
requestId string
403
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/notifications/{id}
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/notifications/url-monitors" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "string",
    "name": "string",
    "description": "string",
    "check_interval": 0,
    "timeout": 0,
    "max_response_time": 0,
    "consecutive_failures": 0,
    "method": "string",
    "expected_status_codes": [
      0
    ],
    "search_string": "string",
    "check_ssl": true,
    "ssl_alert_days": 0,
    "alert_channels": [
      "string"
    ],
    "type": "string",
    "endpoint_id": 0
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "monitorId": 0
  }
}
Request Body
{
  "url": "string",
  "name": "string",
  "description": "string",
  "check_interval": 0,
  "timeout": 0,
  "max_response_time": 0,
  "consecutive_failures": 0,
  "method": "string",
  "expected_status_codes": [
    0
  ],
  "search_string": "string",
  "check_ssl": true,
  "ssl_alert_days": 0,
  "alert_channels": [
    "string"
  ],
  "type": "string",
  "endpoint_id": 0
}