Skip to content

STOQ Docs

Preorders & back-in-stock for Shopify — REST APIs, the v2 action API, a JavaScript SDK, theme metafields, and an MCP server.

Last updated

STOQ

Preorders & back-in-stock for Shopify. Pick your path below, or browse a section from the top nav.

In the STOQ app, go to Settings → Integrations → API Key and copy the key. Send it in the X-Auth-Token header on every request — keep it secret.

Never expose your API key in browser/client code. For storefronts, the JavaScript SDK authenticates with your shop’s public Storefront API token instead.

Create a back-in-stock signup — the one public endpoint (no key; identified by the shop domain):

Terminal window
curl -X POST https://app.stoqapp.com/api/v1/intents.json \
-H "Content-Type: application/json" \
-H "X-Shopify-Shop-Domain: my-store.myshopify.com" \
-d '{ "intent": { "email": "shopper@example.com", "variant_id": 43900910010503 } }'

List your preorder offers with the action-driven v2 API (uses your key):

Terminal window
curl https://app.stoqapp.com/api/v2/external/preorders/offers \
-H "X-Auth-Token: $STOQ_API_KEY"

That’s it. From here, follow your path above — or see API Key and Rate Limits for the details.

Was this page helpful?

Still stuck? Ask Quinn or chat with support