Uptime sites
Create a site
Creates an uptime monitoring site. Requires uptime monitoring on the plan.
post/projects/{project_id}/sites
Request
- Base URLhttps://app.honeybadger.io/v3
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
project_idstring required
Example:Xk9mZp
Project ID
Request body
Example request
{
"name": "Marketing site",
"url": "https://www.example.com/health",
"match": "status == 'ok'",
"request_headers": {
"Authorization": "Bearer abc123"
}
}Response
Site created
Example response
{
"data": {
"id": "9f8b6d2e-4c1a-4b7f-9e35-2a6c8d0f1b47",
"project_id": "Xk9mZp",
"name": "Production App",
"url": "https://app.example.com",
"state": "up",
"locations": [
"Virginia",
"London"
],
"outage_threshold": 2,
"timeout": 30,
"links": {
"web": "https://app.honeybadger.io/projects/Xk9mZp"
}
},
"meta": {
"request_id": "6f1c2b0e-8d4a-4f6e-9b2a-3c5d7e9f1a2b"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.