Create a Contact🔗
Use the below endpoint to create a contact:
Handy Tips
- A new contact is created if any combination of the following details is unique:
name,email,contact,typeandreference_id. - If all the above details match the details of an existing contact, the API returns details of the existing contact.
- Use the Update Contact API if you want to make changes to an existing contact.
Request Parameters🔗
namemandatorystringThe contact's name. This field is case-sensitive. A minimum of 3 characters and a maximum of 50 characters are allowed. Name cannot end with a special character, except.. Supported characters:a-z,A-Z,0-9,space,’,-,_,/,(,)and ,.. For example,Gaurav Kumar.emailoptionalstringThe contact's email address. For example,gaurav.kumar@example.com.contactoptionalstringThe contact's phone number. For example,9123456789.typeoptionalstringMaximum 40 characters. Classification for the contact being created. For example,employee. The following classifications are available by default:vendorcustomeremployeeselfHandy Tips
Additional Classifications can be created via the Dashboard and then used in APIs. It is not possible to create new Classifications via API.
reference_idoptionalstringMaximum 40 characters. A user-entered reference for the contact. For example,Acme Contact ID 12345.notesoptionalobjectKey-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example,"note_key": "Beam me up Scotty”.
Response Parameters🔗
idstringThe unique identifier linked to the contact. For example,cont_00000000000001.entitystringThe entity being created. Here, it will becontact.namestringThe contact's name. For example,Gaurav Kumar.contactstringThe contact's phone number. For example,9123456789.emailstringThe contact's email address. For example,gaurav.kumar@example.com.typestringA classification for the contact being created. For example,employee.reference_idstringA user-entered reference for the contact. For example,Acme Contact ID 12345.batch_idstringThis parameter is populated if the contact was created as part of a bulk upload. For example,batch_00000000000001.activebooleanPossible values:true(default) = activefalse= inactive
notesobjectKey-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example,"note_key": "Beam me up Scotty”.created_atintegerTimestamp, in Unix, when the contact was created. For example,1545320320.