SDK reference

Status Pages

Each route's function in the SDK, its call beside the same request in cURL.
statusPagesList

GET/v1/orgs/:orgId/status-pages

List status pages

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusPagesCreate

POST/v1/orgs/:orgId/status-pages

Create a status page

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example"
  }'
statusPagesGet

GET/v1/orgs/:orgId/status-pages/:pageId

Get a status page

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusPagesUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId

Change a status page

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "slug": "example",
    "timeZone": "example"
  }'
statusPagesDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId

Delete a status page

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusGroupsCreate

POST/v1/orgs/:orgId/status-pages/:pageId/groups

Add a component group

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example"
  }'
statusGroupsUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId/groups/:groupId

Change a component group

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/groups/{groupId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "order": 1,
    "collapsed": true
  }'
statusGroupsDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/groups/:groupId

Remove a component group

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/groups/{groupId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusComponentsCreate

POST/v1/orgs/:orgId/status-pages/:pageId/components

Add a component

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/components' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example"
  }'
statusComponentsUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId/components/:componentId

Change a component

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/components/{componentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "description": "example",
    "groupId": "<groupId>"
  }'
statusComponentsDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/components/:componentId

Remove a component

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/components/{componentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusComponentsSetState

PUT/v1/orgs/:orgId/status-pages/:pageId/components/:componentId/state

Set a component's state

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/components/{componentId}/state' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "state": "operational"
  }'
statusIncidentsList

GET/v1/orgs/:orgId/status-pages/:pageId/incidents

List incidents

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusIncidentsGet

GET/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId

Get an incident

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusIncidentsCreate

POST/v1/orgs/:orgId/status-pages/:pageId/incidents

Open an incident

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Example",
    "message": "example"
  }'
statusIncidentsEdit

PATCH/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId

Edit an incident

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Example",
    "impact": "none",
    "components": [
      {
        "componentId": "<componentId>",
        "state": "operational"
      }
    ]
  }'
statusIncidentsPublish

POST/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId/publish

Publish a draft incident

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}/publish' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusIncidentsDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId

Delete an incident

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusUpdatesCreate

POST/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId/updates

Post an incident update

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}/updates' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "message": "example"
  }'
statusUpdatesEdit

PATCH/v1/orgs/:orgId/status-pages/:pageId/incidents/:incidentId/updates/:updateId

Revise an incident update

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/incidents/{incidentId}/updates/{updateId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "message": "example"
  }'
statusTemplatesList

GET/v1/orgs/:orgId/status-pages/:pageId/templates

List incident templates

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/templates' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusTemplatesCreate

POST/v1/orgs/:orgId/status-pages/:pageId/templates

Add an incident template

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/templates' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "title": "Example",
    "message": "example"
  }'
statusTemplatesUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId/templates/:templateId

Change an incident template

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/templates/{templateId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "kind": "incident",
    "title": {}
  }'
statusTemplatesDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/templates/:templateId

Remove an incident template

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/templates/{templateId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusMonitorsList

GET/v1/orgs/:orgId/status-pages/:pageId/monitors

List a status page's monitors

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/monitors' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusMonitorsCreate

POST/v1/orgs/:orgId/status-pages/:pageId/monitors

Add a monitor to a status page

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/monitors' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "check": {}
  }'
statusMonitorsGet

GET/v1/orgs/:orgId/status-pages/:pageId/monitors/:monitorId

Get a monitor

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/monitors/{monitorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusMonitorsUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId/monitors/:monitorId

Change a monitor

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/monitors/{monitorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "intervalSec": {},
    "locations": {},
    "quorum": {},
    "failState": {},
    "enabled": {}
  }'
statusMonitorsDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/monitors/:monitorId

Delete a monitor

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/monitors/{monitorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusHeartbeatsList

GET/v1/orgs/:orgId/status-pages/:pageId/heartbeats

List a status page's heartbeats

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/heartbeats' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusHeartbeatsCreate

POST/v1/orgs/:orgId/status-pages/:pageId/heartbeats

Add a heartbeat to a status page

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/heartbeats' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "periodSec": 1
  }'
statusHeartbeatsUpdate

PATCH/v1/orgs/:orgId/status-pages/:pageId/heartbeats/:heartbeatId

Change a heartbeat

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/heartbeats/{heartbeatId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "graceSec": {},
    "failState": {},
    "enabled": {}
  }'
statusHeartbeatsRotate

POST/v1/orgs/:orgId/status-pages/:pageId/heartbeats/:heartbeatId/token

Give a heartbeat a new address

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/heartbeats/{heartbeatId}/token' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusHeartbeatsDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/heartbeats/:heartbeatId

Delete a heartbeat

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/heartbeats/{heartbeatId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusComponentsUptime

GET/v1/orgs/:orgId/status-pages/:pageId/components/:componentId/uptime

Get a component's daily uptime

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/components/{componentId}/uptime' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusSubscribersList

GET/v1/orgs/:orgId/status-pages/:pageId/subscribers

List a status page's subscribers

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/subscribers' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
statusSubscribersDelete

DELETE/v1/orgs/:orgId/status-pages/:pageId/subscribers/:subscriberId

Remove a status page subscriber

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/status-pages/{pageId}/subscribers/{subscriberId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"