Sandbox
Build and test against the same API with no real account.
Make a sandbox key (gw_test_…) in the console. Every
call goes through the same routes, checks, limits and events as live; only LinkedIn,
WhatsApp and the mail servers are played by Swarmhit.
- Sandbox accounts are apart from live ones: a sandbox key sees only sandbox accounts and a live key never sees them. They are never billed.
- Their events reach your sandbox webhook, set apart from the live one, each with
livemode: false.
Connect with any email and password and the account is connected at once, with a small world of fake people, conversations, invitations and posts that your calls change (a message you send is in the conversation; an invitation is in the sent list).
Test credentials, like test cards:
| Use | And get |
|---|---|
| Any email and password | Connected at once |
Password checkpoint | An OTP checkpoint: answer it with 123456 (any other code is wrong) |
Password wrong | Refused as bad credentials |
An email starting with restricted | Refused as restricted (403 restricted) |
Link a number and it shows a QR, then links itself a few seconds later. Every number is on WhatsApp, and what you send is delivered, then read.
Connect a mailbox with any servers; a password (or OAuth token) of wrong is refused as
bad credentials.
What they would do on their own
The Sandbox operations play what the other side would do (a reply, an accepted invitation, a new mail): LinkedIn, WhatsApp, email. The events reach your sandbox webhook.