Guide
Subscriptions

Subscriptions

A subscription runs an event automatically in response to something changing — a database row, a blockchain contract event, a timer, or a file operation. Unlike an API endpoint, no HTTP request is involved: the platform watches an emitter and fires your event's SQL when it triggers.

Requires an active configuration. Select one on the Settings page first.

The Subscriptions page

Layout

Two columns: a list of subscriptions on the left and a form on the right. Each list row shows the name, the emitter, the executed event, a method badge, and an inline Play (▶) / Stop (■) control.

Emitter kinds

The form's fields change with the emitter you pick:

EmitterFires when…Extra field
Data object (Dictionary, etc.)a row is inserted/updated/deletedTiming radio (Pre / Post)
Contracta subscribed ABI contract event is seen on-chainContract Event (ABI) dropdown
Crona schedule ticksCron Schedule (crontab syntax)
Filea file is uploaded or trashedOperation (Insert / Delete) + creator filter

Always-present fields: Name, Event Emitter (grouped by object type), Exec Event (the SQL handler to run), and Method (GET/POST/PUT/DELETE).

Creating a subscription

  1. Name it.
  2. Choose the Event Emitter — a data object, a contract, or one of the synthetic Cron / File emitters.
  3. Fill the emitter-specific field (ABI event, cron expression, or file operation).
  4. Pick the Exec Event to run and its Method.
  5. Save, then press Play (▶) in the list to start it. Stop (■) halts it.

Starting or stopping a subscription dispatches a command to a background worker that watches the emitter (cron and contract subscriptions run a worker; the file-op kind is gated by a database trigger directly).


Related: