latestOpenAPI 3.1.02026-08-223321,1001.6 MB

2134ebffd1ef

trigger-rules

Create Trigger Rule

post/trigger-rules

Request body

integration_idstring required

Slack or Teams integration instance for this rule.

trigger_condition_type'MESSAGE_DATA' | 'CHANNEL_JOIN' required

The type of condition for a self-serve trigger.

context_source'CHANNEL_TOPIC' | 'CHANNEL_PURPOSE' | 'MESSAGE_CONTENT' | 'MESSAGE_THREAD_CONTENT' | 'ALL' required
channel_idstring required

Platform channel id, or "all" for every channel.

resident_agent_template_idstring nullable

Template that seeds a worker when this rule matches. Only meaningful for CHANNEL_JOIN rules; verified to belong to your organization.

Response

Successful Response

idstring required
organization_idstring nullable required
integration_idstring nullable required
trigger_condition_typestring required
context_sourcestring required
channel_idstring required
resident_agent_template_idstring nullable required
created_atstring date-time required
created_by_user_uuidstring required