Get started
Run your first scan
Send an interview recording to Red and read the verdict. Build against a free sandbox key first, then switch to a live key.
Your first integration
- Create an API keyStart with a sandbox key: free scans with canned results. Create a key
- Submit a scan with the APIRun the request below, or use Try it.
- Get a completed resultMost recordings finish in a few minutes.
- Receive a webhookAdd an endpoint, or pass webhook_url on the scan.
1. Create an API key
Create a key on the API keys page and choose Sandbox while you build. Sandbox scans are free, need no payment method and return canned results in about 3 seconds. Red shows the full key once, so copy it straight into your secret manager and expose it to your code as RED_API_KEY.
A key needs scans:create to start scans, scans:read to fetch results and webhooks:manage to set webhook_url on a scan. Keys created without scopes can call everything. Send the key in the x-api-key header on every request. Authentication covers scopes and rotation.
2. Submit a scan
POST /v1/scans
POST an HTTPS video_url. Red reads the URL several times while the scan runs, so a presigned link must stay valid until the scan finishes; a few hours is safe. Red replies 202 straight away with a scan_id and status PENDING, then works in the background.
external_id comes back on every response and webhook, and metadata on every API response, so you can match results to your own records. webhook_url is optional, sends this scan's events to that URL only and needs webhooks:manage.
With a sandbox key, add sandbox_scenario (clean, flagged or failed) to pick the result. The request is validated like a live one, so video_url must still be a public HTTPS URL, but Red never downloads it.
Samples are snippets. The Node.js ones use top-level await, so run them as ES modules. The Java ones go inside a method that throws Exception.
Try it
Sends POST /v1/scans from this browser with your key, then polls every 5 seconds until the scan finishes.
Paste a sandbox key at the top of the page to try the API for free. A live key runs a real, billed scan.
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": "interview-123",
"webhook_url": "https://your-app.example.com/webhooks/red"
}'{
"scan_id": "8F3A91C24D7E0B5A6C1D9E2F3B4A5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A2B",
"external_id": "interview-123",
"metadata": {
"candidate_id": "c-42"
},
"participants": [],
"set_ids": [],
"last_heartbeat_at": null,
"error": null,
"livemode": true,
"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
}3. Get the result
GET /v1/scans/{scan_id}
Live scans usually take a few minutes, longer for long recordings. Sandbox scans finish in about 3 seconds. There are two ways to hear back.
- Webhook. Red POSTs a signed
scan.completedorscan.failedevent to your endpoint. This is the better choice once you run more than a handful of scans at a time. - Polling. Call
GET /v1/scans/{scan_id}every 5 seconds untilstatusisCOMPLETEDorFAILED. Both are final: stop polling on either.
On COMPLETED, read result.verdict for the headline and result.findings for each timestamped flag. On FAILED, error says why. Polling and webhooks covers signatures, retries and timing.
export RED_API_KEY="<YOUR_API_KEY>"
scan_id="8F3A91C24D7E0B5A6C1D9E2F3B4A5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A2B"
while true; do
scan=$(curl -fsS "https://red-api.apps.heymilo.cloud/v1/scans/$scan_id" \
-H "x-api-key: $RED_API_KEY")
status=$(printf '%s' "$scan" | jq -r '.status')
case "$status" in
COMPLETED)
printf '%s\n' "$scan" | jq '.result.verdict'
break
;;
FAILED)
printf '%s\n' "$scan" | jq -r '"Scan failed: \(.error // "no reason given")"' >&2
break
;;
esac
sleep 5
done{
"scan_id": "8F3A91C24D7E0B5A6C1D9E2F3B4A5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A2B",
"external_id": "interview-123",
"metadata": {
"candidate_id": "c-42"
},
"participants": [],
"set_ids": [],
"last_heartbeat_at": "2026-09-24T10:15:41Z",
"error": null,
"livemode": true,
"created_at": "2026-09-24T10:12:03Z",
"status": "COMPLETED",
"media_status": "ready",
"progress": 100,
"progress_status": "COMPLETED",
"billable_minutes": 4,
"result": {
"version": "red.v1",
"verdict": {
"risk_level": "high",
"recommended_action": "review",
"summary": "Off-screen reading detected during two technical answers.",
"requires_human_review": true,
"session_duration_sec": 237.4,
"flagged_duration_sec": 15.2,
"flagged_percentage": 6.4,
"total_findings": 2,
"risk_breakdown": {
"high": {
"count": 2,
"duration_sec": 15.2,
"percentage": 6.4
}
},
"category_breakdown": [
{
"category": "assistance",
"findings": 2,
"duration_sec": 15.2,
"percentage": 6.4,
"risk_level": "high"
}
]
},
"findings": [
{
"category": "assistance",
"check": "offscreen_reading",
"risk_level": "high",
"confidence": 0.92,
"starts_at_sec": 142.2,
"ends_at_sec": 151.2,
"summary": "Gaze held off-screen while the answer cadence matched read speech.",
"recommended_action": "review",
"evidence": {}
}
],
"warnings": []
},
"completed_at": "2026-09-24T10:15:41Z"
}Next steps
- Reading a result: what each verdict field and check means.
- Scans reference: every field you can send, including transcripts and detection settings.
- Job groups: group scans for a hiring round and get roll-ups.
- Errors and rate limits: what each status code means and how to retry.