---
title: "Получить сценарии"
method: GET
path: "/funnels"
tags: ["Funnels"]
---

# Получить сценарии

`GET /funnels`

## Request

- Base URL: `https://telegram.appsmax.ru/api/v1`
- URL: `https://telegram.appsmax.ru/api/v1/funnels`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Token`

## Query parameters

- `bot_id` integer
- `active` boolean
- `per_page` integer
- `page` integer

## Response `200`

Пагинируемая коллекция сценариев.

- FunnelCollection
  - `data` object[], required
    - `id` integer, required
    - `bot_id` integer, required
    - `title` string, required
    - `description` string, nullable
    - `is_active` boolean, required
    - `restart_mode` string, nullable
    - `start_block_id` integer, nullable
    - `version` integer, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
  - `links` object
  - `meta` object

## Other responses

- `401`: Токен отсутствует, недействителен или отозван.
- `403`: Нет нужного scope или доступа к организации.
- `404`: Ресурс не найден в доступном контуре.
- `422`: Поля запроса не прошли валидацию.
- `429`: Превышен rate limit токена или операции.
- `500`: Непредвиденная ошибка. Передайте X-Request-Id в поддержку AppsMax.

---

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