Skip to main content
POST
Create/Update Lead
Use this endpoint to create or update a lead and add it to a list in your Reportana store. The name parameter is required, and you must also send email or phone (at least one of them). If a lead with the same email or phone already exists, it is updated instead of duplicated: the name is replaced, document and birth_date are replaced when sent, and the email and phone are only filled in if the lead does not have them yet.
Available from the Pro plan.

Headers

string
required
Basic base64(client_id + ’:’ + client_secret)
string
required
Content-Type:application/json

Parameters

string
required
List ID.Example: 1.

Body

string
required
Lead’s name.Example: “John Doe”.
string
Lead’s email. Required when phone is not sent.Example: “johndoe@gmail.com”.
string
Lead’s phone number. Required when email is not sent.Example: “+5511911111111”.
string
Lead’s document (CPF or CNPJ). Punctuation is removed and only the digits are stored.Example: “123.456.789-09”.
string
Lead’s birth date in the format YYYY-MM-DD.Example: “1990-05-20”.