/audiences

Create audience definitions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Create audiences using a JSON body containing key, private_key, and an audiences array. Each complete object in this example has id, name, and conditions. Supply id: 0 as the creation placeholder; the API assigns a generated audience ID. The empty conditions array in this example specifies no conditions.

POST returns status ok without the generated ID. Use GET /audiences/list to find the new audience by name, then use its generated ID for GET, PATCH, and DELETE.

Check status in the response body even when HTTP 200 is returned. Keep your private API key on your server.

Body Params
string
required

Your Store's public API key.

string
required

Your Store's private API key. Keep it on your server.

audiences
array
required

A JSON array of audience objects. See the complete example and field requirements above.

audiences*
Response

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json