1. Synchronous Sandbox Simulation
Query sandbox status with GET or submit a dry-run mail dispatch with Idempotency-Key:
- Echoes deterministic
sbx_*simulation IDs - Returns
API-Version: 1.0.0and IETFRateLimitheaders
curl -sS https://natrium.sh/api/v1/sandbox
curl -sS -X POST https://natrium.sh/api/v1/sandbox \
-H "Content-Type: application/json" \
-H "Idempotency-Key: sbx-demo-001" \
-d '{"action":"simulate_send","to":"sandbox@natrium.sh","subject":"Sandbox Test"}'2. Asynchronous 202 Job Polling
Pass "async": true to receive 202 Accepted with a Location header and poll GET /api/v1/jobs/{jobId}.
- Standard
202 Accepted+Locationasync workflow - Returns RFC 9457
404 application/problem+jsonfor unknown jobs
curl -i -sS -X POST https://natrium.sh/api/v1/sandbox \
-H "Content-Type: application/json" \
-d '{"action":"simulate_send","to":"sandbox@natrium.sh","subject":"Async Test","async":true}'
curl -sS https://natrium.sh/api/v1/jobs/sbx_8d6a7e1a7f90