App triggers
Get an app trigger
The workflow step or genie it runs, the connection it watches, its tables with their record changes and filters, and whether it is on.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
app_trigger_id*stringThe app trigger.
uuidregion*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
"besg""usnv"OK
application/json- response
app_trigger_id*App Trigger Idtarget*What runs on each change
connection_id*Connection IdThe connection whose app is watched
tables*array<>One entry per trigger: the table, its record changes, filters
status*AppTriggerStatus"on""paused"region*Regions"besg""usnv"curl -X GET 'https://api.stacksync.com/v1/workspaces/0/app-triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg'{ "app_trigger_id": "<app_trigger_id>", "target": { "type": "workflow", "id": "<id>", "step_id": "<step_id>", "interface_id": "<interface_id>" }, "connection_id": "<connection_id>", "tables": [ { "table_name": "<table_name>", "operations": [ "created" ], "filters": { "type": "group", "operator": "and" } } ], "status": "on", "region": "besg"}DELDelete a Genie
Deletes a Genie, the access grants on it, its scheduled tasks and its triggers.
POSTCreate an app trigger
Watch tables of a connection and run a workflow's sync trigger step or a genie's Trigger interface on each matching change, from now on (past records are not replayed). The trigger is switched on and saved on the workflow's draft step or the genie's interface; a draft saved meanwhile is refused with 409 and nothing is created. Send an Idempotency-Key to retry safely.