> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assiny.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Funis

> Criar funis e receber o link do checkout para divulgar

O funil liga a oferta de entrada às páginas de upsell, downsell e de obrigado. É o **link do funil** que você divulga para o comprador.

## Criar funil

```
POST /funnel
```

| Campo | Tipo | Descrição |
| - | - | - |
| `name` | texto | **Obrigatório.** Nome do funil. |
| `checkoutId` | UUID | **Obrigatório.** ID da oferta de entrada (`ENTRY`). |
| `isActive` | sim/não | Se o funil já começa ativo. |

```bash curl theme={null}
curl -X POST https://bff.assiny.com.br/v1/public/funnel \
  -H "Authorization: Bearer SUA_CHAVE" \
  -H "ProjectId: SEU_PROJECT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Funil principal",
    "checkoutId": "ID_DA_OFERTA",
    "isActive": true
  }'
```

A resposta (`201`) traz o funil com `id`, `shortFunnelId` e `url` — o link do checkout para divulgar.

## Criar vários funis

```
POST /multiple-funnels
```

Mesmo corpo do **Criar funil**, dentro de uma lista: `[{...}, {...}]`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.