Funnel
Create Funnel
Create a new funnel in the workspace.
Creating a funnel automatically creates a workflow. You can then add pages to the funnel by creating pages with funnel.funnel_id set to the new funnel's ID (see the Create Page endpoint).
Client flow for building a funnel with pages:
- POST /api/v2/workspaces/:id/funnels — creates the funnel (workflow auto-created)
- POST /api/v2/workspaces/:id/pages with { page: { name: "...", funnel: { funnel_id: "<funnel_id>" }, markup: "<PML string>" } } — creates each page, auto-links it to the funnel, and applies the markup in one call
- PATCH /api/v2/pages/:id with { page: { markup: "<PML string>" } } — applies or updates visual content (PML markup) on an existing page
- Steps 2 and 3 can be combined: passing markup in the create call sets the initial visual content without a separate PATCH
The internal step/workflow wiring is handled automatically — API clients never need to manage workflows or steps directly.
post/workspaces/{workspace_id}/funnels
Path parameters
workspace_idinteger required
Request body
Example request
{
"funnel": {
"funnel": {
"name": "Example Funnel",
"current_path": "/example-funnel",
"live_mode": true,
"tag_ids": [
1,
2
]
}
}
}Response
Created
Example response
{
"id": 1,
"public_id": "gESyMv",
"workspace_id": 42000,
"name": "Example Funnel",
"archived": false,
"current_path": "/example-path",
"live_mode": true,
"domain_id": 42,
"favicon_image_id": null,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"public_id": "JgjGTv",
"name": "Example Funnel Tag",
"color": "#00FF00"
}
]
}