Create a New Company¶
POST https://api.copper.com/developer_api/v1/companies
Request body¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | { "name":"Demo Company", "address": { "street": "123 Main Street", "city": "Savannah", "state": "Georgia", "postal_code": "31410", "country": "United States" }, "email_domain":"democompany.com", "details":"This is a demo company", "phone_numbers": [ { "number":"415-123-45678", "category":"work" } ], "primary_contact_id": 27140359 } |
Example Requests¶
Create company¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | curl --location --request POST "https://api.copper.com/developer_api/v1/companies" \ --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \ --header "X-PW-Application: developer_api" \ --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \ --header "Content-Type: application/json" \ --data "{ \"name\":\"Demo Company\", \"address\": { \"street\":\"123 Main St\", \"city\": \"San Francisco\", \"state\":\"CA\", \"postal_code\": \"94105\" }, \"email_domain\":\"democompany.com\", \"details\":\"This is a demo company\", \"phone_numbers\": [ { \"number\":\"415-123-45678\", \"category\":\"work\" } ], \"primary_contact_id\": \"27140359\" }" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | { "id": 13358412, "name": "Demo Company", "address": { "street": "123 Main St", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": null }, "assignee_id": null, "contact_type_id": null, "details": "This is a demo company", "email_domain": "democompany.com", "phone_numbers": [ { "number": "415-123-45678", "category": "work" } ], "primary_contact_id": 27140359, "socials": [], "tags": [], "websites": [], "custom_fields": [ { "custom_field_definition_id": 100764, "value": null }, { "custom_field_definition_id": 103481, "value": null } ], "interaction_count": 0, "date_created": 1496707930, "date_modified": 1496707930 } |