POST
/
2022-05
/
segments
/
{segmentId}
/
customers
curl --request POST \
  --url https://api.reportana.com/2022-05/segments/{segmentId}/customers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "email": "<string>",
  "name": "<string>",
  "phone": "<string>"
}'
{
  "success": true,
  "data": null
}

Use this endpoint to create or update a lead in a list for your Reportana store. The email attribute is required and must be unique, serving as the primary identifier for the lead in our system.

Headers

Authorization
string
required

Basic base64(client_id + ’:’ + client_secret)

Content-Type
string
required

Content-Type:application/json

Parameters

segmentId
string
required

Segmentation ID.

Example: 1.

Body

email
string

Enter the lead’s email.

Example: “johndoe@gmail.com”.

name
string

Enter the lead’s name.

Example: “John Doe”.

phone
string

Enter the lead’s phone number.

Example: “+5511911111111”.

{
  "success": true,
  "data": null
}