Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Nome completo do lead

Example:

"Maria Silva"

type
enum<string>
required

Canal de origem do lead

Available options:
web,
telegram,
email,
manual
Example:

"web"

phone_number
string

Número de telefone. Obrigatório quando aplicável. Formato: DDI+DDD+Numero, apenas dígitos.

Example:

"5511999998888"

email
string<email>

Endereço de e-mail do lead

Example:

"maria@exemplo.com"

agent_id
string<uuid>

UUID do agent ao qual o lead será atribuído. Se não informado, o lead fica sem agent.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

custom_fields
object

Campos personalizados como pares chave-valor. Use para armazenar informações extras do lead.

Example:

Response

Lead já existia. Retorna o lead existente sem criar duplicata.

id
integer
Example:

1234

name
string
Example:

"Maria Silva"

type
enum<string>
Available options:
web,
telegram,
email,
manual
Example:

"web"

phone_number
string | null
Example:

"5511999998888"

email
string | null
Example:

"maria@exemplo.com"

status
enum<string>
Available options:
new,
contacted,
qualified,
lost,
converted
Example:

"new"

agent_id
string<uuid> | null
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

custom_fields
object | null
Example:
created_at
string<date-time>
Example:

"2025-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2025-01-15T14:22:00Z"