Add an organization

POST {{baseUrl}}/organizations

Adds a new organization. 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 organizationFields and look for key values. For more information, see the tutorial for adding an organization.

Request Body

{"name"=>"<string>", "add_time"=>"<string>", "owner_id"=>"<integer>", "label"=>"<integer>", "label_ids"=>["<integer>", "<integer>"], "visible_to"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:1,&quot;company_id&quot;:77,&quot;owner_id&quot;:{&quot;id&quot;:10,&quot;name&quot;:&quot;Will Smith&quot;,&quot;email&quot;:&quot;will.smith@pipedrive.com&quot;,&quot;has_pic&quot;:0,&quot;pic_hash&quot;:&quot;2611ace8ac6a3afe2f69ed56f9e08c6b&quot;,&quot;active_flag&quot;:true,&quot;value&quot;:10},&quot;name&quot;:&quot;Bolt&quot;,&quot;open_deals_count&quot;:1,&quot;related_open_deals_count&quot;:2,&quot;closed_deals_count&quot;:3,&quot;related_closed_deals_count&quot;:1,&quot;email_messages_count&quot;:2,&quot;people_count&quot;:1,&quot;activities_count&quot;:2,&quot;done_activities_count&quot;:1,&quot;undone_activities_count&quot;:0,&quot;files_count&quot;:0,&quot;notes_count&quot;:0,&quot;followers_count&quot;:1,&quot;won_deals_count&quot;:0,&quot;related_won_deals_count&quot;:0,&quot;lost_deals_count&quot;:0,&quot;related_lost_deals_count&quot;:0,&quot;active_flag&quot;:true,&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/f8893852574273f2747bf6ef09d11cf14ac8f269_128.jpg&quot;,&quot;512&quot;:&quot;https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb2ac8f269_512.jpg&quot;},&quot;value&quot;:101},&quot;country_code&quot;:null,&quot;first_char&quot;:&quot;b&quot;,&quot;update_time&quot;:&quot;2020-09-08 12:14:11&quot;,&quot;add_time&quot;:&quot;2020-02-25 10:04:08&quot;,&quot;visible_to&quot;:&quot;3&quot;,&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;label&quot;:7,&quot;label_ids&quot;:[7,8],&quot;address&quot;:&quot;Mustamäe tee 3a, 10615 Tallinn&quot;,&quot;address_subpremise&quot;:&quot;&quot;,&quot;address_street_number&quot;:&quot;3a&quot;,&quot;address_route&quot;:&quot;Mustamäe tee&quot;,&quot;address_sublocality&quot;:&quot;Kristiine&quot;,&quot;address_locality&quot;:&quot;Tallinn&quot;,&quot;address_admin_area_level_1&quot;:&quot;Harju maakond&quot;,&quot;address_admin_area_level_2&quot;:&quot;&quot;,&quot;address_country&quot;:&quot;Estonia&quot;,&quot;address_postal_code&quot;:&quot;10616&quot;,&quot;address_formatted_address&quot;:&quot;Mustamäe tee 3a, 10616 Tallinn, Estonia&quot;,&quot;owner_name&quot;:&quot;John Doe&quot;,&quot;cc_email&quot;:&quot;org@pipedrivemail.com&quot;},&quot;related_objects&quot;:{&quot;organization&quot;:{&quot;1&quot;:{&quot;id&quot;:1,&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;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}},&quot;picture&quot;:{&quot;1&quot;:{&quot;id&quot;:1,&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;}}}}}