GET
/
{product}
/
alert-policies
curl --request GET \
  --url https://api.phare.io/{product}/alert-policies \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1,
      "product": "uptime",
      "project_id": 1,
      "name": "Website",
      "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"
  }
}
Please be aware that the Phare API is currently in beta and is subject to change.

Authorizations

Authorization
string
header
required

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>'.

Path Parameters

product
enum<string>
required

The Phare product

Available options:
uptime

Query Parameters

page
integer
default:
1

Page number to show

per_page
integer
default:
20

Number of ressources to return per page

Required range: 1 < x < 100

Response

200
application/json
Success, alert policies retrieved
data
object[]
meta
object

Meta data for pagination

Links for pagination