Skip to navigation

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_KEY in a secret manager. Never send it to a browser or mobile client.
  • Set RASEN_API_BASE from the environment. Keep the /v1 suffix and do not build URLs from the Rasen app origin.
  • Verify a new key with GET /context before you remove the old key.
  • Treat last_used_at as best-effort audit data, not proof that a key was never used.

Safe writes

  • Create a new Idempotency-Key for 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_cursor until it is null. Do not inspect or construct a cursor.
  • For change scans, save scanned_through only 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, not error.message. For conflict, also inspect error.details.reason.
  • Follow the error’s retry value and Retry-After header.
  • Log X-Request-Id with 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.