Authentication

API keys, scopes, and security best practices.

API Keys

Every request to the Whatalo API must include an API key in the X-API-Key header.

curl https://api.whatalo.com/v1/products \
  -H "X-API-Key: wk_live_abc123..."

Key Formats

PrefixEnvironmentUsage
wk_live_ProductionReal store data, full rate limits
wk_test_TestSame data, lower rate limits

Creating Keys

API keys are created from the store dashboard at Settings > Developer > API Keys. Each key is assigned specific scopes that control what it can access.

API keys are shown only once at creation time. Store them in a secure secrets manager — never hardcode them in source code.

Scopes

Scopes define what resources an API key can access. Use the minimum scopes required for your integration.

ScopeAccess
read:productsList and read products, variants
write:productsCreate, update, delete products
read:ordersList and read orders
write:ordersUpdate order status
read:customersList and read customers
write:customersCreate and update customers
read:storeRead store information
read:categoriesList and read categories
write:categoriesCreate, update, delete categories
read:discountsList and read discounts
write:discountsCreate, update, delete discounts
read:webhooksList webhook endpoints
write:webhooksCreate, update, delete webhooks

Security Best Practices

  1. Never expose keys in client-side code — API keys should only be used server-side
  2. Use test keys for development — switch to live keys only in production
  3. Rotate keys periodically — revoke unused keys
  4. Use minimum scopes — request only the scopes your integration needs
  5. Monitor usage — check the Developer Dashboard for unusual activity

OAuth 2.1

For integrations that act on behalf of merchants (third-party apps, MCP clients, multi-tenant SaaS integrations), Whatalo provides a complete OAuth 2.1 Authorization Server with Dynamic Client Registration, mandatory PKCE, refresh token rotation, introspection, and revocation.

The full OAuth documentation is in its own section: OAuth 2.1 →

On this page