1. Home
  2. API v2.0
  3. Contacts
  4. Add Contact

Add Contact

Method: /contacts.[format]

Fields:

Name Data Type Description
first_name String Person’s first name
last_name String Person’s last name
job_title String Job Title or Position
phone String Phone Number
cell String Cell Phone Number
fax String Fax Number
email_1 String Primary Email Address
email_2 String Secondary Email Address

Syntax

https://[subdomain].salesbinder.com/api/2.0/contacts.json

HTTP Request Type: POST

Example JSON Data to Submit

{
   "contact":{
      "first_name":"John",
      "last_name":"Doe",
      "job_title":"Owner",
      "phone":"604-555-5555",
      "cell":"778-222-2222",
      "email_1":"john.doe@gmail.com"
   }
}

Success

If you have been successful in saving a new contact, the response will return the newly created data object along with a “message” value of “Saved” as seen below.

Example JSON Returned Response

{
    "message": "Saved",
    "contact": {
        "first_name": "John",
        "last_name": "Doe",
        "job_title": "Owner",
        "phone": "604-555-5555",
        "cell": "778-222-2222",
        "email_1": "john.doe@gmail.com",
        "created": "2016-11-11T01:20:45+00:00",
        "modified": "2016-11-11T01:20:45+00:00",
        "id": "21a00776-60fa-4c79-8d09-0c741b3151f4"
    }
}

Example XML Data to Submit

<?xml version="1.0" encoding="UTF-8" ?>
<contact>
  <first_name>John</first_name>
  <last_name>Doe</last_name>
  <job_title>Owner</job_title>
  <phone>604-555-5555</phone>
  <cell>778-222-2222</cell>
  <email_1>john.doe@gmail.com</email_1>
</contact>
Was this article helpful to you? Yes No