Runtime Context Reference
Overview
All backend handlers in Rocketlane receive two arguments:
run: async (r, ctx) => { ... }r– Rocketlane’s SDK object with utility methodsctx– Contextual metadata about the app, user, and installation
r: Rocketlane SDK Utilities
r: Rocketlane SDK UtilitiesAvailable in all server-side handlers:
r.logger– Basic logging (mimics console.log)r.kv– Key-Value store interface for persisting app-specific or global datar.scheduler– API for registering and deleting scheduled jobsr.installationParams– Values configured during app installation
Refer to the respective pages on:
ctx: Contextual Metadata
ctx: Contextual MetadataProvides context about who or what triggered the function:
ctx.account– Info about the account the app is installed inctx.user– Info about the user who initiated the requestctx.app– Details of the app itselfctx.installation– Full installation object with metadata and config
Updated 3 months ago
What’s Next