{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can fetch a list of all segments.\n\nSegment names are returned HTML-escaped, for example `&` as `&amp;`.\n\nRequires the `read_users_companies` or `write_users_companies` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"query":{"type":"object","properties":{"include_count":{"type":"boolean","examples":[true],"description":"Includes the count of contacts that belong to each segment. The counts are added whenever this parameter has a value in the query string, even `false` or an empty one, so omit it entirely to leave them out. A bare `include_count` with no `=` adds no counts. With `type=company`, a company segment gets no count unless a contact segment has the same name, and then it shows that contact segment's count."},"type":{"type":"string","examples":["company"],"description":"Pass `company` to list company segments. Any other value, or no value, lists contact segments."}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","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","2.14","2.15","2.16","2.17"],"examples":["2.17"]}}},"name":"List all segments","id":"intercom.listsegments","example":{},"maxRequests":1,"summary":false}}