POST
/
flows
/
{flow_id}
/
executions
curl --request POST \
  --url https://app.kapso.ai/api/v1/flows/{flow_id}/executions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "phone_number": "+1234567890",
  "variables": {
    "user_id": "123",
    "name": "John Doe",
    "email": "john@example.com"
  },
  "context": {
    "source": "mobile_app",
    "version": "1.2.3"
  },
  "initial_data": {}
}'
{
  "flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tracking_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "message": "Flow execution queued"
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

flow_id
string
required

Body

application/json

Response

202
application/json

Flow execution accepted and queued

The response is of type object.