Skip to content

API de Leads

Listar leads

http
GET /api/leads?status=new&temperature=hot&limit=50&offset=0
Authorization: Bearer {token}

Criar lead

http
POST /api/leads
Authorization: Bearer {token}
Content-Type: application/json

{
  "name": "Maria Silva",
  "phone": "+5511999999999",
  "email": "maria@email.com",
  "source": "manual"
}

Atualizar lead

http
PATCH /api/leads/{id}
Authorization: Bearer {token}
Content-Type: application/json

{
  "temperature": "hot",
  "custom_fields": { "notes": "Lead qualificado" }
}

Atribuir responsável

http
PATCH /api/leads/{id}/assign
Authorization: Bearer {token}
Content-Type: application/json

{
  "pre_sales_user_id": "uuid-do-sdr",
  "sales_user_id": "uuid-do-closer"
}

Deletar lead

http
DELETE /api/leads/{id}
Authorization: Bearer {token}

Requer permissão can_delete_leads.

Feito com carinho pela Lazarotto Academy