Add a person

POST {{baseUrl}}/persons

Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for key values.
If a company uses the Campaigns product, then this endpoint will also accept and return the data.marketing_status field.

Request Body

{"name"=>"<string>", "owner_id"=>"<integer>", "org_id"=>"<integer>", "email"=>[{"value"=>"<string>", "primary"=>"<boolean>", "label"=>"<string>"}, {"value"=>"<string>", "primary"=>"<boolean>", "label"=>"<string>"}], "phone"=>[{"value"=>"<string>", "primary"=>"<boolean>", "label"=>"<string>"}, {"value"=>"<string>", "primary"=>"<boolean>", "label"=>"<string>"}], "label"=>"<integer>", "label_ids"=>["<integer>", "<integer>"], "visible_to"=>"<string>", "marketing_status"=>"<string>", "add_time"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:1,&quot;company_id&quot;:12,&quot;owner_id&quot;:{&quot;id&quot;:123,&quot;name&quot;:&quot;Jane Doe&quot;,&quot;email&quot;:&quot;jane@pipedrive.com&quot;,&quot;has_pic&quot;:1,&quot;pic_hash&quot;:&quot;2611ace8ac6a3afe2f69ed56f9e08c6b&quot;,&quot;active_flag&quot;:true,&quot;value&quot;:123},&quot;org_id&quot;:{&quot;name&quot;:&quot;Org Name&quot;,&quot;people_count&quot;:1,&quot;owner_id&quot;:123,&quot;address&quot;:&quot;Mustamäe tee 3a, 10615 Tallinn&quot;,&quot;active_flag&quot;:true,&quot;cc_email&quot;:&quot;org@pipedrivemail.com&quot;,&quot;value&quot;:1234},&quot;name&quot;:&quot;Will Smith&quot;,&quot;first_name&quot;:&quot;Will&quot;,&quot;last_name&quot;:&quot;Smith&quot;,&quot;open_deals_count&quot;:2,&quot;related_open_deals_count&quot;:2,&quot;closed_deals_count&quot;:3,&quot;related_closed_deals_count&quot;:3,&quot;participant_open_deals_count&quot;:1,&quot;participant_closed_deals_count&quot;:1,&quot;email_messages_count&quot;:1,&quot;activities_count&quot;:1,&quot;done_activities_count&quot;:1,&quot;undone_activities_count&quot;:2,&quot;files_count&quot;:2,&quot;notes_count&quot;:2,&quot;followers_count&quot;:3,&quot;won_deals_count&quot;:3,&quot;related_won_deals_count&quot;:3,&quot;lost_deals_count&quot;:1,&quot;related_lost_deals_count&quot;:1,&quot;active_flag&quot;:true,&quot;phone&quot;:[{&quot;value&quot;:&quot;12345&quot;,&quot;primary&quot;:true,&quot;label&quot;:&quot;work&quot;}],&quot;email&quot;:[{&quot;value&quot;:&quot;12345@email.com&quot;,&quot;primary&quot;:true,&quot;label&quot;:&quot;work&quot;}],&quot;primary_email&quot;:&quot;12345@email.com&quot;,&quot;first_char&quot;:&quot;w&quot;,&quot;update_time&quot;:&quot;2020-05-08 05:30:20&quot;,&quot;add_time&quot;:&quot;2017-10-18 13:23:07&quot;,&quot;visible_to&quot;:&quot;3&quot;,&quot;marketing_status&quot;:&quot;no_consent&quot;,&quot;picture_id&quot;:{&quot;item_type&quot;:&quot;person&quot;,&quot;item_id&quot;:25,&quot;active_flag&quot;:true,&quot;add_time&quot;:&quot;2020-09-08 08:17:52&quot;,&quot;update_time&quot;:&quot;0000-00-00 00:00:00&quot;,&quot;added_by_user_id&quot;:967055,&quot;pictures&quot;:{&quot;128&quot;:&quot;https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_128.jpg&quot;,&quot;512&quot;:&quot;https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_512.jpg&quot;},&quot;value&quot;:4},&quot;next_activity_date&quot;:&quot;2019-11-29&quot;,&quot;next_activity_time&quot;:&quot;11:30:00&quot;,&quot;next_activity_id&quot;:128,&quot;last_activity_id&quot;:34,&quot;last_activity_date&quot;:&quot;2019-11-28&quot;,&quot;last_incoming_mail_time&quot;:&quot;2019-05-29 18:21:42&quot;,&quot;last_outgoing_mail_time&quot;:&quot;2019-05-30 03:45:35&quot;,&quot;label&quot;:1,&quot;label_ids&quot;:[1,2,3],&quot;org_name&quot;:&quot;Organization name&quot;,&quot;owner_name&quot;:&quot;Jane Doe&quot;,&quot;cc_email&quot;:&quot;org@pipedrivemail.com&quot;},&quot;related_objects&quot;:{&quot;user&quot;:{&quot;123&quot;:{&quot;id&quot;:123,&quot;name&quot;:&quot;Jane Doe&quot;,&quot;email&quot;:&quot;jane@pipedrive.com&quot;,&quot;has_pic&quot;:1,&quot;pic_hash&quot;:&quot;2611ace8ac6a3afe2f69ed56f9e08c6b&quot;,&quot;active_flag&quot;:true}}}}