Skip to main content
The ctx object is the second parameter of every handler. It contains info about the company, channel, user, trigger type, and provides access to secrets, messaging, memory, and logging.

Reference

Identity

Trigger

Request

Environment (secrets)

Internal variables with __FN_ prefix are blocked — ctx.env.get("__FN_COMPANY_ID") returns undefined.

Messaging (ctx.jelou)

Messaging guide

14 message types, HSM templates, and error handling.

Memory (ctx.memory)

Memory guide

Primitives, JSON, TTL, limits, and common patterns.

Deferred runs (ctx.jelou.schedule)

Book a future run of your own function:

Deferred runs guide

Book, look up, cancel and check before acting.

Checks (ctx.guard)

Chain conditions and run the action only if all of them hold. Useful when reality may have changed since you booked something:
If any check returns a falsy value, the chain short-circuits and returns { skipped: "<name>" } without running the action.

Webhooks (ctx.verify*)

Verify a webhook signature before processing it:

Webhooks guide

Stripe, Shopify, Meta and generic HMAC signatures.

Logging

ctx.log() writes structured JSON with automatic metadata:

Messaging

Send WhatsApp with ctx.jelou.

Memory

Persist data with ctx.memory.

Secrets

Encrypted environment variables.

Authentication

Runtime tokens and public functions.