Use audiences to filter your API
Use `x-fern-audiences` to filter to relevant operations, channels and message schemas
Team and Enterprise feature
This feature is available only for the Team and Enterprise plans. To get started, reach out to support@buildwithfern.com.
Audiences are a useful tool for segmenting your event-driven API for different consumers. Common examples of audiences include public
and beta.
Tag operations, channels, and message schemas with x-fern-audiences, then filter each output to those audiences: SDKs in generators.yml and your API Reference in docs.yml. Untagged elements are always included; if you don’t specify audiences, nothing is filtered.
Filter operations
Add x-fern-audiences to operations to control which operations are included for specific audiences:
Filter channels
You can also filter entire channels by audience:
Filter message schemas
Filter specific message schemas to different audiences:
Filter schema properties
You can filter individual properties within schemas:
This allows you to have different views of the same event schema for different audiences, showing only the relevant information to each consumer.