Request handlers
Record user actions after your application has committed the underlying change.Jobs and workers
Use aservice actor for background work.
Webhooks
Use webhook delivery IDs as idempotency keys when possible.Customer activity
Only mark recordsuserVisible: true when they should be visible in customer-facing activity history. Internal security and support records should stay internal unless you have a reason to expose them.
Do not build a public form that accepts a user ID or email and calls Lodger directly. Mint a scoped activity token from your backend after your own app has authenticated the user.
activityUrl stores the token in the URL fragment. When reading activity directly, the SDK sends that token as a bearer token instead of a query string.