Pular para o conteúdo principal
POST
/
leads
Criar lead
curl --request POST \
  --url https://api.meuassistente.rdstationmentoria.com.br/rest/leads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agentId": null,
  "name": null,
  "email": null,
  "phone": null,
  "company": null,
  "site": null,
  "custom": {},
  "utm": {},
  "capture": "completed"
}
'
{
  "id": "<string>",
  "workspaceId": "<string>",
  "agentId": null,
  "name": null,
  "email": null,
  "phone": null,
  "company": null,
  "site": null,
  "custom": {},
  "utm": {},
  "capture": "completed",
  "createdAt": "2025-11-26T20:01:11.951Z",
  "updatedAt": "2025-11-26T20:01:11.951Z"
}

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json

Dados do lead

agentId
string | null

Assistente que capturou o lead

name
string | null

Nome

email
string | null

Email

phone
string | null

Telefone

company
string | null

Empresa

site
string | null

Site

custom
object

Campos

utm
object

Informações de rastreamento UTM

capture
enum<string>
padrão:completed

Status da captura de dados do lead

Opções disponíveis:
completed,
partial

Resposta

Successful response

Dados do lead

id
string
obrigatório

Identificador do lead

workspaceId
string
obrigatório

Identificador do workspace associado

agentId
string | null

Assistente que capturou o lead

name
string | null

Nome

email
string | null

Email

phone
string | null

Telefone

company
string | null

Empresa

site
string | null

Site

custom
object

Campos

utm
object

Informações de rastreamento UTM

capture
enum<string>
padrão:completed

Status da captura de dados do lead

Opções disponíveis:
completed,
partial
createdAt
string<date-time>
padrão:2025-11-26T20:01:11.951Z

Data de criação

updatedAt
string<date-time>
padrão:2025-11-26T20:01:11.951Z

Data da última atualização