GET/v1/status_pages/{status_page_id}

Retrieve a status page

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Required parameters

  • Name
    status_page_id
    Type
    string
    Description

    Status Page ID

Responses

StatusMeaningDescription
200OKRetrieve the specified OnlineOrNot Status Page
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» resultobjecttruenone
»» idstringtrueStatus Page ID
»» namestringtrueName of the Status Page
»» subdomainstringtrueThe subdomain your status page will be hosted at. For example "status" would become "status.yourdomain.com"
»» custom_domainstring(uri)falseThe custom domain your status page is hosted at. For example "https://status.yourdomain.com"
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Request

GET
/v1/status_pages/{status_page_id}
curl --request GET \
  --url https://api.onlineornot.com/v1/status_pages/a1b2c3d4 \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}'

Response

{
  "result": {
    "id": "a1b2c3d4",
    "name": "My Example SaaS",
    "subdomain": "status",
    "custom_domain": "https://status.yourdomain.com"
  },
  "success": true,
  "errors": [],
  "messages": []
}

POST/v1/status_pages/{status_page_id}

Update a status page

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Required parameters

  • Name
    status_page_id
    Type
    string
    Description

    Status Page ID

  • Name
    » name
    Type
    string
    Description

    Name of the Status Page

  • Name
    » subdomain
    Type
    string
    Description

    The subdomain your status page will be hosted at. For example "status" would become "status.onlineornot.com"

Optional parameters

  • Name
    body
    Type
    object
    Description

    undefined

  • Name
    » custom_domain
    Type
    string(uri)
    Description

    The custom domain your status page is hosted at.

  • Name
    » password
    Type
    string
    Description

    The password that will be required to view your status page

Body parameter

{
  "name": "My Example SaaS",
  "subdomain": "status",
  "custom_domain": "https://status.yourdomain.com",
  "password": "string"
}

Responses

StatusMeaningDescription
200OKUpdate an existing OnlineOrNot Status Page
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» resultobjecttruenone
»» idstringtrueStatus Page ID
»» namestringtrueName of the Status Page
»» subdomainstringtrueThe subdomain your status page will be hosted at. For example "status" would become "status.yourdomain.com"
»» custom_domainstring(uri)falseThe custom domain your status page is hosted at. For example "https://status.yourdomain.com"
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Request

POST
/v1/status_pages/{status_page_id}
curl --request POST \
  --url https://api.onlineornot.com/v1/status_pages/a1b2c3d4 \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}' \
  --header 'Content-Type: application/json' \
  --data '{"name":"My Example SaaS","subdomain":"status","custom_domain":"https://status.yourdomain.com","password":"string"}'

Response

{
  "result": {
    "id": "a1b2c3d4",
    "name": "My Example SaaS",
    "subdomain": "status",
    "custom_domain": "https://status.yourdomain.com"
  },
  "success": true,
  "errors": [],
  "messages": []
}

DELETE/v1/status_pages/{status_page_id}

Delete a status page

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Required parameters

  • Name
    status_page_id
    Type
    string
    Description

    Status Page ID

Responses

StatusMeaningDescription
200OKReturns the deleted OnlineOrNot Check's ID
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» resultobjecttruenone
»» idstringtrueStatus Page ID
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Request

DELETE
/v1/status_pages/{status_page_id}
curl --request DELETE \
  --url https://api.onlineornot.com/v1/status_pages/a1b2c3d4 \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}'

Response

{
  "result": {
    "id": "a1b2c3d4"
  },
  "success": true,
  "errors": [],
  "messages": []
}

GET/v1/status_pages/{status_page_subdomain}/summary

Get a status page's summary of its overall status, components, active incidents, and scheduled maintenance.

This operation does not require authentication

Required parameters

  • Name
    status_page_subdomain
    Type
    string
    Description

    The subdomain part of a status page's URL

Responses

