Overview
Doshi runs two environments: production and sandbox. Sandbox is a fully isolated environment for testing your integration without touching production data. Each environment has its own embed host (the iframe / webview URL) and its own API host. The API hosts are already selectable from the server dropdown in the Client API reference — sandbox embed works the same way, just with a different host.Hosts
| Environment | Embed (iframe / webview) | API |
|---|---|---|
| Production | https://embed.v2.doshi.app | https://api.doshi.app |
| Sandbox | https://sandbox.embed.doshi.app | https://sandbox.api.doshi.app |
Switching to sandbox
Your client token is the same in both environments — there’s no separate
sandbox key. To test against sandbox, just point the iframe at
https://sandbox.embed.doshi.app. Nothing else in your integration changes.embed.v2.doshi.app to run against sandbox.
One thing to watch: origin checks
If you point the iframe at sandbox, the origin you verify in yourmessage
listener — and the targetOrigin you pass to postMessage — must match the
sandbox host. A listener hardcoded to https://embed.v2.doshi.app will
silently reject messages coming from https://sandbox.embed.doshi.app.
The simplest approach is to allow both hosts:
Next Steps
Quick Start
Complete walkthrough with examples
Security
Origin verification and token handling
