# Attach a Contact to a Company You can attach a company to a single contact. Endpoint: POST /contacts/{id}/companies Version: 2.13 Security: bearerAuth ## Header parameters: - `Intercom-Version` (string) Intercom API version.By default, it's equal to the version set in the app package. Enum: "1.0", "1.1", "1.2", "1.3", "1.4", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "Unstable" ## Path parameters: - `id` (string, required) The unique identifier for the contact which is given by Intercom ## Request fields (application/json): - `id` (string, required) The unique identifier for the company which is given by Intercom Example: "58a430d35458202d41b1e65b" ## Response 200 fields (application/json): - `type` (string) Value is Enum: "company" - `id` (string) The Intercom defined id representing the company. Example: "531ee472cce572a6ec000006" - `name` (string) The name of the company. Example: "Blue Sun" - `app_id` (string) The Intercom defined code of the workspace the company is associated to. Example: "ecahpwf5" - `plan` (object) - `plan.type` (string) Value is always "plan" Example: "plan" - `plan.id` (string) The id of the plan Example: "269315" - `plan.name` (string) The name of the plan Example: "Pro" - `company_id` (string) The company id you have defined for the company. Example: "6" - `remote_created_at` (integer) The time the company was created by you. Example: 1663597223 - `created_at` (integer) The time the company was added in Intercom. Example: 1663597223 - `updated_at` (integer) The last time the company was updated. Example: 1663597223 - `last_request_at` (integer) The time the company last recorded making a request. Example: 1663597223 - `size` (integer) The number of employees in the company. Example: 100 - `website` (string) The URL for the company website. Example: "https://www.intercom.com" - `industry` (string) The industry that the company operates in. Example: "Software" - `monthly_spend` (integer) How much revenue the company generates for your business. Example: 100 - `session_count` (integer) How many sessions the company has recorded. Example: 100 - `user_count` (integer) The number of users in the company. Example: 100 - `custom_attributes` (object) The custom attributes you have set on the company. Example: {"paid_subscriber":true,"monthly_spend":155.5,"team_mates":9} - `tags` (object) The list of tags associated with the company - `tags.type` (string) The type of the object Enum: "tag.list" - `tags.tags` (array) - `segments` (object) The list of segments associated with the company - `segments.segments` (array) - `segments.segments.type` (string) The type of object. Enum: "segment" - `segments.segments.id` (string) The unique identifier representing the segment. Example: "56203d253cba154d39010062" - `segments.segments.name` (string) The name of the segment. Example: "Active" - `segments.segments.created_at` (integer) The time the segment was created. Example: 1394621988 - `segments.segments.updated_at` (integer) The time the segment was updated. Example: 1394622004 - `segments.segments.person_type` (string) Type of the contact: contact (lead) or user. Enum: "contact", "user" - `segments.segments.count` (integer,null) The number of items in the user segment. It's returned when is included in the request. Example: 3 ## Response 400 fields (application/json): - `type` (string, required) The type is error.list Example: "error.list" - `request_id` (string,null) Example: "f93ecfa8-d08a-4325-8694-89aeb89c8f85" - `errors` (array, required) An array of one or more error objects - `errors.code` (string, required) A string indicating the kind of error, used to further qualify the HTTP response code Example: "unauthorized" - `errors.message` (string,null) Optional. Human readable description of the error. Example: "Access Token Invalid" - `errors.field` (string,null) Optional. Used to identify a particular field or query parameter that was in error. Example: "email" ## Response 401 fields (application/json): - `type` (string, required) The type is error.list Example: "error.list" - `request_id` (string,null) Example: "f93ecfa8-d08a-4325-8694-89aeb89c8f85" - `errors` (array, required) An array of one or more error objects - `errors.code` (string, required) A string indicating the kind of error, used to further qualify the HTTP response code Example: "unauthorized" - `errors.message` (string,null) Optional. Human readable description of the error. Example: "Access Token Invalid" - `errors.field` (string,null) Optional. Used to identify a particular field or query parameter that was in error. Example: "email" ## Response 404 fields (application/json): - `type` (string, required) The type is error.list Example: "error.list" - `request_id` (string,null) Example: "f93ecfa8-d08a-4325-8694-89aeb89c8f85" - `errors` (array, required) An array of one or more error objects - `errors.code` (string, required) A string indicating the kind of error, used to further qualify the HTTP response code Example: "unauthorized" - `errors.message` (string,null) Optional. Human readable description of the error. Example: "Access Token Invalid" - `errors.field` (string,null) Optional. Used to identify a particular field or query parameter that was in error. Example: "email"