v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-07186533829.2 KB
product:chat

Create segment

Create a segment

post/segments

Request body

all_sender_channelsboolean

If true, all sender channels are included in the segment

all_usersboolean

If true, all users are included in the segment

descriptionstring

The description of the segment (max 256 characters)

filterobject

Filter to apply to the query

idstring

The ID of the segment

namestring

The name of the segment (max 128 characters)

type'user' | 'channel' required

The type of the segment

Response

Response

durationstring required

Duration of the request in milliseconds