Skip to main content
POST
Create Tenant Segment

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json
name
string
required

A friendly name for the segment

description
string

A friendly description for the segment

conditions
object[]

The conditions to include in the segment (legacy format)

conditionGroups
object[]

Condition groups with AND/OR logic and related resource support (new format)

type
enum<string>
default:custom

The type of segment

Available options:
custom,
one_off

Response

Status 200 response

success
boolean
required
message
string
data
object