SiteBrief/Documentation

REST API

Programmatic access to your SiteBrief data. Integrate monitoring into your own tools, dashboards, or CI/CD pipelines.

Authentication

Generate an API key in Settings → API Keys. Pass it in every request via the X-Api-Key header.

curl https://sitebrief.net/api/v1/sites \
  -H "X-Api-Key: sbk_your_key_here"
⚠️
Warning:Keep your API key secret. Rotate it any time from Settings if compromised.

Base URL

https://sitebrief.net/api/v1

Endpoints

MethodPathDescription
GET/sitesList all your sites
POST/sitesCreate a new site
GET/sites/:idGet a single site
PATCH/sites/:idUpdate site settings
DELETE/sites/:idDelete a site

GET /sites

Returns all your monitored sites.

curl https://sitebrief.net/api/v1/sites \
  -H "X-Api-Key: sbk_your_key_here"
{
  "sites": [
    {
      "id": "uuid",
      "name": "My Site",
      "url": "https://example.com",
      "status": "up",
      "uptime_percentage": "99.98",
      "last_checked_at": "2025-01-01T12:00:00Z",
      "ssl_expiry": "2025-06-01T00:00:00Z",
      "environment": "production",
      "check_interval_minutes": 2
    }
  ],
  "count": 1
}

POST /sites

Create a new site to monitor.

curl -X POST https://sitebrief.net/api/v1/sites \
  -H "X-Api-Key: sbk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Client Site",
    "url": "https://example.com",
    "environment": "production",
    "check_interval_minutes": 5
  }'
FieldTypeRequiredDescription
namestringYesDisplay name
urlstringYesFull URL to monitor
environmentstringNoproduction / staging / development
check_interval_minutesnumberNoCheck every N minutes (set by plan: 2 for Free, 1 for Pro/Agency)
check_typestringNohttp / tcp / ping / dns (default: http)

PATCH /sites/:id

Update a site. Only provided fields are changed.

curl -X PATCH https://sitebrief.net/api/v1/sites/SITE_ID \
  -H "X-Api-Key: sbk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "check_interval_minutes": 1 }'

Updatable fields: name, url, environment, check_interval_minutes, keyword, paused_until.

DELETE /sites/:id

Permanently delete a site and all its check history. Returns 204 No Content.

curl -X DELETE https://sitebrief.net/api/v1/sites/SITE_ID \
  -H "X-Api-Key: sbk_your_key_here"

Error responses

StatusMeaning
401Invalid or missing API key
403Plan limit reached
404Site not found
422Validation error (missing required fields)
500Server error

Rate limits

  • 100 requests per minute per API key
  • Exceeding the limit returns 429 Too Many Requests