# List attached segments for companies You can fetch a list of all segments that belong to a company. Endpoint: GET /companies/{id}/segments Version: 2.9 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", "Unstable" ## Path parameters: - `id` (string, required) The unique identifier for the company which is given by Intercom Example: "5f4d3c1c-7b1b-4d7d-a97e-6095715c6632" ## Response 200 fields (application/json): - `type` (string) The type of object - Enum: "list" - `data` (array) An array containing Segment Objects - `data.type` (string) The type of object. Enum: "segment" - `data.id` (string) The unique identifier representing the segment. Example: "56203d253cba154d39010062" - `data.name` (string) The name of the segment. Example: "Active" - `data.created_at` (integer) The time the segment was created. Example: 1394621988 - `data.updated_at` (integer) The time the segment was updated. Example: 1394622004 - `data.person_type` (string) Type of the contact: contact (lead) or user. Enum: "contact", "user" - `data.count` (integer,null) The number of items in the user segment. It's returned when is included in the request. Example: 3 ## 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"