List what is in the bin
const url = 'https://example.com/storefront/bin?kind=page';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/bin?kind=page' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Shop pages, blog posts and menus deleted in the last 90 days, most recently deleted first, with who deleted each, when, and when it goes for good; with kind, one kind only. The daily job removes each 90 days after it was deleted. The lists of pages and posts show theirs too, with status=bin.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”What is in the bin
object
object
The bin entry, for restoring or deleting for good.
Its title or name when it was deleted.
object
Person: someone signed in. key: an API key. assistant: an app connected over MCP. support: Bottle staff in a support session the business allowed.
The person’s name then, or the key’s or the app’s.
When it is removed for good.
A page or post that was on the shop when it was deleted. It comes back as a draft: publish it again to put it back.
Example
{ "items": [ { "kind": "page", "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"}