Contacts in Leadpush are uniquely identified by identity fields. You must provide at least one of the following:
- Email Address: Primary identifier for email-based contacts
- Phone Number: Primary identifier for SMS-based contacts
Create new contacts in your workspace with their attributes and subscription preferences. Contacts are identified by either email or phone number, which serve as unique identity fields for your contact database.
Understanding how contacts are uniquely identified
Contacts in Leadpush are uniquely identified by identity fields. You must provide at least one of the following:
https://api.leadpush.io/v1/workspaces/{workspace_uuid}/contacts
Create a new contact in your workspace
workspace_uuid
string Required ID of your workspace
attributes
object Required curl -X POST https://api.leadpush.io/v1/workspaces/{workspace_uuid}/contacts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"subscribed": true,
"attributes": {
"email": "john.doe@example.com",
"first_name": "John",
"last_name": "Doe",
"company": "Acme Corp"
}
}'
{
"uuid": "<contact_uuid>",
"subscribed": true,
"attributes": {
"email": "john_doe@leadpush.io",
"phone": "+1234567890",
"first_name": "John",
"last_name": "Doe",
"company": "Acme Corp"
},
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z"
}
Recommendations for creating contacts effectively
uuid
field to identify existing contactsupdated_at
timestamp to detect if a contact was updated vs created