List endpoints return paginated results. You can control pagination using query parameters.
Query Parameters
| Parameter | Default | Description |
|---|---|---|
page |
1 | The page number to retrieve |
per_page |
20 | Number of items per page (max: 100) |
Example Request
curl "https://sentinel.rootstuff.io/api/monitors?page=2&per_page=50" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Response Format
Paginated responses include metadata about the current page:
{
"data": [
{ "id": 1, "url": "https://example.com", ... },
{ "id": 2, "url": "https://another.com", ... }
],
"current_page": 2,
"per_page": 50,
"total": 150,
"last_page": 3,
"from": 51,
"to": 100,
"first_page_url": "https://sentinel.rootstuff.io/api/monitors?page=1",
"last_page_url": "https://sentinel.rootstuff.io/api/monitors?page=3",
"next_page_url": "https://sentinel.rootstuff.io/api/monitors?page=3",
"prev_page_url": "https://sentinel.rootstuff.io/api/monitors?page=1",
"path": "https://sentinel.rootstuff.io/api/monitors"
}