Ir al contenido

Listar segmentos

GET
/v1/bulk/segments
curl --request GET \
--url https://api.mailerdash.com/v1/bulk/segments \
--header 'Authorization: Bearer <token>'
key_id
string

Segmentos de la cuenta

Media type application/json
object
items
Array<object>
object
id
string
key_id
string
name
string
rules

Reglas del segmento. match: all exige que se cumplan todas; any, que se cumpla alguna.

object
match
string
default: all
Allowed values: all any
rules
Array<object>
object
field
required
string
Allowed values: tag status engagement created list custom
op
required

Tag: has|not_has - status: is|is_not - engagement: opened|not_opened|clicked|not_clicked - created: before|after - list: in|not_in - custom: is|is_not|contains|exists|not_exists

string
value
string
days
integer
>= 1 <= 3650
field_name

Nombre del custom field dentro de metadata.

string
created_at
string
updated_at
string
Example
{
"items": [
{
"rules": {
"match": "all",
"rules": [
{
"field": "tag",
"op": "has",
"value": "vip"
},
{
"field": "engagement",
"op": "opened",
"days": 30
}
]
}
}
]
}

No autorizado