REST API overview

API · v1.4.0

Status pages

6 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.

GET /workspaces/{workspace}/status-pages

Lists the status pages of the workspace without their layout

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/status-pages

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameType
slugrequiredstring
titlerequiredstring
descriptionstring | null
custom_domainstring | null
publishedboolean
localeen | hu
accent_colorstring | null
logo_urlstring | null
favicon_urlstring | null
custom_cssstring | null
footerstring | null
bar_daysinteger
uptime_days1 | 7 | 30 | 90 | 365
upcoming_maintenance_daysinteger
incident_history_daysinteger
show_latencyboolean

Responses

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

GET /workspaces/{workspace}/status-pages/{statusPage}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

statusPagerequiredpathinteger

The status page ID

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/status-pages/{statusPage}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

statusPagerequiredpathinteger

The status page ID

Request body

NameType
slugstring
titlestring
descriptionstring | null
custom_domainstring | null
publishedboolean
localeen | hu
accent_colorstring | null
logo_urlstring | null
favicon_urlstring | null
custom_cssstring | null
footerstring | null
bar_daysinteger
uptime_days1 | 7 | 30 | 90 | 365
upcoming_maintenance_daysinteger
incident_history_daysinteger
show_latencyboolean

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/status-pages/{statusPage}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

statusPagerequiredpathinteger

The status page ID

Responses

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PUT /workspaces/{workspace}/status-pages/{statusPage}/layout

Replaces all sections and items of the page. The order of the arrays is the display order

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

statusPagerequiredpathinteger

The status page ID

Request body

NameType
sectionsrequiredlist<object>

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error