StatusMeaningDescription
200OKRetrieve the specified OnlineOrNot status page summary
404Not FoundNot found
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» resultobjecttruenone
»» statusobjecttruenone
»»» descriptionstringtrueThe overall system's current status
»» status_pageobjecttruenone
»»» idstringtrueStatus Page ID
»»» namestringtrueName of the Status Page
»»» subdomainstringtrueThe subdomain your status page will be hosted at. For example "status" would become "status.yourdomain.com"
»»» custom_domainstring(uri)falseThe custom domain your status page is hosted at. For example "https://status.yourdomain.com"
»» components[object]truenone
»»» idstringtrueStatus Page Component ID
»»» namestringtruea name for the component
»»» statusstring,nulltrueStatus of the component
»»» display_uptimebooleantrueShow this component's uptime and historical incidents on the status page.
»»» display_metricsbooleantrueShow this component's response time metrics on the status page.
»»» created_atstringtrueWhen the component was created
»»» updated_atstringtrueWhen the component was last updated
»»» group_idstringtrueStatus Page Group ID
»» active_incidents[object]truenone
»»» idstringtrueStatus Page Incident ID
»»» titlestringtruea title for the incident
»»» impactstring,nulltrueImpact of the incident
»»» startedstringtrueWhen the incident started
»»» endedstringfalseWhen the incident was resolved
»»» created_atstringtrueWhen the incident was created
»»» updated_atstringtrueWhen the incident was last updated
»» scheduled_maintenance[object]truenone
»»» idstringtrueStatus Page Incident ID
»»» titlestringtruea title for the incident
»»» impactstring,nulltrueImpact of the incident
»»» startedstringtrueWhen the incident started
»»» endedstringfalseWhen the incident was resolved
»»» created_atstringtrueWhen the incident was created
»»» updated_atstringtrueWhen the incident was last updated
»»» start_datestringtrueWhen the scheduled maintenance is expected to start
»»» duration_minutesintegertrueHow long (in minutes) the scheduled maintenance should be displayed on your status page before being resolved automatically
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Enumerated Values

PropertyValue
descriptionMajor System Outage
descriptionMinor Service Outage
descriptionPartially Degraded Service
descriptionService Under Maintenance
descriptionAll Systems Operational
statusOPERATIONAL
statusMAJOR_OUTAGE
statusPARTIAL_OUTAGE
statusDEGRADED_PERFORMANCE
statusNO_IMPACT
statusMAINTENANCE
impactMAJOR_OUTAGE
impactPARTIAL_OUTAGE
impactDEGRADED_PERFORMANCE
impactNO_IMPACT
impactMAINTENANCE
impactMAJOR_OUTAGE
impactPARTIAL_OUTAGE
impactDEGRADED_PERFORMANCE
impactNO_IMPACT
impactMAINTENANCE

Request

GET
/v1/status_pages/{status_page_subdomain}/summary
curl --request GET \
  --url https://api.onlineornot.com/v1/status_pages/hackernews/summary \
  --header 'Accept: application/json'

Response

{
  "result": {
    "status": {
      "description": "All Systems Operational"
    },
    "status_page": {
      "id": "a1b2c3d4",
      "name": "My Example SaaS",
      "subdomain": "status",
      "custom_domain": "https://status.yourdomain.com"
    },
    "components": [
      {
        "id": "a1b2c3d4",
        "name": "Website",
        "status": "MAJOR_OUTAGE",
        "display_uptime": true,
        "display_metrics": true,
        "created_at": "2021-01-01T00:00:00.000Z",
        "updated_at": "2021-02-01T00:00:00.000Z",
        "group_id": "a1b2c3d4"
      }
    ],
    "active_incidents": [
      {
        "id": "a1b2c3d4",
        "title": "API is inaccessible",
        "impact": "MAJOR_OUTAGE",
        "started": "2021-01-01T00:00:00.000Z",
        "ended": "2021-02-01T00:00:00.000Z",
        "created_at": "2021-01-01T00:00:00.000Z",
        "updated_at": "2021-02-01T00:00:00.000Z"
      }
    ],
    "scheduled_maintenance": [
      {
        "id": "a1b2c3d4",
        "title": "API is inaccessible",
        "impact": "MAJOR_OUTAGE",
        "started": "2021-01-01T00:00:00.000Z",
        "ended": "2021-02-01T00:00:00.000Z",
        "created_at": "2021-01-01T00:00:00.000Z",
        "updated_at": "2021-02-01T00:00:00.000Z",
        "start_date": "2021-01-01T00:00:00.000Z",
        "duration_minutes": 60
      }
    ]
  },
  "success": true,
  "errors": [],
  "messages": []
}

