Use audiences to filter your API
Use x-fern-audiences
to filter to relevant operations, channels and message schemas
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.
SDKs
The following example configures the SDK to filter to the public
audience:
Docs
The following example configures the docs to filter to the public
audience:
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.