Skip to main content
POST
Create a segment

Authorizations

Authorization
string
header
required

An API token. The "read" ability: GET routes only. "read + write": every route.

Headers

Idempotency-Key
string

Replay a write safely: the same key gives back the first answer for 24 hours (header Idempotent-Replay: true).

Maximum string length: 255

Path Parameters

list
string<uuid>
required

The list's identifier (uuid).

Body

application/json
name
string
required
Maximum string length: 255
conditions
object
required

A group of rules; a group may hold another one, two levels deep at most, 50 rules at most.

Example:

Response

The segment, with how many subscribers match it.

data
object