---
title: "Captura de lead (passo inicial)"
method: PUT
path: "/v1/tours/{id}/lead-capture"
---

# Captura de lead (passo inicial)

`PUT /v1/tours/{id}/lead-capture`

## Request

- Base URL: `https://app.guiaflow.pro`
- URL: `https://app.guiaflow.pro/v1/tours/{id}/lead-capture`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `enabled` boolean
  - `title` string
  - `text` string
  - `fields` object
    - `name` 'required' | 'optional' | 'hidden'
    - `email` 'required' | 'optional' | 'hidden'
    - `phone` 'required' | 'optional' | 'hidden'
  - `consentText` string: Texto de consentimento (LGPD). Padrão: o texto do GuiaFlow.
  - `allowSkip` boolean: Deixa pular o formulário (padrão true).
  - `submitLabel` string
  - `skipLabel` string

## Response `200`

OK

- object
  - `ok` true

## Other responses

- `400`: Erro
- `401`: Erro
- `402`: Erro
- `403`: Erro
- `404`: Erro
- `429`: Erro

---

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