API Reference
Create a trigger
POST
/api/triggers
Create a trigger
Operation IDcreateTrigger
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Request body
This request body is required.
Content typeapplication/json
requestobject6 properties
job_idintegerrequiredtask_keystringSpecific task key within the job to trigger
typestringcron_expressionstringCron expression (e.g. '0 */6 * * *') for type=cron; ISO-8601 datetime (UTC) in the future for type=one_off.
argumentsobjectAdditional properties are allowed.
enabledbooleanSuccess response body
201Trigger created
Trigger created
Content typeapplication/json
responseobject10 properties
idintegerjob_idintegertask_keystring | nulltypestringcron repeats on a cron expression; one_off fires once at the datetime in cron_expression then auto-disables.
cron_expressionstring | null5-field cron expression for type=cron; ISO-8601 datetime (UTC) for type=one_off.
argumentsstring | nullJSON-encoded arguments
enabledintegerlast_triggered_atstring | null · date-timecreated_atstring · date-timeupdated_atstring · date-time