Skip to main content
UrbnBox accepts API keys in the X-API-Key header.

Secret keys

Use a secret key for calls from your backend. Secret keys can create shipments and access partner-owned resources. Test secret keys begin with ub_test_. Live secret keys begin with ub_live_. Vendor console API keys (created under Integrations in the vendor dashboard) begin with ubx_ and have no test/live segment.
Never expose a secret key in HTML, client-side JavaScript, a mobile application, logs, or source control.
Store the key in your deployment platform’s secret manager or an environment variable.

Publishable keys

Use a publishable key only with the checkout widget and public locker-booking endpoints. Test publishable keys begin with ubp_test_. Live publishable keys begin with ubp_live_. UrbnBox validates the request’s Origin header against the origins configured for the key. Add every checkout origin, including each staging origin, to the key’s allowlist.

Authentication errors

Shopify callbacks use X-Shopify-Hmac-Sha256 instead of an UrbnBox API key. Shopify generates this signature from the raw request body.