Skip to content

TrustMonitoring API (Legacy)

The URL names the service and the monitor. Each variant answers GET and POST alike:

With an API key of the project
curl -X POST "https://api.trustcomponent.com/monitoring/v1/heartbeats/{serviceId}/{monitorId}" \
-H "Authorization: Bearer <your_api_key>"
With the heartbeat token in the path
curl "https://api.trustcomponent.com/monitoring/v1/heartbeats/{serviceId}/{monitorId}/{token}"
StatusWith an API keyWith the token in the path
204Ping registeredPing registered
401No key, or the key is unknown or revoked—
402The project is locked—
403The key belongs to a project without TrustMonitoring, or to an agencyThe token does not belong to this monitor
404Service or monitor not found, the service belongs to another project, or the monitor is no heartbeat monitorService or monitor not found, or the monitor is no heartbeat monitor

Apart from 401, these answers carry no code. The token variant checks neither a lock nor the trial of the project, and the key variant does not check the trial. The current version answers a locked project 423 with code: project_locked, an ended trial 402 with code: trial_expired, a monitor that is no heartbeat monitor 404 with code: monitor_not_heartbeat, and accepts agency keys.