Storefront API key
Every request must include your Storefront API key in theX-Api-Key header:
sfk_.
Customer authentication
Endpoints that read or modify a specific customer’s data — their appointments, orders, and profile — additionally require a customer access token as a Bearer token:Sign in
Exchange a customer’s credentials for a token pair:Refresh tokens
Access tokens expire. Get a fresh pair by calling the refresh endpoint with the refresh token as the Bearer token:All auth endpoints
See the API reference for full request and response shapes.
Which endpoints need a customer token?
Customer-scoped endpoints — appointments, orders, and self-service profile management — require a customer Bearer token. Catalog endpoints (products, availability, staff members, locations, collections, store settings) need only the API key.Cart and checkout endpoints accept an optional customer token: guests can book without an account, and checkout can return auth tokens for new customers so they’re signed in automatically after their first booking.
Error responses
Errors use conventional HTTP status codes with a JSON body:Security checklist
- Store
sfk_keys in environment variables, never in client bundles or repositories. - Call the Storefront API from your server (API routes, server components, edge functions) and keep the key out of browser network requests.
- Store customer refresh tokens in
httpOnlycookies rather thanlocalStoragewhere possible. - Rotate API keys from the dashboard if a key is ever exposed.