Segments API
Create a segment
POST
/
customers
/
segments
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
name
string
requiredsegment name
segment_type
enum<string>
requiredAvailable options:
data-driven
, manual
data_driven_condition
object
josn object having conditions to match customers profile (columns) and/or events and/or attributes. It is required if segment_type = data-driven
description
string
tags
string[]
Response
200 - application/json
id
string
requiredsegment id
name
string
requiredsegment name
segment_type
enum<string>
requiredAvailable options:
data-driven
, manual
data_driven_condition
object
josn object having conditions to match customers profile (columns) and/or events and/or attributes. It is required if segment_type = data-driven
description
string
tags
string[]
audience_count
integer
usage_count
integer
created_at
string
modified_at
string