Skip to main content

Functions

Functions run your server-side code on demand. Write Python once, save it against an app, then run it by name — from your application, on a schedule, or when something happens elsewhere in the platform.

How Functions is organized​

Every function belongs to one app. The site URL picks your site, the app slug picks the app, and the function slug picks the code to run.

A function stores what to run and how to run it. Saving a change records a new version, and every execution leaves a record carrying the version that ran, the result, and anything the code logged.

What you can do​

CapabilityWhat it gives youStart here
Sandboxed PythonYour own code, saved against an app and run by the platformWrite a function
Webhook forwardingAn external endpoint reachable through the same interface as your own functionsProxy functions
Synchronous and asynchronous callsA result returned to the caller, or an immediate acknowledgement carrying an id you use to fetch the result once it is readyExecute a function
Scheduled runsCron schedules attached to a function, each with its own parametersSchedules
Event-driven runsExecution when a platform event fires, narrowed by an expression you writeFilter conditions
Platform access from your codeA TaruviBase SDK client, already authenticated as the callerWrite a function
Version historyA record of every code and configuration change, and which version each run usedVersioning
Execution historyParameters, results, tracebacks, and captured logs for past runsLogs and invocations

Choose an interface​

InterfaceBest forSetup
TaruviBase ConsoleWriting code, running a function with test parameters, and reading its historyConsole guide
REST APIEvery operation, including creating, editing, and deleting functionsChoose direct HTTP
Python SDKExecuting functions and reading results from services, jobs, and scriptsPython SDK
JavaScript SDKExecuting a function from a browser or server applicationJavaScript SDK

The JavaScript SDK exposes a single function method, execute. Creating, editing, scheduling, and deleting are available through REST and Console only. The interface support matrix shows which interface covers each task.

Public access and deletion

Making a function public lets anyone who can reach its endpoint run it, with no credentials and no permission check. Review the code before you turn that on.

Deleting a function permanently removes its version history, invocation records, and schedules. There is no recovery path. Export what you need first, or deactivate the function instead.

Details: Security and limits.

Start here​

  1. Create, run, and delete a function — one function, end to end.
  2. Learn how a call becomes a result, and when to wait for one.
  3. Choose between app and proxy modes.
  4. Add schedules or filter conditions as your needs grow.
  5. Review security and limits before connecting production traffic or making a function public.