GET
/
site
Retrieve all sites for the authenticated user
curl --request GET \
  --url https://api.watchmantower.com/public/v1/site \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Sites retrieved successfully",
  "code": 200,
  "data": [
    {
      "_id": "65a7f9c2e1b9a2a9c1d12345",
      "name": "My Website",
      "url": "https://www.mywebsite.com",
      "protocol": "https",
      "timeout": 15000,
      "checkInterval": 300,
      "parentGroup": "my customer group",
      "createdAt": "2024-06-01T12:00:00Z",
      "updatedAt": "2024-06-10T15:30:00Z"
    }
  ]
}
Retrieve all monitoring sites associated with your account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

List of sites retrieved successfully.

success
boolean
Example:

true

message
string
Example:

"Sites retrieved successfully"

code
number
Example:

200

data
Site · object[]