API Reference

Formulário (web to lead)

/form

{
  "name": "Nome do lead",
  "full_name": "Nome completo do lead",
  "email": "[email protected]",
  "phone": "(55) 98765-4321",
  "document": "111.111.111-11",
  "birth_date": "1995-12-17T16:13:13.2670647Z",
  "responsible_id": 1,
  "source_id": 1,
  "gender": 1,
  "life_cycle": 1,
  "custom_field1": "valor personalizado 1",
  "custom_field2": "valor personalizado 2",
  "address": {
    "country": "Brasil",
    "state": "Rio Grande do Sul",
    "city": "Três de Maio",
    "neighborhood": "Centro",
    "postal_code": "98910-000",
    "street": "Avenida Uruguai",
    "number": "513",
    "complement": "Sala 201",
    "type": 1
  },
  "emails": [
    "[email protected]",
    "[email protected]"
  ],
  "phones": [
    "(55) 912345-6789",
    "(45) 91234-5678"
  ],
  "form_token": "token_do_formulario (para o endpoint /form)",
  "company": {
    "name": "Nome do lead",
    "full_name": "Nome completo do lead",
    "email": "[email protected]",
    "phone": "(55) 98765-4321",
    "document": "111.111.111-11",
    "birth_date": "1995-12-17T16:13:13.2670647Z",
    "responsible_id": 1,
    "source_id": 1,
    "life_cycle": 1,
    "custom_field1": "valor personalizado 1",
    "custom_field2": "valor personalizado 2",
    "address": {
      "country": "Brasil",
      "state": "Rio Grande do Sul",
      "city": "Três de Maio",
      "neighborhood": "Centro",
      "postal_code": "98910-000",
      "street": "Avenida Uruguai",
      "number": "513",
      "complement": "Sala 201",
      "type": 1
    },
    "emails": [
      "[email protected]",
      "[email protected]"
    ],
    "phones": [
      "(55) 98765-4321",
      "(45) 91234-5678"
    ]
  },
  "trails": [
    {
      "referrer": "",
      "source": "direct",
      "source_type": 4,
      "fbclid": null,
      "gclid": null,
      "utm_id": null,
      "utm_source": "",
      "utm_medium": "",
      "utm_campaign": null,
      "utm_term": null,
      "utm_content": null,
      "date": "2023-05-10T13:05:54.020Z"
    },
    {
      "referrer": "https://web.atendare.com/",
      "source": "referral",
      "source_type": 2,
      "fbclid": null,
      "gclid": null,
      "utm_id": null,
      "utm_source": null,
      "utm_medium": null,
      "utm_campaign": null,
      "utm_term": null,
      "utm_content": null,
      "date": "2023-08-18T11:57:30.910Z"
    }
  ]
}