Ver un segmento
GET
/v1/bulk/segments/{id}
const url = 'https://api.mailerdash.com/v1/bulk/segments/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mailerdash.com/v1/bulk/segments/example \ --header 'Authorization: Bearer <token>'Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters » id
required
string
Responses
Sección titulada « Responses »Segmento
Media type application/json
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
rules
Array<object>
object
field
required
string
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
field_name
Nombre del custom field dentro de metadata.
string
created_at
string
updated_at
string
Example
{ "rules": { "match": "all", "rules": [ { "field": "tag", "op": "has", "value": "vip" }, { "field": "engagement", "op": "opened", "days": 30 } ] }}No encontrado