Skip to main content

Storefront API base URL

For REST requests, use:
https://api.craveup.com/api/v1
All storefront operations are location-scoped and live under:
/locations/{locationId}/...

Sandbox availability

There is no separate sandbox server for Storefront API. Integrations connect to production API hosts with your scoped key.

SDK behavior in this repo

In @craveup/storefront-sdk, the default host is:
https://api.craveup.com
The SDK methods append /api/v1/... endpoint paths for you. You can still override with baseUrl when needed:
createStorefrontClient({
  apiKey: process.env.NEXT_PUBLIC_CRAVEUP_API_KEY!,
  baseUrl: process.env.NEXT_PUBLIC_API_URL, // optional override
})

Practical setup

  • Use different API keys per environment.
  • Keep base URL overrides minimal unless you are intentionally proxying traffic.
  • Validate your key/location pair early in app startup with a lightweight read endpoint.