Home
Overview

STOQ Docs

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

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

How do I integrate?

Quickstart

1. Get your API key

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.

Warning

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

2. Make your first call

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

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):

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.