Skip to main content

Event registry and subscribers

Events connect TaruviBase's fixed set of events to your functions. You choose which functions run when an event fires; TaruviBase fires events for user and data table activity in your site.

Resource model​

  • Event name — one of TaruviBase's fixed event names. You can't create new ones.
  • Subscription — links one event to one function. Deleting a function removes its subscriptions.

Each function can subscribe to an event once, and to as many events as you like.

Event names​

EventCategoryNotes
PRE_USER_CREATEUser lifecycleBlocking during site-user creation — see Emission and delivery
POST_USER_CREATEUser lifecycleAfter the user row commits
POST_USER_UPDATEUser lifecyclePrevious and updated payloads
POST_USER_DELETEUser lifecycleUser delete flow
RECORD_CREATEDatabase recordsOne event per created record
RECORD_UPDATEDatabase recordsRecord update
RECORD_DELETEDatabase recordsRecord delete

List them with GET /api/cloud/events/. Details: Event types.

Subscription scope​

A subscription belongs to the site, not to one app. Record events only run functions in the table's app. To see one app's subscribers, use GET /api/apps/APP_SLUG/events/EVENT_NAME/ or the app's Events page in the Console.

You can't publish events or define custom event names through the API.