Create a contact

You can create a new contact (ie. user or lead)

     

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization

     

Request Body Parameter
Attribute Type Required
first_name string Yes
last_name string Yes
email string Yes
phone_number string No
job_title string No

Example Request & Response


$ curl https://api.custerem.com/<org_id>/contacts/ \
-X POST \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "first_name": "Hayri",
    "last_name": "Cicek",
    "email": "hayri.cicek@custerem.com",
    "phone_number": "+46",
    "job_title": "Software Developer"
}'

 

201 Created

{
    "id": 6,
    "first_name": "Hayri",
    "last_name": "Cicek",
    "phone_number": "+46",
    "email": "hayri.cicek@custerem.com",
    "job_title": "Software Developer",
    "contact_company": 31
}

 

400 Bad Request

{
    "first_name": [
        "This field may not be blank."
    ]
}