List attached segments for companies

Example Request & Response

$ curl https://api.intercom.io/companies/<id>/segments \\\n-H 'Authorization:Bearer <Your access token>' \\\n-H 'Accept:application/json'

Example Errors

company_not_found

HTTP/1.1 404 NOT FOUND\n{\n  \"type\": \"error.list\",\n  \"request_id\": \"9a3d0816-9707-4598-977e-c009ba630148\",\n  \"errors\": [\n    {\n      \"code\": \"not_found\",\n      \"message\": \"Company Not Found\"\n    }\n  ]\n}\n}\n

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

Response

This will return a list of Segment objects.

AttributeTypeDescription
typeStringThe type of object - list
dataArrayAn array containing Segment Objects