Skip to main content
GET
/
applications
/
{applicationId}
/
triggers
/
{triggerId}
Get a trigger from the Application
curl --request GET \
  --url https://local.withsutro.com/applications/{applicationId}/triggers/{triggerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-sutro-api-client: <api-key>'
{
  "trigger": {
    "id": "<string>",
    "type": "<unknown>",
    "eventName": "<string>",
    "payload": {}
  },
  "actionId": "<string>",
  "initialState": {},
  "validation": [
    "<string>"
  ],
  "isPublic": true
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

applicationId
string<uuid>
required
triggerId
string<uuid>
required

Response

The requested trigger

trigger
object
required
actionId
string
required

A unique identifier for the action

initialState
object
required
validation
string[]
required

A list of validation expressions that must all resolve to true for the action to be started.

A Sutro expression

isPublic
boolean