Shopnex
API

Admin API & tokens

Call the Admin REST API with scoped tokens.

In Settings → API tokens (owners and admins), create a secret token (sk_…). It is shown once and stored as a SHA-256 hash.

curl https://shop.example.com/api/v1/admin/shop \
  -H "Authorization: Bearer sk_…"

Scopes

ScopeAccess
read_products / write_productsproducts, variants, collections
read_orders / write_ordersorders
read_customers / write_customerscustomers
read_discounts / write_discountsdiscounts

Write includes read. GET /admin/shop works with any token.

Never reachable with a token: shop settings, staff, storefront keys, API tokens, and shipping, payment and tax settings. Routes opt in with scoped('read_orders') or adminOrToken in modules/api/src/orpc.ts; admin and shopManager stay session-only.

On this page