Queek docs
App capabilities

Platform and developer

Platform and developer capabilities for Queek apps: developer tools, authentication, webhooks and platform.

Capabilities for developer tools, authentication, webhooks and platform. 19 capabilities on this page.

Each entry says what the capability does, what is worth knowing about it, and how you reach it. Scope names are explained on Merchant API scopes; How to read this catalogue explains the layout.

Developer tools

Command-line app flow

Available

The command-line tool covers scaffolding, the tunnel dev loop with dev-installs (optionally previewed through a localhost page) and their cleanup, deploy, version release, review submission and spec codegen against the live merchant contract.

Good to know:

  • Automation tokens never substitute for dev-install routes.

  • Routes: POST api/v1/biz/vendor/developer/apps/{app}/dev-installs, DELETE api/v1/biz/vendor/developer/apps/{app}/dev-installs/{store}, GET api/v1/biz/vendor/developer/apps/{app}/versions, POST api/v1/biz/vendor/developer/apps/{app}/versions/{version}/release, POST api/v1/biz/vendor/developer/apps/{app}/versions/{sequence}/submit

  • Packages: @usequeek/cli

Dev stores and test data

Available

Developer-owned sandbox stores with a capped count, storefront password lock, rename and slug control, generated test data that can be re-run at any time to top up what is missing (pages, posts, menus, locales, orders, reviews, suppliers and more), a dev-install flow that refreshes the grant in place without re-consent, and day-one test orders: the dashboard Create Order, the Merchant API order create and the password-protected storefront checkout all work with no setup (a store needs no region to take an order), using simulated money only.

Good to know:

  • Capped per developer; sandboxes never transfer to merchants.

  • A dev store reaches nobody outside its own team: an order email goes out only when the customer is the store owner or a staff member who has accepted their invitation, signed in with a verified email (so you can test the templates on your own address), and a dev store never pages a delivery rider, never triggers lifecycle or marketing email from Queek, and never appears in public store lists. Webhooks to your installed apps and AI features keep working.

  • A dev store has every plan feature switched on by default (Test as all: POS, exports, roles and the other plan-gated capabilities), so you can build and test against them. Set Test as to a plan code (free, starter, ...) on create or PATCH dev-stores/{store} (owner only) and the store resolves exactly that plan's features, on every gate and in GET store plan; it is a preset for the sandbox, never a subscription, and nothing is billed. A live store only has the features of its plan, and a call to a plan-gated route there is refused with 403 subscription_feature_locked.

  • The seed holds products with variants and stock levels, collections, customers, coupons, shipping zones, pages, posts, menus and languages, ten dated orders in several payment and fulfilment states (paid online, paid in store, a bank transfer awaiting confirmation, cancelled, rejected, delivered), two paid orders with variant lines (each line carries its variant id and SKU), eight unpaid payment links (draft orders, listed under Orders > Awaiting payment until paid), reviews, one abandoned cart, a supplier and two purchase orders. Orders are dated across the last 58 days to give analytics a history; only the two paid variant orders carry variants on their lines.

  • A dev store’s plain test orders and analytics events older than 30 days are deleted every night; imported and generated test-data orders are kept for 120 days; the store, its catalogue and its keys are never pruned. Re-running the test data recreates a seeded order that was pruned, dated again from today.

  • Re-running the test data only creates what is missing; records you changed or added are never touched. Only the owner can run it, and an automation token cannot.

  • Orders on a dev store use simulated money only: cash is recorded without a provider, and an online payment lands on a hosted test page where you choose paid or declined. Nothing is ever charged or paid out. A dev store has no bank account, so Merchant API orders pay online (name a customer); bank transfer is refused with payment_method_unavailable.

  • Stock tracking starts off in a dev store, exactly as in a live store: it is the store's own setting (Settings > Inventory: Track, Untrack or Disabled; GET store reads it as inventory_tracking). With Track on, completing an order moves stock and writes the normal sale movement. A store with no region takes orders like any other: only the Queek marketplace needs a region, and a store's own channels stamp the one they detect, or none.

  • Routes: POST api/v1/biz/vendor/developer/dev-stores, POST api/v1/biz/vendor/developer/dev-stores/{store}/test-data, PATCH api/v1/biz/vendor/developer/dev-stores/{store}

  • Configuration: developer.max_dev_stores

