GET
cURL
Returns one segment with its rules.
Needs an API key with full access.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segmentId
string
required
Minimum string length: 1
Example:

"clx1234567890"

Response

The segment with its rules

id
string
required
contactBookId
string
required
name
string
required
match
enum<string>
required

ALL: a contact must match every rule. ANY: one rule is enough.

Available options:
ALL,
ANY
rules
object[]
required
createdAt
string
required
updatedAt
string
required
_count
object

How many campaigns use the segment (list only)