Docs
Add checks from code with the Relay API. Send a POST request to /v1/checks with your key and the address to watch.
Add checks from code with the Relay API. Send a POST request to /v1/checks with your key and the address to watch.
curl -X POST https://api.example.com/v1/checks \
-H "Authorization: Bearer $RELAY_KEY" \
-d '{"url": "https://example.com", "interval": 30}'const res = await fetch("https://api.example.com/v1/checks", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.RELAY_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({ url: "https://example.com", interval: 30 })
});Email support@example.com.