Skip to main content
DELETE
/
v1
/
triggers
/
{triggerId}
Delete trigger
curl --request DELETE \
  --url https://api.example.com/v1/triggers/{triggerId} \
  --header 'Authorization: <authorization>'

Overview

Permanently deletes an automation trigger. Fires a trigger.deleted event on the EventBus. In-flight actions already started by this trigger are not affected. Required role: admin

Request headers

Authorization
string
required
JWT Bearer token. Format: Bearer <your-jwt>.

Path parameters

triggerId
string
required
The trigger identifier. Example: trg_01HX9VTPQR3KF8MZWBYD5N6JCE.

Response

Returns 204 No Content on success.

Error responses

StatusError codeDescription
401unauthorizedMissing or invalid JWT
403forbiddenCaller lacks admin role
404trigger_not_foundNo trigger with the given ID

Examples

curl https://api.causeflow.ai/v1/triggers/trg_01HX9VTPQR3KF8MZWBYD5N6JCE \
  -X DELETE \
  -H "Authorization: Bearer eyJhbGc..."

List triggers

View remaining triggers

Create trigger

Add a replacement trigger