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>",
  "agentId": null,
  "name": null,
  "email": null,
  "phone": null,
  "company": null,
  "site": null,
  "custom": {},
  "utm": {},
  "capture": "completed",
  "workspaceId": "<string>",
  "createdAt": "2025-07-21T17:52:50.030Z",
  "updatedAt": "2025-07-21T17:52:50.030Z"
}

Authorizations

Authorization
string
header
required

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

Body

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 personalizados

utm
object

Informações de rastreamento UTM

capture
enum<string>
default:completed

Status da captura de dados do lead

Opções disponíveis:
completed,
partial

Response

Successful response

Dados do lead

id
string
required

Identificador do lead

workspaceId
string
required

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 personalizados

utm
object

Informações de rastreamento UTM

capture
enum<string>
default:completed

Status da captura de dados do lead

Opções disponíveis:
completed,
partial
createdAt
string<date-time>
default:2025-07-21T17:52:50.030Z

Data de criação

updatedAt
string<date-time>
default:2025-07-21T17:52:50.030Z

Data da última atualização