See Stacksync in action with a solution architect. Book a demo ↗
App triggers

App triggers

Get an app trigger

GET
/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}

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

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

app_trigger_id*string

The app trigger.

Formatuuid

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Response Body

OK

application/json
  1. response
app_trigger_id*App Trigger Id
target*

What runs on each change

connection_id*Connection Id

The connection whose app is watched

tables*array<>

One entry per trigger: the table, its record changes, filters

status*AppTriggerStatus
Value in"on""paused"
region*Regions
Value in"besg""usnv"
Get an app trigger
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"}