Skip to main content
POST
/
triggers
Create Trigger
curl --request POST \
  --url https://app.conduit.io/api/triggers \
  --header 'Content-Type: application/json' \
  --cookie session= \
  --data '
{
  "workflowId": "<string>",
  "name": "<string>",
  "type": "schedule",
  "config": "<string>",
  "transactionType": "deposit",
  "transactionConfig": "<string>",
  "status": "active"
}
'
{
  "trigger": {
    "id": "<string>",
    "organizationId": "<string>",
    "workflowId": "<string>",
    "name": "Daily at 9am",
    "type": "schedule",
    "config": "<string>",
    "transactionType": "deposit",
    "transactionConfig": "<string>",
    "status": "active",
    "createdById": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

session
string
cookie
required

Session-based authentication via cookies

Body

application/json
workflowId
string
required

Workflow ID

name
string
required

Trigger name

Required string length: 1 - 100
type
enum<string>
required

Trigger type

Available options:
schedule,
balance_above,
balance_below,
manual
config
string
required

JSON configuration string

transactionType
enum<string>
required

Transaction type

Available options:
deposit,
withdraw,
transfer
transactionConfig
string
required

JSON transaction configuration string

status
enum<string>
default:active

Trigger status

Available options:
active,
paused

Response

Trigger created successfully

trigger
object