Integration checklist
Prepare a reliable server-to-server integration before deployment.
Use this checklist after the quickstart and before your service depends on the API.
Credentials and environment
- Keep
RASEN_API_KEYin a secret manager. Never send it to a browser or mobile client. - Set
RASEN_API_BASEfrom the environment. Keep the/v1suffix and do not build URLs from the Rasen app origin. - Verify a new key with
GET /contextbefore you remove the old key. - Treat
last_used_atas best-effort audit data, not proof that a key was never used.
Safe writes
- Create a new
Idempotency-Keyfor each intended mutation. - Persist that key with the job that makes the request. After a timeout or lost connection, send the same request with the same key.
- Never reuse an idempotency key with a different body.
- Read an editable resource first and send its ETag in
If-Match. After a stale-revision conflict, read again and reapply the intended change.
Reads and synchronization
- Follow
next_cursoruntil it is null. Do not inspect or construct a cursor. - For change scans, save
scanned_throughonly after the final page. - Use an explicit UTC time range for repeatable call and usage reads.
- Treat an unknown response-enum value as unknown. Do not fail the complete response.
Errors and retries
- Branch on
error.code, noterror.message. Forconflict, also inspecterror.details.reason. - Follow the error’s
retryvalue andRetry-Afterheader. - Log
X-Request-Idwith the operation name and your own job or correlation ID. Do not log bearer keys, secret values, raw customer text or signed URLs.
Release readiness
- Pin the API contract version used by your integration.
- Test request construction against a fake transport; do not make a paid provider call in a unit test.
- Exercise duplicate delivery, a lost response, an expired key, a stale ETag, rate limiting and an unknown enum value.
- Check API availability before you adopt an operation family.
For the detailed rules, continue with API fundamentals and the API reference.