Loading WardrobeIt

Merchant API keys and storefront plugin keys

Store-scoped keys authenticate the widget and plugin API against one Shopify catalog. Create, copy, and rotate keys in the Merchant Portal. This public page never issues or displays live secrets.

Distinct merchant and storefront access objects in a divided credential tray.

Two keys, two surfaces , same store tenant

Separate browser authentication from backend access. Each Shopify store has its own catalog context and credentials; one key must not grant access to another merchant’s products.

Browser surface

Storefront plugin key

ss_live_…

Authenticates the deferred widget and documented plugin requests for one merchant store. Use the store-scoped credential issued for storefront traffic.

  • Passed as data-api-key in the approved theme script
  • Sent as X-API-Key with X-WardrobeIt-Visitor on documented plugin routes
  • Keep stores and environments separate, and rotate if exposure is suspected
Server only

Merchant API key

sk_live_…

A separate credential for approved backend integrations where developer credentials are enabled. It does not belong in the shopper browser.

  • Keep on your server, outside public repositories and browser bundles
  • Never embed in Shopify theme Liquid or client-side JavaScript
  • Use the scopes and authentication contract supplied during merchant onboarding

One store tenant, separate credential surfaces.

Search, outfits and eligible try-on must stay inside the connected merchant catalog. The documented prefixes above are illustrative; use the credentials issued for your workspace, never an example value.

Create, embed, rotate, revoke

Connect, issue, save, embed, verify and manage credentials through the approved Merchant Portal workflow. These are operating instructions, not live key controls.

Connect the approved store

Use the current custom-app Admin API token workflow inside Merchant Portal. Confirm the permanent myshopify.com domain and supported catalog synchronization. Do not expose the Admin token in theme code.

Create and save the storefront key

Use the supported store-scoped plugin-key workflow. Full values are shown once where implemented; save the issued credential securely before closing the panel. This public page never creates or retrieves a key.

Embed the correct credential

Place only the storefront widget key in data-api-key, along with the API base and script URL supplied for that environment. Follow the approved theme-script guide.

Validate on the storefront

Test a message, merchant product card, valid variant and supported cart action on the intended homepage, collection and product pages. Try-on appears only for eligible products and configuration.

Rotate or revoke through the portal

If exposure is suspected, follow the supported rotation workflow and update the theme configuration. Revoke unused keys when decommissioning, and keep development and production credentials separate.

Where keys live and how the theme uses them

Copy the right credential into the right attribute. Keep example values, different store keys and server-only secrets out of the production storefront configuration.

Configuration reference

Retrieve the supported configuration for the correct store in Merchant Portal. The Shopify Admin token stays in the secure connection workflow; server-only merchant API keys stay on your backend.

Widget API key

YOUR_STOREFRONT_KEY

The browser-scoped credential for the connected store.

API base URL

https://YOUR_HOST/api/v1

The approved API environment supplied during onboarding.

Widget script URL

https://YOUR_HOST/static/wardrobeit-widget.js

The approved script location for the same environment.

Product-page context

data-page-type / data-product-id

Use supported page context and the confirmed catalog identifier where needed.

Credential examples
Illustrative storefront attribute placement
<script src="https://YOUR_HOST/static/wardrobeit-widget.js"
  data-api-key="YOUR_STOREFRONT_KEY"
  data-api-base="https://YOUR_HOST/api/v1"
  defer></script>

Use the full installation guide for page contexts, the supported Liquid fallback and any wardrobeit.id product mapping. The current Theme Embed route is a theme script, not an assumed OAuth/App Store or theme-app-embed installation.

Protect credentials and know the boundaries

Plugin keys are store-scoped and designed for storefront traffic , still rotate if leaked. CORS restricts origins. Visitor identity uses a hashed header, not email, on plugin routes.

Can I retrieve a key after closing the creation panel?

No , full values display once. Rotate to generate a new key if you did not save the original.

Is the plugin key safe in theme Liquid?

Yes for ss_live_… storefront keys , that is the intended embed model. Never put sk_live_… merchant API keys in Liquid or client-side JavaScript.

What headers does the plugin API expect?

X-API-Key: ss_live_… plus X-WardrobeIt-Visitor (hashed visitor id). See the developer API section for endpoint reference.

Who do I contact for onboarding help?

Commercial questions: Contact. Technical onboarding (API host, CORS, metafields): your WardrobeIt counterpart or Book a Demo.