Skip to main content
POST
/
v1
/
internal
/
tasks
/
notify-automation-failures
Send automation failure notifications (email + in-app) when one or more automations fail (internal)
curl --request POST \
  --url http://localhost:3333/v1/internal/tasks/notify-automation-failures \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "<string>",
  "taskId": "<string>",
  "taskTitle": "<string>",
  "failedCount": 123,
  "totalCount": 123,
  "taskStatusChanged": true
}
'

Headers

X-Internal-Token
string

Internal service token (required in production)

Body

application/json
organizationId
string
required

Organization ID

taskId
string
required

Task ID

taskTitle
string
required

Task title

failedCount
number
required

Number of failed automations

totalCount
number
required

Total number of automations

taskStatusChanged
boolean
required

Whether task status was changed to failed

Response

Notifications sent