Create contact

POST {{baseUrl}}/crm/contacts?raw=false

Create contact

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"name"=>"Elon Musk", "owner_id"=>"{{primaryOwnerId}}", "type"=>"personal", "company_id"=>"{{primaryCompanyId}}", "company_name"=>"23456", "lead_id"=>"{{primaryLeadId}}", "first_name"=>"{{$randomFirstName}}", "middle_name"=>"D.", "last_name"=>"{{$randomLastName}}", "prefix"=>"Mr.", "suffix"=>"PhD", "title"=>"CEO", "department"=>"Engineering", "language"=>"EN", "gender"=>"female", "birthday"=>"2000-08-12", "image"=>"https://unavatar.io/elon-musk", "photo_url"=>"https://unavatar.io/elon-musk", "lead_source"=>"Cold Call", "fax"=>"+12129876543", "description"=>"Internal champion", "current_balance"=>10.5, "active"=>true, "websites"=>[{"url"=>"{{$randomUrl}}", "type"=>"primary"}], "addresses"=>[{"type"=>"primary", "line1"=>"{{$randomStreetAddress}}", "line2"=>"{{$randomDepartment}}", "city"=>"{{$randomCity}}", "state"=>"CA", "postal_code"=>"94104", "country"=>"US", "latitude"=>"{{$randomLatitude}}", "longitude"=>"{{$randomLongitude}}"}, {"type"=>"shipping", "line1"=>"{{$randomStreetAddress}}", "line2"=>"{{$randomDepartment}}", "city"=>"{{$randomCity}}", "state"=>"CA", "postal_code"=>"94104", "country"=>"US", "latitude"=>"{{$randomLatitude}}", "longitude"=>"{{$randomLongitude}}"}], "social_links"=>[{"url"=>"https://twitter.com/apideck-io", "type"=>"twitter"}], "phone_numbers"=>[{"number"=>"{{$randomPhoneNumber}}", "type"=>"primary"}, {"number"=>"{{$randomPhoneNumber}}", "type"=>"fax"}], "emails"=>[{"type"=>"primary", "email"=>"{{$randomEmail}}"}], "email_domain"=>"gmail.com", "tags"=>["{{$randomBsNoun}}", "{{$randomBsNoun}}"], "opportunity_ids"=>["12345", "12345"]}

HEADERS

KeyDatatypeRequiredDescription
x-apideck-consumer-idstring(Required) ID of the consumer which you want to get or push data from
x-apideck-app-idstring(Required) The ID of your Unify application
x-apideck-service-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"status_code":200,"status":"OK","service":"zoho-crm","resource":"contacts","operation":"add","data":{"id":"12345"}}