Skip to main content

Audiences

Audiences are reusable groups of users defined at the organisation level. They can be referenced in targeting rule conditions.

Examples

  • beta-testers — Users opted into the beta programme
  • enterprise-customers — Organisations on the Enterprise plan
  • internal-team — Your own team members

Using Audiences in Targeting

When evaluating a flag, pass the user's audience slugs in the context:

{
"feature": "new-dashboard",
"user": {
"id": "user-123",
"audiences": ["beta-testers", "internal-team"]
}
}

A targeting condition with property audience and operator contains will check if the target audience slug is present in the user's audience list.