Pages


List pages

GET /{website-id}/settings/pages

This gives you a list of the pages added for the website:

200 OK
{
"result": {
"list": [
{
"url": "/",
"alias": "Home",
"id": "pnu2bpyaqy"
},
{
"url": "/pricing/",
"alias": "Pricing",
"id": "jtf0xtvwj4"
},
...
]
}
}

Add new pages

You can add multiple pages with a single API call:

POST /{website-id}/settings/pages
[
  {
    "url": "/",
    "alias": "Home"
  },
  {
    "url": "/products",
    "alias": "Products"
  },
  {
    "url": "/support",
    "alias": "Support"
  }
]

The response will contain the list of pages, including the internal ID that has been assigned to them:

200 OK
[
{
"id": "5w50axyv53",
"url": "/",
"alias": "Home"
},
{
"id": "1ivf9rsnam",
"url": "/products",
"alias": "Products"
},
{
"id": "uwz5e5xqlx",
"url": "/support",
"alias": "Support"
}
]

Update page

Updates the URL and/or alias of a page. admin

PUT /{website-id}/settings/{page-id}
{
  "url": "/products/shoes",
  "alias": "Product category"
}

If successful, you'll get a 204 No Content response.

Delete page

Removes a page from your website, along with all test results. admin

DELETE /{website-id}/settings/{page-id}

If successful, you'll receive a 204 No Content response.