Create a least-privilege token, retrieve monitor data, perform one safe control action, and verify a test webhook.
Step 1
Create a restricted token
Open Account > Integrations and create a token dedicated to this integration. Select only the permissions and monitors it needs.
Name the token after the consuming application.
Select monitors:read and monitors:control.
Choose Selected monitors only and select a non-critical test monitor.
Choose an expiry and create the token.
Copy the token immediately. It cannot be displayed again.
Treat the token like a password. Store it in a secret manager or protected environment variable. Never place it in frontend JavaScript, mobile application code, source control, screenshots, or support requests.
Keep the returned monitor id. IDs are opaque strings; do not parse or infer information from them.
Step 3
Pause a test monitor safely
Use a unique idempotency key for every intended change. If a network interruption makes the result uncertain, retry the same request with the same key.
Only pause a monitor you are authorized to control and prepared to stop checking. Activate it after the test using POST /monitors/{monitorId}/activate with a new idempotency key.
Step 4
Create and verify a test webhook
In Account > Integrations, create an HTTPS endpoint, select one test monitor and one event, save the signing secret, then use Send test. Your receiver must verify the timestamped HMAC signature over the exact raw request body.
Read the raw bytes before JSON parsing.
Reject timestamps outside your allowed tolerance.
Calculate HMAC-SHA256 over timestamp + "." + rawBody.
Compare signatures in constant time.
Deduplicate using eventId; track attempts with deliveryId.