audience_id or audience_conditions.| Parameter | Type | Required? | Default | Description |
|---|---|---|---|---|
| audience_id | integer | no | null | When present, only members from given Audience will be returned See DMP docs |
| audience_conditions | object[] | no | null | When present, only members matching given audience conditions will be returned. See DMP docs |
| per_page | integer | no | 100 | Number of results to be returned per request (100 is the maximum) |
| page_no | integer | no | 1 | Number of results page |
| sort_by | enum: id, msisdn, email, full_name, created_at, optin_channel | no | 'id' | |
| sort_direction | enum: asc, desc | no | 'asc' |
audience_id is not present, all members are returned.audience_conditions are given along with audience_id, they're appended to the given audience conditions.| Key | Type | Description |
|---|---|---|
| members | Member[] | Array of Members |
| pagination_info | Object | Pagination object |
{
"members": [], // List of members - see 'Member model'
"pagination_info": {} // Pagination info - see 'Pagination info"
}
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/audience_members' \
--header 'X-User-Agent: ApiDog' \
--header 'X-Product-Name: default' \
--header 'X-Loyalty-Club-Slug: infinity-mall' \
--header 'X-Customer: 447' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json'{}