App SDK (install, session, scopes)

Available

The app SDK covers install and webhook handling, the single embedded session-token model, typed merchant clients generated from the live spec, and the scopes catalogue.

Good to know:

  • The dashboard acts on five frame messages from an app: ready, resize, navigated, open and ack. It answers with token, theme, resize-ack, navigate and ai-action (the values of a Queek AI action the merchant opened).

  • The SDK also exports helpers for a title bar, toasts, a save bar and a product picker; the dashboard does not act on those messages today, so they change nothing on screen. Do not build on them.

  • The frame sandbox is allow-scripts, allow-forms and allow-same-origin: window.print, window.open, alert, confirm, prompt and the async clipboard do nothing. A copy button works only from a click handler through document.execCommand. Open a printable page in a new tab with the open message.

  • The frame is as tall as the height the page reports, between 120 and 1,600 pixels; the Queek UI kit is the @queek shadcn registry (queek-theme, queek-font, queek-style and blocks).

  • Routes: POST api/v1/apps/installations/{installation}/access_tokens

  • Packages: @usequeek/app-sdk

AI builder toolkit and live capacity doc

Available

The AI toolkit’s capacity skill fetches this live capability document before an app is designed, so the building model checks what the platform can do instead of trusting memory. Primitives are read from the code and the document is exported when the API container starts; until the file exists it is generated on request.

Good to know:

  • Only the capacity skill (queek-capacity) fetches the document; the other toolkit skills do not.

  • The needs and use cases are curated by Queek and checked against the code before each release; they can lag a change until that check flags them.

  • Routes: GET docs/capabilities.json

  • Repositories: usequeek/queek-ai-toolkit

Authentication

App-credential API

Available

Third-party servers authenticate with a short-lived signed app token to list installations, mint installation tokens and resync.

Good to know:

  • Per-app throttle after verify; per-IP failure bucket before verify.

  • An installation token reaches the Merchant API on every plan of a live store, including a plan whose own keys have no API access: the store's own keys and its custom domains keep that rule (403 plan_inactive).

  • Paid plan features stay gated per feature for an app exactly as for the merchant: the conversations endpoints answer 403 subscription_feature_locked on a plan without the inbox, and a store over its plan's business limit is write-locked (423) for every caller.

  • Routes: GET api/v1/apps/installations, POST api/v1/apps/installations/{installation}/access_tokens

Install lifecycle handoffs

Available

Signed server-to-server install, uninstall, resync, settings and scope-change events to the app URLs. Answer the install handoff first, then call Queek: while it is in flight the installation is pending, so a token mint inside it gets 409 app_installation_pending, the handoff times out and the install fails with 424 app_handoff_failed. The uninstalled handoff carries data.reason store_deleted when the whole store is deleted; a merchant uninstall sends no reason.

Good to know:

  • Bounded by the handoff timeout; installations flip active only after the app answers success.

  • Delivery of the uninstalled handoff is queued and retried with backoff, and a store deletion does not wait for the app to answer.

  • Handoff events: app/installed, app/uninstalled, app/resync, app/scopes_update, app/settings_updated

Optional scopes (request at runtime)

Available

Install grants required scopes only; optional scopes are requested after install and approved by the merchant, revocable by the app, and an approval or a revocation is announced over the signed scope-change handoff. A merchant who declines changes nothing and the app is sent nothing.

Good to know:

  • Required scopes are never revocable; the merchant remedy is uninstall.

  • Routes: POST api/v1/biz/vendor/app-store/{slug}/scopes/approve, POST api/v1/apps/installations/{installation}/scopes/revoke

  • Manifest: optional_scopes

Embedded session tokens

Available

Short-lived signed tokens per installation and user for framed pages. There are no refresh tokens; the app fetches a fresh token per need.

