Skip to main content
POST
Create a funnel

Authorizations

Authorization
string
header
required

An API key that starts with cs_sk_, created under API and MCP, API keys. A key covers every site of its workspace or a chosen list, and carries permissions per resource (Analytics, Revenue and payments, Goals and events, Funnels, Sites, Notes, Alerts) and extras (Visitor details, Raw events export, Team members, Workspace name, See API keys, Manage API keys). A change acts for the key's creator, with their current role. A request outside them answers 403 naming the missing permission.

Path Parameters

siteId
string
required

The site's id, from GET /sites.

Body

application/json
name
string
required
Required string length: 1 - 80
steps
object[]
required
Required array length: 2 - 12 elements
windowSeconds
integer
default:604800
Required range: 60 <= x <= 7776000

Response

Done.

funnel
object

The funnel.