Create trigger

POST/v1/triggers

Create an event-driven trigger, including webhook-based automations.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
None.
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
namestringYesHuman-readable name.
environmentIdstringNoRequired when the `threads` destination is enabled.
agentIdstringNoAgent ID.
sourcegithub | gitlab | slack | email | webhook | cron | customYes—
eventstringYes—
filtersobjectNo—
actionobjectYes—
action.typesend_messageYes—
action.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoProduct surfaces allowed to consume this webhook. Existing actions without this field default to `threads`.
action.promptstringNoPrompt passed into the trigger execution thread.
action.messagestringNoBackward-compatible alias for `prompt`.
action.templatestringNoLegacy template field. Use `prompt` for new integrations.
action.projectIdstringNoOptional project context attached to the thread created by this webhook.
enabledbooleanNo—

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Trigger createdapplication/json
FieldTypeRequiredDescription
triggerobjectNo—
trigger.idstringNoUnique identifier.
trigger.userIdstringNoUser ID.
trigger.organizationIdstringNo—
trigger.createdByUserIdstringNo—
trigger.namestringNoHuman-readable name.
trigger.environmentIdstringNoComputer ID.
trigger.agentIdstringNoAgent ID.
trigger.sourcegithub | gitlab | slack | email | webhook | cron | customNo—
trigger.eventstringNo—
trigger.filtersobjectNo—
trigger.actionobjectNo—
trigger.action.typesend_messageYes—
trigger.action.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoProduct surfaces allowed to consume this webhook. Existing actions without this field default to `threads`.
trigger.action.promptstringNoPrompt passed into the trigger execution thread.
trigger.action.messagestringNoBackward-compatible alias for `prompt`.
trigger.action.templatestringNoLegacy template field. Use `prompt` for new integrations.
trigger.action.projectIdstringNoOptional project context attached to the thread created by this webhook.
trigger.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoNormalized destinations resolved from the action.
trigger.enabledbooleanNo—
trigger.webhookSecretstringNo—
trigger.webhookUrlstringNo—
trigger.lastTriggeredAtstringNo—
trigger.createdAtstringNoISO 8601 timestamp.
trigger.updatedAtstringNoISO 8601 timestamp.
Create trigger
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow