Get started
Sandbox
Build and test your integration with free scans that return canned results. Nothing is analyzed or billed.
What sandbox is
A sandbox key calls the same /v1 endpoints as a live key, and Red checks scan fields the same way. The differences: no balance check, a daily scan limit, and no set_ids, job group writes, interview check writes or webhook endpoints. When it creates a scan, Red never fetches the media. About 3 seconds later the scan finishes with a canned result copied from Red's sample interviews, in the result contract you asked for. The transcript and video on the result come from the sample too.
Sandbox scans are free: billable_minutes is always 0 and the workspace needs no payment method. Every scan carries livemode, which is false for sandbox scans.
export RED_API_KEY="<YOUR_API_KEY>"
curl -X POST "https://red-api.apps.heymilo.cloud/v1/scans" \
-H "x-api-key: $RED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://storage.example.com/interviews/final-round.mp4",
"external_id": "sandbox-test-1",
"sandbox_scenario": "flagged"
}'{
"scan_id": "8F3A91C24D7E0B5A6C1D9E2F3B4A5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A2B",
"external_id": "sandbox-test-1",
"metadata": {},
"participants": [],
"set_ids": [],
"last_heartbeat_at": null,
"error": null,
"livemode": false,
"created_at": "2026-09-24T10:12:03Z",
"status": "PENDING",
"media_status": "pending",
"progress": null,
"progress_status": null,
"billable_minutes": 0,
"result": null,
"completed_at": null
}Create a sandbox key
On the API keys page, choose Create key and pick Sandbox. Sandbox keys start with HM-RED-SANDBOX-, carry a Sandbox badge in the list, and take the same scopes as live keys. Paste one into the key bar above to run the samples on this page.
Pick an outcome
Send sandbox_scenario on POST /v1/scans to choose what the scan returns. It defaults to clean. A live key that sends it gets 422.
| Scenario | Status | What you get |
|---|---|---|
clean | COMPLETED | A low risk verdict with no findings to act on. |
flagged | COMPLETED | A high risk verdict with findings and evidence, so you can test your review path. |
failed | FAILED | No result, and error set to Sandbox scenario 'failed': no analysis was run. |
Data separation
Sandbox and live scans never mix. A sandbox key only sees sandbox scans, and a live key only sees live scans, on get, list and export. A scan id from the other side returns 404.
In the console, sandbox scans sit behind the Test data filter on the Scans page, marked with a Test badge. Job groups hold live scans only: a sandbox key can read job groups, whose roll-ups count live scans, but gets 422 for set_ids on a scan and for creating, editing, deleting or adding scans to a job group.
Webhooks
Sandbox scans send scan.completed and scan.failed to the same endpoints as live scans, signed the same way, with livemode: false in the envelope. Check livemode before you act on an event. In the console's delivery log, the Test filter shows these deliveries. Payload.
Limits
- 200 sandbox scans per workspace per UTC day. Past that,
POST /v1/scansreturns429withRetry-Afterset to the seconds until midnight UTC. - The usual rate limit of 120 requests per minute per key still applies.
- Sandbox scans are deleted automatically 30 days after they are created.
- Job group writes and
set_idsare rejected with422. Use a live key to manage job groups. - Creating, editing, cloning or deleting a interview check, or saving one from a scan, is rejected with
403. Sandbox keys can still list and read them. Use a live key to manage interview checks.
Going live
- Test all three scenarios end to end, including a
FAILEDscan. - Make your webhook handler read
livemode, so sandbox events never touch real candidate records. - Remove
sandbox_scenariofrom your requests. A live key rejects it with422. - Add a payment method on the Billing page. Live keys need one.
- Create a live key and swap it into your secret store in place of the sandbox key.
- Run one real scan and check its result before you send production traffic.