Contacts

post
Create Contact

https://api.iphub.com.au/api/v1/contacts
Creates a contact or updates an existing contact.
Request
Response
Headers
Authorization
required
string
Authentication token of the form `bearer ${sessionToken}`
Query Parameters
updateExisting
optional
string
'phoneNumber' | 'email' | 'userId' If a contact is found with the matching field above, it will be updated instead of created.
Body Parameters
firstName
optional
string
First Name
lastName
optional
string
Last Name
company
optional
string
Company
email
optional
string
Email
phoneNumbers
optional
array
Array of phone numbers eg) ['+61404123456', '+61433222444']
customFields
optional
object
Key Value object of custom fields {'example': 'some_value'}
userId
optional
string
User ID in your database or CRM
tags
optional
array
Array of custom tags. This can be used to trigger flows.
200: OK
{
id: string
}

‚Äč