cURL
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 } }
Retrieve a paginated list of monitors for the authenticated user
Laravel Sanctum Bearer token authentication
Filter monitors by specific project ID
Page number for pagination
x >= 1
Successful response
Show child attributes