v1
latestOpenAPI 3.0.02026-08-067074272.5 KBContacts
Create or update a contact with the given phone number
Creates or updates a contact (depending on whether one already exists with the given phone number).
post/dashboards/{dashboard_id}/contacts/{phone_number}
Path parameters
dashboard_idinteger required
Example:121
Id of dashboard
phone_numberstring required
Phone number
Request body
Example request
{
"first_name": "John",
"last_name": "Smith",
"display_name": "John Smith",
"note": "Contact from newsletter.",
"custom_fields": [
{
"id": "cc63eb7d-3575-478f-b42e-1e64e40d41c9",
"value": "john.doe@gmail.com"
}
]
}Response
The new/updated contact.
Example response
{
"phone_number": "13216547890",
"first_name": "John",
"last_name": "Smith",
"display_name": "John Smith",
"thread_id": "166382ad-72ce-466a-bc64-ce5247905e43",
"suppressed_reason": "Contact asked not to be texted.",
"note": "Lead from newsletter",
"groups": [
12,
26
],
"contact_tags": [
"a8608167-caf8-485c-a0c5-d97fb0fc9069",
"54b35406-189d-4e70-a170-c87e231f8ca3"
],
"custom_fields": [
{
"id": "cc63eb7d-3575-478f-b42e-1e64e40d41c9",
"value": "john.doe@gmail.com"
}
]
}