GET
/companies/{company_id}/segmentsList segments attached to a company
Lists the segments associated with a specific company. Use the company identifier to retrieve the segments that belong to it.
company_idstringrequired
The unique identifier of the company whose attached segments you want to list.
Intercom-Versionstringoptional
API version to use for the request. Defaults to 2.17 when omitted.
200Returns a list of segment objects associated with the company.
typestringoptional
The type of object - `list`
dataarray<Segment>optional
An array containing Segment Objects
401Returned when the request is unauthorized.
One documented failure
unauthorizedAccess Token Invalid
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
404Returned when the company does not exist.
One documented failure
company_not_foundCompany Not Found
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
Error handling
A 401 is returned when the request is not authorized. A 404 is returned when the company_id path parameter does not identify an existing company.