Good to know:

  • Fetch a fresh token per need; replay window is bounded and documented.

  • Configuration: apps.session_token_ttl

Webhooks

Abandoned-cart topics

Available

An app can read abandoned checkouts and subscribe to checkouts/create and checkouts/update. A signed-in customer's cart is reported once it has been unchanged for the idle delay (60 minutes by default). With merchant-checkouts-payments-read (and merchant-checkouts-read) the list also reads unpaid checkouts (orders never paid) with their total and a payment link, and payment_checkouts/create reports each such order once. Shopper messages have their own topic, conversation_messages/create.

Good to know:

  • Events fire after a cart has been unchanged for the delay, not when it is created or edited, and a cart that keeps changing is not reported.

  • Only carts of signed-in customers with a record at the store are reported, and only ones changed in the last 72 hours; guest carts, carts written only on the Queek marketplace, empty carts, carts not edited since this launched and carts of a customer the merchant deleted are not.

  • A customer who placed an order after the cart last changed is not reported. An unpaid online payment is an order that is not yet placed: it is never in orders/* webhooks or GET orders, and it is read with GET abandoned-checkouts?stage=payment (needs merchant-checkouts-payments-read; orders a signed-in customer left unpaid past the unpaid-checkout delay and inside the maximum age, one row per customer). Marketplace orders and staff payment links are not listed there; the store dashboard shows marketplace ones under abandoned orders.

  • A cart first built on the marketplace and later edited on the store's own channel is reported from that edit on.

  • Delivery and the read need the merchant-checkouts-read grant; name, email and phone are null without merchant-customers-contact-read.

  • A cart row's link is the store's checkout page, the same for every shopper, who signs in to see their cart; cart rows carry no prices. A payment row carries the order total in the store's currency and recovery_url, the order's payment page, present only for an online order that can still be paid. recovery_url does not expire and cannot be revoked, except that it is null for an order in a market whose exchange rate has expired (the shopper places the order again): treat it as a secret. A row is keyed by stage plus id.

  • Delivery is at least once. An app added later is not sent carts already reported; it catches up with the list. A page walk is not a snapshot.

  • payment_checkouts/create needs BOTH merchant-checkouts-read and merchant-checkouts-payments-read (an app holding only one receives nothing) and sends the same row as GET abandoned-checkouts?stage=payment after the unpaid-checkout delay. There is no update event: recovered = the orders/create webhook for the same order id (the row's order.id). An order paid, cancelled or followed by a later order before delivery sends nothing and is not retried. Delivery: sent once per unpaid checkout in normal operation; a delivery can occasionally be missed (infrastructure failure after the checkout is claimed) or arrive twice (retries): deduplicate by (topic, order id), and use GET abandoned-checkouts?stage=payment to reconcile. Delivery payloads, recovery_url included, are kept in the store's webhook delivery log until webhooks:prune-deliveries removes them (daily; 7 days by default, WEBHOOK_RETENTION_DAYS).

  • Routes: GET api/v1/merchant/abandoned-checkouts

  • Scopes: merchant-checkouts-read, merchant-checkouts-payments-read

  • Webhooks: checkouts/create, checkouts/update, payment_checkouts/create

Webhook topics and delivery

Available

Apps subscribe to topics across orders, products, customers, inventory levels, locales, markets, translations, refunds, returns, invoices, abandoned and unpaid checkouts, shopper messages and store changes; the full list is primitives.webhook_topics. Deliveries are signed and sent to a DNS-pinned address, retried over a multi-hour horizon, with per-install echo suppression: a write made through your own installation is not delivered back to it, except store/update, which folds several writers into one event and is never suppressed.

Good to know:

  • Topics that carry customer or shopper details are additionally gated by a privacy kill-switch: customers/create, customers/update, customers/delete, the two marketing-consent topics, checkouts/create, checkouts/update, payment_checkouts/create, conversation_messages/create and invoices/create, update and delete. The privacy obligations customers/data_request and customers/redact are never gated.

  • Webhooks: orders/create, orders/paid, products/update

Delivery retries, replay and ordering

Available

Deliveries are signed, retried with backoff, and carry an event id that a retry reuses; an endpoint that keeps failing is disabled. Delivery replay exists in the merchant dashboard only.

Good to know:

  • Deliveries are at-least-once and unordered; reconcile after any missed delivery.
  • Replay is available in the merchant dashboard only, not through the Merchant API.
  • A replay creates a new event id, so event-id deduplication alone does not make an operation idempotent.

Lifecycle handoffs (install, uninstall, resync, settings, scopes)

Available

Install, uninstall, resync, settings and scope-change events reach an app as signed server-to-server handoffs to the URLs in its manifest. They are handoffs rather than webhook topics because an uninstalled app’s endpoint no longer exists.

Good to know:

  • Handoffs need declared install and uninstall URLs and are verified by signature; they cannot be subscribed to as topics.

  • Handoff events: app/uninstalled

Erasure and redaction topics

Available

A merchant can ask, from a customer's profile in the dashboard, for the customer's data (a data request, sent at once) or for the customer's personal data to be erased (an erasure, which waits ten days so it can be cancelled, and is held until 180 days after the customer's last order). The topics customers/data_request and customers/redact carry ids only and are delivered to every active install whose manifest declares them, with no scope or approval line. Shop redaction is the app/uninstalled handoff with data.reason set to store_deleted, sent when a store is deleted.

Good to know:

  • Both requests are filed by the merchant in the dashboard. An app cannot file one, and deleting an account in the Queek mobile app does not send anything to the stores that customer bought from.

  • The payload has ids only: the request id, the customer id, the customer's order ids (capped, with orders_truncated) and the request time. It never carries a name, email or phone, so an app that stored data keyed only by something it collected itself cannot be addressed by id.

  • Delivery is at-least-once: dedupe on data.id, which a retry or a resend after a crash reuses. Delivery follows the webhook retry schedule and stops when the app's endpoint is disabled; Queek does not wait for the app to answer and does not track completion.

  • An install whose manifest listed no webhook topics when it was installed has no endpoint and cannot receive these topics until it is reinstalled.

  • The erasure notice is sent when the request falls due, then Queek anonymises its own copy for that store only. Queek keeps the financial order record (customer links and addresses removed), records tied to the customer's global platform account (reviews, ratings, comments, bookmarks, assistant threads) and messaging-gateway transcripts.

  • customers/delete means removed from the store's directory, not erased.

  • The store-deleted handoff is sent once per installation, after the 14-day grace period, and the store name in it reads as a deleted store. Delivery is queued and retried with backoff, and a store deletion does not wait for the app to answer.

  • Webhooks: customers/data_request, customers/redact, customers/delete

  • Handoff events: app/uninstalled

Platform

Analytics reads

Available

Apps can read up to 30 days of anonymous storefront traffic, and sales, product and customer aggregates for ranges of up to 90 days.

Good to know:

  • Sales, product and customer reads cover whole days, at most 90 days, ending no later than today. Answers are cached for up to three minutes and shared by every app of the store, so a new order can take that long to show.

  • Each installation may make 20 analytics reads a minute and 1,000 a day across the sales, products and customers routes; a cached answer counts too.

  • Customer analytics are counts, rates and one average: no customer, name or contact is returned. Sales leaves out net revenue, fees and settlements, which are payments data.

  • There is no event ingestion, report builder or query language, and no row-level order, product or customer export through analytics.

  • Routes: GET api/v1/merchant/analytics/traffic, GET api/v1/merchant/analytics/sales, GET api/v1/merchant/analytics/products, GET api/v1/merchant/analytics/customers

  • Scopes: merchant-analytics-traffic-read, merchant-analytics-sales-read, merchant-analytics-products-read, merchant-analytics-customers-read

App-owned files and uploads

Available

Apps can upload JPEG, PNG and WebP images, list the images uploaded by the same app connection, change their alt text, see where each one is used in the store and delete the ones nothing uses.

Good to know:

  • Each upload is one JPEG, PNG or WebP image up to 10 MiB, 4,472 pixels on either side and 6 megapixels.

  • Store up to 500 images.

  • Make up to 300 uploads per day and 10 per minute.

  • Use up to 256 MiB of storage counting generated sizes at three times the original.

  • An app can change and delete only the images its own installation uploaded; images the merchant uploaded, or another app uploaded, answer not found.

  • Only the alt text of an image can be changed. To replace a picture, upload a new image, move its users to it and delete the old one.

  • An image used on a product (any image slot, a gallery, a video poster or a variant image), as the store logo or banner, or in a metafield value cannot be deleted: the answer is a conflict that lists those places. An app can never detach an image from them.

  • Images placed on a storefront page or in a theme setting by address rather than by id are not tracked, so deleting such an image breaks that placement.

  • Apps cannot upload documents or animated images, import a file from a URL, or accept shopper uploads.

  • Routes: GET api/v1/merchant/files, POST api/v1/merchant/files, PATCH api/v1/merchant/files/{file}, GET api/v1/merchant/files/{file}/references, DELETE api/v1/merchant/files/{file}

  • Scopes: merchant-media-read, merchant-media-create, merchant-media-update, merchant-media-delete

Point-of-sale sales

Available

Point-of-sale sales are ordinary store orders: they reach an app through the orders webhooks and the orders API, marked with the platform value pos, so an app can reconcile, report on or export them.

Good to know:

  • Nothing an app builds appears inside the POS: it is Queek’s own client.

  • Required shopper line text is not asked at the point of sale; a required single-use app claim is still enforced there.

  • Routes: GET api/v1/merchant/orders

  • Scopes: merchant-orders-read

  • Webhooks: orders/create, orders/paid

Live chat inside a storefront embed

Available

An app runs its own socket server inside a storefront embed for live chat on the storefront. It is told of new shopper messages in the store’s WhatsApp, Instagram and Telegram threads by the conversation_messages/create webhook and replies through the conversations API, on a store plan that includes the inbox.

Good to know:

  • Apps cannot publish to Queek’s own merchant or storefront channels or subscribe to visitor presence or typing.

  • A chat an app runs in its own storefront embed stays in the app: Queek sees and stores only the WhatsApp, Instagram and Telegram threads.

  • Routes: POST api/v1/merchant/conversations/{conversation}/messages

  • Webhooks: conversation_messages/create

Registerable sales channels

Available

Apps can register channel publications and curate products and collections through the Merchant API, and imported orders carry publication attribution. Product search can be narrowed to one of the app’s publications. A headless or mobile app sells through the store’s own client API key; its orders are not attributed to a publication unless the app imports them.

Good to know:

  • At most 10 active publications per installation.

  • At most 50 refs per write.

  • Only the store’s own collections can be published; global collections are refused.

  • Filtering by collection and publication covers manual collections only; smart collection membership is not listable.

  • Built-in sales channels are managed by Queek and cannot be changed by apps.

  • Product search can be narrowed to one of the calling installation’s publications (publication = its p_id or key); another app’s or an unknown publication answers 404, an archived one 410, and a search cursor is bound to that publication.

  • Checkout attribution is not provided: an order’s publication is set only by the order import, and there is no shopper checkout context for it.

  • Additions appear through a publication plus updated_after read; removals are found only by reconciling the full list, and collections are re-listed.

  • Nothing is pushed to the app.

  • Routes: GET api/v1/merchant/publications, POST api/v1/merchant/publications, PATCH api/v1/merchant/publications/{publication}/resources

  • Scopes: merchant-publications-read, merchant-publications-create, merchant-publications-update

App versions, review and release

Available

Apps keep immutable versions with versioned config, release control and review submission. Version history, review status, reviewer notes and the review thread can be read through the developer routes, and releasing an earlier approved version makes it current again, so a rollback needs no new review.

Good to know:

  • There is no separate rollback operation: releasing an earlier approved version of the app makes it current again, without a new review.

  • Routes: POST api/v1/biz/vendor/developer/apps/{app}/versions/{version}/release, POST api/v1/biz/vendor/developer/apps/{app}/submit

On this page