POST/v1/status_pages

Create a status page

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Required parameters

  • Name
    » name
    Type
    string
    Description

    Name of the Status Page

  • Name
    » subdomain
    Type
    string
    Description

    The subdomain your status page will be hosted at. For example "status" would become "status.onlineornot.com"

Optional parameters

  • Name
    body
    Type
    object
    Description

    undefined

  • Name
    » custom_domain
    Type
    string(uri)
    Description

    The custom domain your status page is hosted at.

  • Name
    » password
    Type
    string
    Description

    The password that will be required to view your status page

Body parameter

{
  "name": "My Example SaaS",
  "subdomain": "status",
  "custom_domain": "https://status.yourdomain.com",
  "password": "string"
}

Responses

StatusMeaningDescription
200OKCreate a new OnlineOrNot Status Page
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» resultobjecttruenone
»» idstringtrueStatus Page ID
»» namestringtrueName of the Status Page
»» subdomainstringtrueThe subdomain your status page will be hosted at. For example "status" would become "status.yourdomain.com"
»» custom_domainstring(uri)falseThe custom domain your status page is hosted at. For example "https://status.yourdomain.com"
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Request

POST
/v1/status_pages
curl --request POST \
  --url https://api.onlineornot.com/v1/status_pages \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}' \
  --header 'Content-Type: application/json' \
  --data '{"name":"My Example SaaS","subdomain":"status","custom_domain":"https://status.yourdomain.com","password":"string"}'

Response

{
  "result": {
    "id": "a1b2c3d4",
    "name": "My Example SaaS",
    "subdomain": "status",
    "custom_domain": "https://status.yourdomain.com"
  },
  "success": true,
  "errors": [],
  "messages": []
}

GET/v1/status_pages

List all status pages

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Optional parameters

  • Name
    page
    Type
    string
    Description

    Page number of paginated results.

    Default: "1"

  • Name
    per_page
    Type
    string
    Description

    Number of items per page.

    Default: "20"

Responses

StatusMeaningDescription
200OKReturns a list of OnlineOrNot Status Pages
500Internal Server ErrorInternal Server Error

Response Schema

Status Code 200

NameTypeRequiredDescription
» result[object]truenone
»» idstringtrueStatus Page ID
»» namestringtrueName of the Status Page
»» subdomainstringtrueThe subdomain your status page will be hosted at. For example "status" would become "status.yourdomain.com"
»» custom_domainstring(uri)falseThe custom domain your status page is hosted at. For example "https://status.yourdomain.com"
» result_infoobjecttruenone
»» pagenumberfalsePage number of paginated results.
»» per_pagenumberfalseNumber of items per page.
»» countnumbertrueNumber of items on the current page.
»» total_countnumbertrueTotal number of items.
» successbooleantrueWhether the API call was successful
» errors[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone
» messages[object]truenone
»» codenumbertruenone
»» messagestringtruenone
»» typestringfalsenone

Request

GET
/v1/status_pages
curl --request GET \
  --url https://api.onlineornot.com/v1/status_pages \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}'

Response

{
  "result": [
    {
      "id": "a1b2c3d4",
      "name": "My Example SaaS",
      "subdomain": "status",
      "custom_domain": "https://status.yourdomain.com"
    }
  ],
  "result_info": {
    "page": 1,
    "per_page": 20,
    "count": 1,
    "total_count": 1
  },
  "success": true,
  "errors": [],
  "messages": []
}

Was this page helpful?