Skip to main content

Events

Run your functions automatically when users or data records change. Subscribe a function to one of TaruviBase's events, and TaruviBase calls it each time that event happens.

Access rules and limits are on Security and limits.

How Events works​

A subscription links one event to one function. TaruviBase has a fixed set of events; see Event types.

EventFires when
PRE_USER_CREATEA site user is about to be created — the function can check or change the user, or stop the creation
POST_USER_CREATEA site user was created
POST_USER_UPDATEA site user was updated
POST_USER_DELETEA site user was deleted
RECORD_CREATEA record was created in a data table
RECORD_UPDATEA record was updated
RECORD_DELETEA record was deleted

Record events only run functions that belong to the same app as the data table. User events run every subscribed function in the site.

What you can build​

GoalStart here
React to new records, such as sending a notificationSubscribe to your first event
Validate or enrich new users before they are createdEmission and delivery
Add, remove, and review subscriptionsManage subscriptions
Run a function only for some recordsFilter conditions

Choose an interface​

InterfaceUse it to
TaruviBase ConsoleSubscribe and unsubscribe functions and see each event's subscribers. Open your app and select Events.
REST APIManage subscriptions from scripts and automation
FunctionsWrite the code that runs when an event fires — see Functions

The JavaScript and Python SDKs don't include Events methods; use the Console or the REST API.

Start building​

  1. Subscribe to your first event.
  2. Manage subscriptions.
  3. Read Emission and delivery for what your function receives.
  4. Review Security and limits before production.

Good to know​

  • You can't define your own event names or publish events over the API.
  • TaruviBase doesn't retry a function run that fails. Make functions safe to run again, and check their runs in Logs and invocations.