Create flow
Create a flow with a trigger and one or more actions. It starts as a draft and delivers nothing until you publish it. The trigger's integrationId comes from the trigger-types catalog.
Send a dynamic value
To send each conversion's real value, like the total price of an Acuity Scheduling booking, set valueSource on the action's conversion. Call List value sources first to get the triggerId and sourceId to use. The fixed value and currency become the fallback, which Converly sends if a conversion ever arrives without a value from the trigger.
curl https://app.converly.io/api/v1/flows \
-H "Authorization: Bearer sk_live_…" \
-d '{
"site_id": "site_29Et…",
"name": "Booked consultations",
"trigger_config": {
"integrationId": "acuity-scheduling"
},
"actions_config": [
{ "integrationId": "meta",
"config": {
"conversion": {
"event_name": "Schedule",
"value": 300,
"currency": "USD",
"valueSource": {
"triggerId": "acuity-appointment-scheduled",
"sourceId": "acuity.booking_price"
}
}
} }
]
}'Converly checks the value source when you save. If the value can't be used with this trigger and destination, you get a 400 that points at actions_config[0].config.conversion.valueSource. If the check itself can't run, you get a 503, which is safe to retry.
curl https://app.converly.io/api/v1/flows \
-H "Authorization: Bearer sk_live_…" \
-d '{
"site_id": "site_29Et…",
"name": "Demo bookings",
"trigger_config": {
"integrationId": "gravity-forms",
"pageFilter": "all"
},
"actions_config": [
{ "integrationId": "meta",
"config": {
"conversion": { "event_name": "Lead" }
} }
]
}'{
"id": "flow_0Dzj…",
"status": "draft",
"trigger_name": "Gravity Forms",
"published_at": null
}