Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference
GitHubDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

Create an Audience

Create an Audience for a Project

Log in to see full request history
Body Params

A string in JSON format that includes all the fields to create an Audience

boolean
Defaults to false

Whether the Audience has been archived

string

A string defining the targeting rules for an Audience

string

A short description of the Audience

int64

Number of experiments by audience_id

boolean

Whether or not Audience is a classic Audience. If true, the Audience is only compatible with classic Experiments. Otherwise, the Audience may be used in Optimizely X Campaigns.

string

The name of the Audience

int64
required

The ID of the Project the Audience was created in

boolean
Defaults to false

True if the Audience is available for segmentation on the results page (Audiences can only be used for segmentation in Optimizely Classic). Set to False if you intend to use this Audience only in Optimizely X. Note that a maximum of 10 Audiences can have segmentation set to True in any given Optimizely Classic project.

Responses

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