GET
/
{product}
/
alert-policies
/
{alertPolicyId}
curl --request GET \
  --url https://api.phare.io/{product}/alert-policies/{alertPolicyId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "product": "uptime",
  "project_id": 1,
  "name": "Website",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
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
alertPolicyId
integer
required

ID of the alert policy to update

Response

200
application/json
Success, alert policy retrieved
project_id
number | null
required

Restrict the use to a single project ID

name
string
required

Monitor name

id
number
product
enum<string>

Phare product that can use the alert policy

Available options:
uptime
created_at
string

Date of creation for the entity

updated_at
string

Date of last update for the entity