Skip to content

Create an audience

POST
/api/v1/audience
curl --request POST \
--url https://renotify.app/api/v1/audience \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "VIP Customers", "filter_criteria": { "logic": "and", "conditions": [ { "field": "marketing_consent", "operator": "=", "value": true } ], "groups": [] }, "include_contact_ids": [ 16 ], "exclude_contact_ids": [ 16 ] }'

Create a saved segment for the current team.

Media typeapplication/json
object
name
required

The segment name.

string
Example
VIP Customers
filter_criteria

The filter to save with the audience.

object
Example
{
"logic": "and",
"conditions": [
{
"field": "marketing_consent",
"operator": "=",
"value": true
}
],
"groups": []
}
include_contact_ids
Array<integer>
Example
[
16
]
exclude_contact_ids
Array<integer>
Example
[
16
]