Triggers API
Event-driven automation rules and their actions (webhook/email/SMS/Slack/flow/...).
- GET
/triggersList triggers - POST
/triggersCreate a trigger - GET
/triggers/eventsList available event types - GET
/triggers/action-typesList available action types - GET
/triggers/{id}Get a trigger - PATCH
/triggers/{id}Update a trigger - DELETE
/triggers/{id}Delete a trigger - POST
/triggers/{id}/actionsAdd an action to a trigger - PATCH
/triggers/{id}/actions/{actionId}Update an action - DELETE
/triggers/{id}/actions/{actionId}Delete an action - POST
/triggers/{id}/testTest-fire a trigger - GET
/triggers/{id}/logsGet execution logs
GET /triggers
List triggers
Auth: API key (Authorization: Bearer). Scopes: triggers:read, triggers:manage.
Lists the organization's triggers, each with an action_count. Filter with event_type and/or is_enabled.
Requires one of the following scopes: triggers:read, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
event_type | query | string | |
is_enabled | query | integer | One of: |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.triggers | array of object | |
data.triggers[].id | integer | |
data.triggers[].organization_id | integer | |
data.triggers[].name | string | |
data.triggers[].description | string | null | |
data.triggers[].event_type | string | |
data.triggers[].event_source | string | null | |
data.triggers[].conditions | object | array of any | null | Accepts any keys |
data.triggers[].scope_agent_ids | array of integer | null | |
data.triggers[].scope_campaign_ids | array of integer | null | |
data.triggers[].rate_limit_count | integer | null | |
data.triggers[].rate_limit_window | integer | null | |
data.triggers[].cooldown_seconds | integer | null | |
data.triggers[].is_enabled | boolean | integer | |
data.triggers[].priority | integer | null | |
data.triggers[].run_async | boolean | integer | |
data.triggers[].stop_on_error | boolean | integer | |
data.triggers[].action_count | integer | Present on list responses. |
data.triggers[].created_at | string (date-time) | |
data.triggers[].updated_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /triggers
Create a trigger
Auth: API key (Authorization: Bearer). Scopes: triggers:write, triggers:manage.
Requires one of the following scopes: triggers:write, triggers:manage.
Request body application/json required
| Field | Type | Description |
|---|---|---|
name | string required | |
event_type | string required | |
description | string | |
event_source | string | |
conditions | object | array of any | Accepts any keys |
scope_agent_ids | array of integer | |
scope_campaign_ids | array of integer | |
rate_limit_count | integer | |
rate_limit_window | integer | |
cooldown_seconds | integer | |
is_enabled | boolean | |
priority | integer | |
run_async | boolean | |
stop_on_error | boolean |
Responses
201 Trigger created
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | Event trigger rule. Fields mirror the event_triggers row; list responses add action_count, single-GET embeds the actions array. |
data.id | integer | |
data.organization_id | integer | |
data.name | string | |
data.description | string | null | |
data.event_type | string | |
data.event_source | string | null | |
data.conditions | object | array of any | null | Accepts any keys |
data.scope_agent_ids | array of integer | null | |
data.scope_campaign_ids | array of integer | null | |
data.rate_limit_count | integer | null | |
data.rate_limit_window | integer | null | |
data.cooldown_seconds | integer | null | |
data.is_enabled | boolean | integer | |
data.priority | integer | null | |
data.run_async | boolean | integer | |
data.stop_on_error | boolean | integer | |
data.action_count | integer | Present on list responses. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /triggers/events
List available event types
Auth: API key (Authorization: Bearer). Scopes: triggers:read, triggers:manage.
Requires one of the following scopes: triggers:read, triggers:manage.
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.events | array of object | |
data.events[].type | string | |
data.events[].description | string | |
data.events[].category | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /triggers/action-types
List available action types
Auth: API key (Authorization: Bearer). Scopes: triggers:read, triggers:manage.
Requires one of the following scopes: triggers:read, triggers:manage.
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.action_types | array of object | |
data.action_types[].type | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /triggers/{id}
Get a trigger
Auth: API key (Authorization: Bearer). Scopes: triggers:read, triggers:manage.
Returns the trigger with its embedded actions array.
Requires one of the following scopes: triggers:read, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | Event trigger rule. Fields mirror the event_triggers row; list responses add action_count, single-GET embeds the actions array. |
data.id | integer | |
data.organization_id | integer | |
data.name | string | |
data.description | string | null | |
data.event_type | string | |
data.event_source | string | null | |
data.conditions | object | array of any | null | Accepts any keys |
data.scope_agent_ids | array of integer | null | |
data.scope_campaign_ids | array of integer | null | |
data.rate_limit_count | integer | null | |
data.rate_limit_window | integer | null | |
data.cooldown_seconds | integer | null | |
data.is_enabled | boolean | integer | |
data.priority | integer | null | |
data.run_async | boolean | integer | |
data.stop_on_error | boolean | integer | |
data.action_count | integer | Present on list responses. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
PATCH /triggers/{id}
Update a trigger
Auth: API key (Authorization: Bearer). Scopes: triggers:write, triggers:manage.
Requires one of the following scopes: triggers:write, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
name | string | |
event_type | string | |
description | string | |
event_source | string | |
conditions | object | array of any | Accepts any keys |
scope_agent_ids | array of integer | |
scope_campaign_ids | array of integer | |
rate_limit_count | integer | |
rate_limit_window | integer | |
cooldown_seconds | integer | |
is_enabled | boolean | |
priority | integer | |
run_async | boolean | |
stop_on_error | boolean |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | Event trigger rule. Fields mirror the event_triggers row; list responses add action_count, single-GET embeds the actions array. |
data.id | integer | |
data.organization_id | integer | |
data.name | string | |
data.description | string | null | |
data.event_type | string | |
data.event_source | string | null | |
data.conditions | object | array of any | null | Accepts any keys |
data.scope_agent_ids | array of integer | null | |
data.scope_campaign_ids | array of integer | null | |
data.rate_limit_count | integer | null | |
data.rate_limit_window | integer | null | |
data.cooldown_seconds | integer | null | |
data.is_enabled | boolean | integer | |
data.priority | integer | null | |
data.run_async | boolean | integer | |
data.stop_on_error | boolean | integer | |
data.action_count | integer | Present on list responses. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
DELETE /triggers/{id}
Delete a trigger
Auth: API key (Authorization: Bearer). Scopes: triggers:delete, triggers:manage.
Deletes the trigger; its actions are cascade-deleted. Returns { deleted: true } (HTTP 200), not 204.
Requires one of the following scopes: triggers:delete, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
Responses
200 Deleted (actions cascade).
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.deleted | boolean | Always |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /triggers/{id}/actions
Add an action to a trigger
Auth: API key (Authorization: Bearer). Scopes: triggers:write, triggers:manage.
Requires one of the following scopes: triggers:write, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
action_type | string required | One of: |
config | object required | Action-type-specific configuration. Accepts any keys |
name | string | |
input_mapping | object | Accepts any keys |
action_condition | object | Accepts any keys |
execution_order | integer | |
retry_enabled | boolean | |
retry_max_attempts | integer | |
retry_base_delay_ms | integer | |
retry_backoff_multiplier | number | |
retry_max_delay_ms | integer | |
timeout_ms | integer | |
is_enabled | boolean |
Responses
201 Action created
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | A single action attached to a trigger (trigger_actions row). |
data.id | integer | |
data.trigger_id | integer | |
data.name | string | null | |
data.action_type | string | One of: |
data.config | object | Accepts any keys |
data.input_mapping | object | null | Accepts any keys |
data.action_condition | object | null | Accepts any keys |
data.execution_order | integer | null | |
data.retry_enabled | boolean | integer | null | |
data.retry_max_attempts | integer | null | |
data.timeout_ms | integer | null | |
data.is_enabled | boolean | integer |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
PATCH /triggers/{id}/actions/{actionId}
Update an action
Auth: API key (Authorization: Bearer). Scopes: triggers:write, triggers:manage.
Requires one of the following scopes: triggers:write, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
actionId | path | integer required | Action id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
action_type | string | One of: |
config | object | Accepts any keys |
name | string | |
input_mapping | object | Accepts any keys |
action_condition | object | Accepts any keys |
execution_order | integer | |
retry_enabled | boolean | |
retry_max_attempts | integer | |
retry_base_delay_ms | integer | |
retry_backoff_multiplier | number | |
retry_max_delay_ms | integer | |
timeout_ms | integer | |
is_enabled | boolean |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | A single action attached to a trigger (trigger_actions row). |
data.id | integer | |
data.trigger_id | integer | |
data.name | string | null | |
data.action_type | string | One of: |
data.config | object | Accepts any keys |
data.input_mapping | object | null | Accepts any keys |
data.action_condition | object | null | Accepts any keys |
data.execution_order | integer | null | |
data.retry_enabled | boolean | integer | null | |
data.retry_max_attempts | integer | null | |
data.timeout_ms | integer | null | |
data.is_enabled | boolean | integer |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
DELETE /triggers/{id}/actions/{actionId}
Delete an action
Auth: API key (Authorization: Bearer). Scopes: triggers:delete, triggers:manage.
Removes the action. Returns { deleted: true } (HTTP 200), not 204.
Requires one of the following scopes: triggers:delete, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
actionId | path | integer required | Action id |
Responses
200 Deleted
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.deleted | boolean | Always |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /triggers/{id}/test
Test-fire a trigger
Auth: API key (Authorization: Bearer). Scope: triggers:manage.
Synchronously executes the trigger against sample (or supplied) event data. WARNING: this fires the trigger's REAL actions — sending SMS/email/Slack messages, calling webhooks, running flows — it is NOT a dry run. Gated on triggers:manage so a write-only key cannot incur real actions/costs.
Requires the triggers:manage scope.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
Request body application/json
| Field | Type | Description |
|---|---|---|
event_data | object | Optional sample event payload; a default is generated if omitted. Accepts any keys |
Responses
200 Executed
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.test_result | object | Accepts any keys |
data.event_data | object | Accepts any keys |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /triggers/{id}/logs
Get execution logs
Auth: API key (Authorization: Bearer). Scopes: triggers:read, triggers:manage.
Paginated execution log for the trigger. Pagination is returned inside data.pagination (not the top-level meta).
Requires one of the following scopes: triggers:read, triggers:manage.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Trigger id |
limit | query | integer | Default |
offset | query | integer | Number of items to skip. Default |
status | query | string |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.logs | array of object | |
data.pagination | object | |
data.pagination.total | integer | |
data.pagination.limit | integer | |
data.pagination.offset | integer |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
Ready to build on Vosy?
API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans
Get Started