API Documentation
Platform
- GETGet API info
- Alert Policies
- Alert Rules
List status pages
Get a paginated list of status pages
curl --request GET \
--url https://api.phare.io/uptime/status-pages \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 1,
"project_id": 1,
"name": "Phare status",
"subdomain": "example",
"domain": "status.example.com",
"title": "Phare status",
"description": "Status page of phare.io",
"search_engine_indexed": true,
"website_url": "https://phare.io",
"colors": {
"operational": "#16a34a",
"degradedPerformance": "#fbbf24",
"partialOutage": "#f59e0b",
"majorOutage": "#ef4444",
"maintenance": "#6366f1",
"empty": "#d3d3d3"
},
"components": [
{
"componentable_type": "uptime/monitor",
"componentable_id": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 2,
"from": 11,
"to": 20,
"per_page": 100,
"path": "https://api.phare.io/{resource}?page=2"
},
"links": {
"first": "https://api.phare.io/{resource}?page=2",
"last": "https://api.phare.io/{resource}?page=10",
"prev": "https://api.phare.io/{resource}?page=1",
"next": "https://api.phare.io/{resource}?page=1"
}
}
Authorizations
Use a user token to access authenticated routes. The token must be specified in the Authorization HTTP header with the following format 'Authorization: Bearer <token>'.
Query Parameters
Page number to show
1
Number of ressources to return per page
1 <= x <= 100
20
Response
Status page name
"Phare status"
Status page HTML title
"Phare status"
Status page HTML description
"Status page of phare.io"
Whether search engines are allowed to index the page
true
URL to redirect users clicking the status page logo
"https://phare.io"
Colors to customize the status page
Status page ID
1
Parent project ID
1
Subdomain name for the status page, hosted on a phare.io domain: {subdomain}.status.phare.io
"example"
Custom domain name for the status page
"status.example.com"
Date of creation for the entity
Date of last update for the entity
Links for pagination
Was this page helpful?
curl --request GET \
--url https://api.phare.io/uptime/status-pages \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": 1,
"project_id": 1,
"name": "Phare status",
"subdomain": "example",
"domain": "status.example.com",
"title": "Phare status",
"description": "Status page of phare.io",
"search_engine_indexed": true,
"website_url": "https://phare.io",
"colors": {
"operational": "#16a34a",
"degradedPerformance": "#fbbf24",
"partialOutage": "#f59e0b",
"majorOutage": "#ef4444",
"maintenance": "#6366f1",
"empty": "#d3d3d3"
},
"components": [
{
"componentable_type": "uptime/monitor",
"componentable_id": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 2,
"from": 11,
"to": 20,
"per_page": 100,
"path": "https://api.phare.io/{resource}?page=2"
},
"links": {
"first": "https://api.phare.io/{resource}?page=2",
"last": "https://api.phare.io/{resource}?page=10",
"prev": "https://api.phare.io/{resource}?page=1",
"next": "https://api.phare.io/{resource}?page=1"
}
}