List the shop’s pages
const url = 'https://example.com/storefront/pages?status=published&changes=true&sort=updated&dir=asc';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/storefront/pages?status=published&changes=true&sort=updated&dir=asc' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>The pages the business has written, without bodies: every one not in the bin by title, or searched (q: title, address and words), filtered (status published, draft or bin; changes=true for pages with changes not published), sorted (updated, title, published; dir) and paged (limit up to 100, offset). With total, how many match, and counts, how many on each of published, draft and bin for the same search. A page in the bin carries bin: when, by whom, the days left and the entry to restore it with (POST /storefront/bin/{id}/restore).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Words to look for in the title, the address and the words.
Words to look for in the title, the address and the words.
Published: on the shop. draft: not on the shop. bin: deleted in the last 90 days. Left out: every one not in the bin.
Published: on the shop. draft: not on the shop. bin: deleted in the last 90 days. Left out: every one not in the bin.
Pages only: true for those with changes not published.
Pages only: true for those with changes not published.
Updated (the default): last changed first. title: A to Z. published: newest first. With dir to turn it round.
Updated (the default): last changed first. title: A to Z. published: newest first. With dir to turn it round.
Up to 100. Left out: all of them.
Up to 100. Left out: all of them.
Posts only: dated this day or after.
Posts only: dated this day or after.
Posts only: dated this day or before.
Posts only: dated this day or before.
Posts only: written by this name, as the post shows it.
Posts only: written by this name, as the post shows it.
Responses
Section titled “Responses”The pages
object
object
UUID v7
Draft: only the business sees it, in the preview. published: on the shop.
object
object
object
Example
{ "items": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "status": "draft", "bin": { "deletedBy": { "kind": "person" } } } ]}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}The plan does not include a shop
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}