Skip to main content
POST
/
api
/
v1
/
leads
Criar lead
curl --request POST \
  --url https://api.datacrazy.io/v1/api/api/v1/leads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Guilherme Gavazzoni",
  "image": "https://dc-qqqq2222pb.s3.amazonaws.com/0a7ac87c-2f50-46b5-9c39-80ffec53e633/1163f5c2-62f4-443f-a84f-9c223b05ae3b",
  "phone": "+55 (47) 991331190",
  "email": "guilherme@datacrazy.com.br",
  "source": "Google ads",
  "company": "Apple",
  "taxId": "108.154.702-92",
  "site": "www.meulead.com.br",
  "instagram": "@guilhermegavazzoni",
  "address": {
    "zip": "88338-130",
    "address": "Avenida Brasil",
    "block": "Centro",
    "city": "Balneário Camboriú",
    "state": "SC",
    "country": "BR"
  },
  "sourceReferral": {
    "sourceId": "2bc3d979-93a4-4e64-8903-5d9379d3de91",
    "sourceUrl": "https://example.com/artigo-de-origem",
    "ctwaId": "849fefab-e697-4720-9303-e788c23790cc"
  },
  "tags": [
    {
      "id": [
        "<string>"
      ]
    }
  ],
  "lists": [
    {
      "id": [
        "<string>"
      ]
    }
  ],
  "attendant": {
    "id": "<string>"
  }
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string

Array de ID de tags

Example:

"Guilherme Gavazzoni"

image
string

Url da Imagem do lead

Example:

"https://dc-qqqq2222pb.s3.amazonaws.com/0a7ac87c-2f50-46b5-9c39-80ffec53e633/1163f5c2-62f4-443f-a84f-9c223b05ae3b"

phone
string

Telefone do lead

Example:

"+55 (47) 991331190"

email
string

Email do lead

Example:

"guilherme@datacrazy.com.br"

source
string

Origem do lead

Example:

"Google ads"

company
string

Empresa do lead

Example:

"Apple"

taxId
string

Documento de identificação

Example:

"108.154.702-92"

site
string

Site do lead

Example:

"www.meulead.com.br"

instagram
string

Instagram do lead

Example:

"@guilhermegavazzoni"

address
object

Endereço vinculado ao lead

Example:
{
"zip": "88338-130",
"address": "Avenida Brasil",
"block": "Centro",
"city": "Balneário Camboriú",
"state": "SC",
"country": "BR"
}
sourceReferral
object

Fonte de referencia do lead

tags
object[]

Array de ID de tags

lists
object[]

Array de ID de listas

attendant
object

ID do atendente