Skip to main content
POST
/
{flow_id}
/
assets
Upload flow JSON
curl --request POST \
  --url https://api.kapso.ai/meta/whatsapp/{flow_id}/assets \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form name=flow.json \
  --form asset_type=FLOW_JSON \
  --form file=@example-file
{
  "success": true,
  "validation_errors": []
}

Authorizations

X-API-Key
string
header
required

Project API key for authentication. This is the recommended authentication method.

Get your API key from the Kapso dashboard under Project Settings > API Keys.

Path Parameters

flow_id
string
required

Flow ID

Body

multipart/form-data
file
file
required

Flow JSON file (max 10 MB)

name
string
required

Asset name (must be "flow.json")

Example:

"flow.json"

asset_type
string
required

Asset type (must be "FLOW_JSON")

Example:

"FLOW_JSON"

Response

Flow assets uploaded successfully

success
boolean
validation_errors
object[]