provider Segments GET /segments
@utdk/intercom /segments
List all segments
You can fetch a list of all segments.
Intercom-Version header
enum: 1.0, 1.1, 1.2, 1.3…
include_count query
It includes the count of contacts that belong to each segment.
boolean

Try it

Authentication
Configure credentials for Intercom API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listsegments
GET/segments
You can fetch a list of all segments.

It includes the count of contacts that belong to each segment.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import intercom from '@utdk/intercom';

await intercom.listsegments({
  "Intercom-Version": "2.14"
})