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

# Criar/Atualizar Lead

> Use this endpoint to create or update a lead in a list.

Utilize este **endpoint** para criar ou atualizar um lead de uma lista em sua loja Reportana. O parâmetro `email` é **obrigatório** e deve corresponder ao endereço de e-mail do lead a ser removido.

## Headers

<ParamField header="Authorization" type="string" required>
  Basic base64(client\_id + ':' + client\_secret)
</ParamField>

<ParamField header="Content-Type" type="string" required>
  Content-Type:application/json
</ParamField>

## Parameters

<ParamField path="segmentId" type="string" required>
  Segmentation ID.

  Example: 1.
</ParamField>

## Body

<ParamField body="email" type="string">
  Enter the lead's email.

  Example: "[johndoe@gmail.com](mailto:johndoe@gmail.com)".
</ParamField>

<ParamField body="name" type="string">
  Enter the lead's name.

  Example: "John Doe".
</ParamField>

<ParamField body="phone" type="string">
  Enter the lead's phone number.

  Example: "+5511911111111".
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": null
  }
  ```

  ```json 4XX theme={null}
  {
    "success": false,
    "message": "List not found."
  }
  ```
</ResponseExample>
