Skip to main content
id
string
required

The ID of the segment

name
string
required

The name of the segment

filter
string | null
required

Which customers the segment contains, as a filter expression such as customer.plan == "gold". See the Filter syntax page in the Reference section of the docs

description
string | null
required

A Markdown description of the filter

metadata
object

Metadata attached to this segment

static_customers
string[]

The customers that are always included in this segment