mistralM

Docs

sideBar

Beta Triggers

(beta) Triggers API.

GET /v1/triggers

List Triggers

List Triggers

Parameters

handler
"workflows" | "agents" | "spaces"query

Filter by handler type

primitive_id
string | nullquery

Filter by primitive ID (workflow, agent, or app)

event_source_id
string | nullquery

Filter by event source ID (webhook id)

Responses

array<Trigger>

Successful Response

Trigger
action
TriggerAction* required
TriggerAction
primitive_id
string* required
type
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* required
creator_id
string* required
customer_id
string* required
event_source
Webhook* required
Webhook
created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required
filters
string | null* required
handler
"workflows" | "agents" | "spaces"* required
id
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
title
string* required
workspace_id
string* required

POST /v1/triggers

Create Trigger

Create Trigger

Request Example

{
  "action": {
    "primitive_id": "ipsum eiusmod",
    "type": "start_workflow"
  },
  "event_source_id": "consequat do",
  "handler": "workflows",
  "owner_type": "workspace",
  "title": "reprehenderit ut dolore"
}

Request Body

action
CreateTriggerAction* required
CreateTriggerAction
primitive_id
string* required

ID of the target primitive (workflow, agent, or app)

type
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* required
event_source_id
string* required

ID of the event source that fires this trigger

filters
string | null

jmespath expression to filter events, e.g. event_type == 'push' && repository.name == 'dashboard'

handler
"workflows" | "agents" | "spaces"* required
owner_type
"workspace" | "user"* required
title
stringMin Length: 1Max Length: 256* required

Human-readable title of the trigger

Server-Side Events

Successful Response

action
TriggerAction* required
TriggerAction
primitive_id
string* required
type
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* required
creator_id
string* required
customer_id
string* required
event_source
Webhook* required
Webhook
created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required
filters
string | null* required
handler
"workflows" | "agents" | "spaces"* required
id
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
title
string* required
workspace_id
string* required

GET /v1/triggers/{trigger_id}

Get Trigger

Get Trigger

Parameters

trigger_id
stringpath* required

Responses

Successful Response

action
TriggerAction* required
TriggerAction
primitive_id
string* required
type
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* required
creator_id
string* required
customer_id
string* required
event_source
Webhook* required
Webhook
created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required
filters
string | null* required
handler
"workflows" | "agents" | "spaces"* required
id
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
title
string* required
workspace_id
string* required

DELETE /v1/triggers/{trigger_id}

Delete Trigger

Delete Trigger

Parameters

trigger_id
stringpath* required

GET /v1/triggers/{trigger_id}/events

List Trigger Events

List Trigger Events

Parameters

trigger_id
stringpath* required
limit
integerquery

Maximum number of events to return

Responses

Successful Response

data
array<TriggerEvent>* required
TriggerEvent
detail
string | null* required
event_id
string* required
received_at
date-time* required
source_id
string* required
status
"SUBMITTED" | "SUBMISSION_FAILED" | "TRIGGERED" | "TRIGGER_FAILED"* required
submitted_at
date-time | null* required
trigger_id
string* required
triggered_at
date-time | null* required
url
string | null* required