Skip to main content
POST
Create a contact segment
Requires segments:write. Supply name and definition. Omit description to use null. Membership is calculated in the background. A null definition matches all contacts. See contact segment guidance for filter examples and membership timing.

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
definition
object | null
required
description
string | null

Optional description; defaults to null

Response

Default Response

id
string
required
name
string
required
description
string | null
required
definition
object | null
required
created_at
string | null
required

ISO 8601 timestamp of when the segment was created

updated_at
string | null
required

ISO 8601 timestamp of when the segment was last updated