---
title: "Create a conversion funnel"
method: POST
path: "/api/sites/{siteId}/funnels"
tags: ["Reporting"]
---

# Create a conversion funnel

`POST /api/sites/{siteId}/funnels`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/sites/{siteId}/funnels`
- Auth: HTTP bearer

## Path parameters

- `siteId` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `name` string, required
  - `steps` object[], required
    - `label` string, required
    - `eventName` string
    - `path` string

## Response `201`

Funnel created

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient site role
- `404`: Site or resource not found
- `500`: Internal service error

---

[API](https://skmtc.dev/slimlytics/apis/slimlytics-api.md) · [All operations](https://skmtc.dev/slimlytics/apis/slimlytics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slimlytics/apis/slimlytics-api/revisions/f9a26641a254?raw)
