Explore documentation

Create a new status page

Returns a newly created status page or validation errors.

POST https://betteruptime.com/api/v2/status-pages

Headers

Authorization
required string
Content_Type
string

Body parameters

history
integer
company_name
string
company_url
string
contact_url
string
logo_url
string
timezone
string
subdomain
string
custom_domain
string
min_incident_length
integer
subscribable
boolean
hide_from_search_engines
boolean
custom_css
string
google_analytics_id
string
announcement
string
announcement_embed_visible
boolean
announcement_embed_link
string
announcement_embed_custom_css
string
password_enabled
boolean
password
string
201

Response body

{
  "id": "123456789",
  "type": "status_page",
  "attributes": {
    "company_name": "Best company",
    "company_url": "https://best-company.com",
    "contact_url": null,
    "logo_url": null,
    "timezone": "Tokyo",
    "subdomain": "best-company-tokyo",
    "custom_domain": null,
    "custom_css": null,
    "google_analytics_id": null,
    "min_incident_length": 400,
    "announcement": null,
    "announcement_embed_visible": false,
    "announcement_embed_css": null,
    "announcement_embed_link": null,
    "automatic_reports": false,
    "subscribable": false,
    "hide_from_search_engines": false,
    "password_enabled": false,
    "history": 90,
    "aggregate_state": "operational",
    "design": "v1",
    "theme": "light",
    "layout": "vertical",
    "created_at": "2020-08-10T07:34:38.848Z",
    "updated_at": "2020-12-08T14:12:31.680Z"
  }
}
422

Response body

{
  "errors": "Sorry, you misspelled some attributes",
  "invalid_attributes": [
    "company_urlll"
  ]
}

Example cURL

Example
curl --request POST \
  --url https://betteruptime.com/api/v2/status-pages \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "company_url": "https://best-company.com",
    "company_name": "Best company",
    "subdomain": "best-company-tokyo",
    "timezone": "Tokyo"
}'