Best practices
A short checklist for production integrations.
- Store secrets in a vault, never in client apps.
- Send
Idempotency-Keyon every create. - Honour
Retry-After; use exponential backoff with jitter. - Prefer webhooks over polling; poll
/eventsas a fallback. - Use
If-Matchwith the noteversionto avoid lost updates. - Request only the scopes you need.
- Log
request_idfrom every error.