TrustMonitoring API (Legacy)
Send a heartbeat (v1)
Section titled “Send a heartbeat (v1)”The URL names the service and the monitor. Each variant answers GET and POST alike:
curl -X POST "https://api.trustcomponent.com/monitoring/v1/heartbeats/{serviceId}/{monitorId}" \ -H "Authorization: Bearer <your_api_key>"curl "https://api.trustcomponent.com/monitoring/v1/heartbeats/{serviceId}/{monitorId}/{token}"| Status | With an API key | With the token in the path |
|---|---|---|
204 | Ping registered | Ping registered |
401 | No key, or the key is unknown or revoked | — |
402 | The project is locked | — |
403 | The key belongs to a project without TrustMonitoring, or to an agency | The token does not belong to this monitor |
404 | Service or monitor not found, the service belongs to another project, or the monitor is no heartbeat monitor | Service 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.