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": []
}

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
»» pagenumbertruePage number of paginated results.
»» per_pagenumbertrueNumber 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?