Skip to main content
POST
/
flows
/
{flow_id}
/
triggers
curl --request POST \
--url https://app.kapso.ai/api/v1/flows/{flow_id}/triggers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"trigger": {
"trigger_type": "inbound_message",
"active": true,
"whatsapp_config_id": "config-789ghi"
}
}'
{
  "data": {
    "id": "trigger-123abc",
    "flow_id": "flow-456def",
    "trigger_type": "inbound_message",
    "active": true,
    "display_name": "Customer Support Trigger",
    "triggerable": {
      "id": "inbound-trigger-123",
      "whatsapp_config_id": "config-789ghi"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

flow_id
string<uuid>
required

Body

application/json
trigger
object
required

Response

Flow trigger created successfully

data
object
I