---
title: "List attached segments for companies"
method: GET
path: "/companies/{company_id}/segments"
tags: ["Companies"]
---

# List attached segments for companies

`GET /companies/{company_id}/segments`

You can fetch a list of all segments that belong to a company.

## Path parameters

- `company_id` string, required

## Headers

- `Intercom-Version` '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' | '2.14' — Intercom API version.</br>By default, it's equal to the version set in the app package.

## Response `200`

Successful

- CompanyAttachedSegments — A list of Segment Objects
  - `type` 'list' — The type of object - `list`
  - `data` Segment[] — An array containing Segment Objects
    - `type` 'segment' — The type of object.
    - `id` string — The unique identifier representing the segment.
    - `name` string — The name of the segment.
    - `created_at` integer — The time the segment was created.
    - `updated_at` integer — The time the segment was updated.
    - `person_type` 'contact' | 'user' — Type of the contact: contact (lead) or user.
    - `count` integer, nullable — The number of items in the user segment. It's returned when `include_count=true` is included in the request.

## Other responses

- `401` — Unauthorized
- `404` — Company Not Found

---

[API](https://skmtc.net/intercom/apis/intercom-api.md) · [All operations](https://skmtc.net/intercom/apis/intercom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/intercom/intercom-api/versions/9517e80f2642/schema)
