Lead Add
POST https://api.closum.com/v2/lead/add/?api-key={{api_key}}
To send multiple tags, apply different keys inside tags[], ex: tags[1] tags[2] ... tags[...]
Field | Required | Notes |
---|---|---|
name | no | |
Email or Mobile Required | ||
mobile_number | Email or Mobile Required | |
consent_email | yes | Boolean |
consent_sms | yes | Boolean |
contactlifecyclestage_id | no | Optional. Valid 1-9 |
custom_data | no | Json |
tags[N] | no | N+1 for each tag |
birth_date | no | Must be a valid date in the format Y-m-d |
custom_fields | no | Json |
update_enabled | no | Facilitate to update the existing contact in the same request (update_enabled = true) |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
api-key | string |
Request Body
{"name"=>"{name}", "email"=>"{email}", "mobile_number"=>"{mobile_number}", "consent_email"=>"{consent_email}", "consent_sms"=>"{consent_sms}", "contact_lifecycle_stage_id"=>"{contact_lifecycle_stage_id}", "custom_data"=>"{custom_data}", "tags"=>"{tags}", "birth_date"=>"{birth_date}", "custom_fields"=>{"var"=>"{value}"}, "update_enabled"=>"{update_enabled}"}