Start typing to search.

API Reference

Create a trigger

View Markdown
POST /api/triggers

Create a trigger

Operation IDcreateTrigger

Authentication

  • BearerAuth·http bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Request body

This request body is required.

Content typeapplication/json

requestobject
6 properties
job_idintegerrequired
task_keystring

Specific task key within the job to trigger

typestring
cron_expressionstring

Cron expression (e.g. '0 */6 * * *') for type=cron; ISO-8601 datetime (UTC) in the future for type=one_off.

argumentsobject

Additional properties are allowed.

enabledboolean

Success response body

201Trigger created

Trigger created

Content typeapplication/json

responseobject
10 properties
idinteger
job_idinteger
task_keystring | null
typestring

cron repeats on a cron expression; one_off fires once at the datetime in cron_expression then auto-disables.

cron_expressionstring | null

5-field cron expression for type=cron; ISO-8601 datetime (UTC) for type=one_off.

argumentsstring | null

JSON-encoded arguments

enabledinteger
last_triggered_atstring | null · date-time
created_atstring · date-time
updated_atstring · date-time