v25

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0131545750.2 KB

Create a triggered automation (state + changeset filter trees)

post/v2/prism/{teamId}/{automationObjectType}/triggered_automations

Path parameters

teamIdstring uuid required
automationObjectType'message' | 'action' | 'event' | 'document' | 'identity' | 'linkedin_message' | 'deal' | 'organization' | 'contact' required

Object types that support triggered automations. Must match the triggered-automation whitelist in @micro/database migrate-sql (TRIGGERED_AUTOMATION_OBJECTS).

Headers

Idempotency-Keystring

A unique key (UUID or any opaque string up to 255 chars) that identifies this logical request. The server caches the first response under this key for 24 hours and replays it on retry — safe to use on every POST/PUT/PATCH to make network retries deterministic. Reusing the same key with a different body returns 409 idempotency_key_mismatch. Replays include the idempotent-replay: true response header.

Request body

idstring uuid
kind'update' | 'lifecycle' required
team_idstring uuid nullable
list_idstring uuid nullable
user_idstring nullable
namestring required
enabledboolean
on_createboolean

Lifecycle automations only.

on_deleteboolean

Lifecycle automations only.

created_atstring
updated_atstring nullable

Response

Created

idstring uuid
kind'update' | 'lifecycle' required
team_idstring uuid nullable
list_idstring uuid nullable
user_idstring nullable
namestring required
enabledboolean
on_createboolean

Lifecycle automations only.

on_deleteboolean

Lifecycle automations only.

created_atstring
updated_atstring nullable