Skip to main content
GET
/
monitors
List all monitors
curl --request GET \
  --url https://upcron.io/api/monitors \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "name": "My Monitor",
      "url": "https://example.com",
      "project_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "valid_http_codes": [
        200,
        201
      ],
      "status": 1,
      "basic_auth_username": null,
      "method": "GET",
      "active": true,
      "created_at": "2024-01-01T12:00:00.000000Z",
      "updated_at": "2024-01-01T12:00:00.000000Z",
      "uptime": 99.5,
      "last_checked": "2 minutes ago",
      "incidents_count": 3,
      "last_incident_duration": 120,
      "project": {
        "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
        "name": "My Project",
        "description": "Project description"
      }
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 20,
    "total": 5,
    "last_page": 1
  }
}

Authorizations

Authorization
string
header
required

Laravel Sanctum Bearer token authentication

Query Parameters

project_id
string<uuid>

Filter monitors by specific project ID

page
integer
default:1

Page number for pagination

Required range: x >= 1

Response

Successful response

data
object[]
meta
object