Websites API

Create, read, update, and delete websites programmatically.

List websites

GET /api/v1/websites

Returns an array of website objects for your organization.

Get a website

GET /api/v1/websites/:id

Create a website

POST /api/v1/websites

{
  "name": "My App",
  "url": "https://example.com"
}

Update a website

PUT /api/v1/websites/:id

{
  "name": "My App (updated)",
  "enabled": false
}

Delete a website

DELETE /api/v1/websites/:id

Permanently deletes the website and all its endpoints and monitoring history.

Website object

{
  "id": "ws_abc123",
  "name": "My App",
  "url": "https://example.com",
  "enabled": true,
  "endpoint_count": 4,
  "last_checked_at": "2025-01-15T10:30:00Z",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-15T10:30:00Z"
}