---
title: "Create Analytics Funnel"
method: POST
path: "/api/v1/admin/analytics/funnels"
tags: ["Admin"]
---

# Create Analytics Funnel

`POST /api/v1/admin/analytics/funnels`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/admin/analytics/funnels`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- AnalyticsFunnelPayload
  - `name` string, required
  - `description` string
  - `steps` AnalyticsFunnelStep[]
    - `id` string, nullable
    - `name` string, required
    - `type` string
    - `event_name` string, nullable
    - `url_match_type` string, nullable
    - `url_value` string, nullable
  - `position` integer
  - `is_active` boolean

## Response `200`

Successful Response

- AnalyticsFunnelResponse
  - `id` string, required
  - `name` string, required
  - `description` string
  - `steps` AnalyticsFunnelStep[]
    - `id` string, nullable
    - `name` string, required
    - `type` string
    - `event_name` string, nullable
    - `url_match_type` string, nullable
    - `url_value` string, nullable
  - `position` integer
  - `is_active` boolean
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

---

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