GraphQL Playground
Interactive GraphiQL IDE in the Store Admin Console and local development playgrounds
GraphQL Playground
xclade gives you interactive GraphQL exploration both inside your live store's Admin Console and in local development environments.
1. Embedded GraphiQL IDE (Production & Staging)
Every store ships with a built-in GraphQL Playground inside the Store Admin Console at:
https://{shortId}.api.myxclade.com/appBecause production introspection is disabled for anonymous callers by default (GRAPHQL_ALLOW_INTROSPECTION=false), authenticating as a Store Admin inside /app automatically unlocks:
- Full live schema introspection & autocomplete for all 53 Storefront queries and 45 mutations
- Publishable API Key / Sales Channel selector
- Ready-to-run query recipes for catalog, contextual pricing, carts, checkout, and B2B flows
- Automatic
X-GraphQL-Request: trueheader injection
2. Local Development Playgrounds
When running xclade-store-backend in development mode (IsDevelopment()), the Go router automatically mounts interactive gqlgen playgrounds for both schemas:
| Path | Target Schema |
|---|---|
GET /playground | Storefront & B2B GraphQL (/graphql) |
GET /admin/playground | Merchant Admin GraphQL (/admin/graphql) |
In production, /playground and /admin/playground are intentionally omitted and unauthenticated introspection (__schema, __type) is blocked by XcladeGraphQLArmor.
3. Testing with curl or Hoppscotch / Insomnia
Include your Publishable API Key and CSRF marker header:
curl -X POST https://{shortId}.api.myxclade.com/graphql \
-H "Content-Type: application/json" \
-H "X-Xclade-Publishable-Key: pk_live_..." \
-H "X-Xclade-Request: true" \
-d '{"query":"query { regions { regions { id name currency_code } } }"}'