---
title: "Docs"
url: "https://relay-uptime.miow.me/docs"
updated: 2026-10-15
description: "Add Relay uptime checks from code with the API, with examples in curl and JavaScript."
---

# Docs

Add checks from code with the Relay API. Send a POST request to `/v1/checks` with your key and the address to watch.

## Create a check

**curl**

```
curl -X POST https://api.example.com/v1/checks \
  -H "Authorization: Bearer $RELAY_KEY" \
  -d '{"url": "https://example.com", "interval": 30}'
```

**JavaScript**

```
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 })
});
```

## Need help?

Email [support@example.com](mailto:support@example.com).
