Use audiences to filter your API
Use x-fern-audiences to filter to relevant operations, channels and message schemas
Use x-fern-audiences to filter to relevant operations, channels and message schemas
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.
Remember to filter your SDKs and Docs after specifying audiences. If no audiences are specified, nothing will be filtered.
The following example configures the SDK to filter to the public audience:
The following example configures the docs to filter to the public audience:
Add x-fern-audiences to operations to control which operations are included for specific audiences:
You can also filter entire channels by audience:
Filter specific message schemas to different audiences:
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.