Creating a contact through API: add_contact


Sample add_contact request

?action=add_contact&name=CONTACT_NAME&email=CONTACT_EMAIL
Creates new account contact
*no invitation sent

Required parameters:
  • email — contact email
  • name — contact first and last name

Optional parameters of the contact:
  • title — position
  • group — folder name
  • phone — main phone number
  • phone2 — office phone number
  • phone3 — mobile phone number
  • phone4 — home phone number
  • address — address
  • address2 — additional address

Sample JSON response
If the request succeeds, the response will contain ok status and the following data:

{
    "status": "ok",
    "data": {
        "id": "CONTACT_ID",
        "first_name": "CONTACT_FIRST_NAME",
        "last_name": "CONTACT_LAST_NAME",
        "name": "CONTACT_NAME",
        "title": "CONTACT_POSITION",
        "group": "GROUP_NAME",
        "email": "CONTACT_EMAIL",
        "phone": "CONTACT_PHONE",
        "phone2": "CONTACT_PHONE_2",
        "phone3": "CONTACT_PHONE_3",
        "phone4": "CONTACT_PHONE_4",
        "address": "CONTACT_ADDRESS",
        "address2": "CONTACT_ADDRESS_2"
    }
}