flow_url()
Get the public URL of a webhook or web-page flow. Because it's resolved from the flow id at run time, the link survives being copied between workspaces and environments.
Syntax
flow_url(flowId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
flowId |
int | yes | The id of a webhook or web-page flow. |
Returns
The public URL string (/webhook/<token> or /page/<token> on your environment's address).
Example
$link = flow_url(6008);
smtp_email_send("Main SMTP", [
"to" => $record["email"],
"subject" => "Complete your form",
"html" => "<p><a href=\"" . $link . "\">Open the form</a></p>"
]);
Example output
"https://cloud.infolobby.com/page/8f3a9c2e1b"
Notes
- Throws if the flow is missing, outside this flow's workspace scope, or not a webhook/web-page flow.
- In the visual builder, use the
{{flow_url:<id>}}token instead of calling this directly.
See also: flow_execute(), Web forms