Skip to main content
Use the sandbox environment to develop and QA widget embeds without affecting live review data.

Sandbox credentials

Create a sandbox API client in Integrations → API Clients with environment set to Sandbox. Sandbox clients return mock review data from the EthioReview API — no production reviews are exposed.

Sandbox widgets

Create widgets with environment Sandbox in Integrations → Widgets. Rules:
  • pk_test_* only resolves sandbox widgets
  • pk_live_* only resolves production widgets
  • Mixing keys and widget environments returns 403 Forbidden

Local development

  1. Create a sandbox API client
  2. Add http://localhost:3000 (and your dev port) to allowedOrigins
  3. Create a sandbox widget and copy widgetId
  4. Embed with sandbox credentials:

Environment variables

Go live

  1. Create a production API client (pk_live_*)
  2. Add production domains to allowedOrigins
  3. Create production widgets or clone sandbox config
  4. Swap env vars to pk_live_* and production widgetId
  5. Remove sandbox keys from production builds
Credentials → · Widget registry →