> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiIzODhmOGNjYi0xMzRkLTRjOWEtOTRkMC00NTU1Yjg3YzQyZTkiLCJleHAiOjE3NzgzOTAwMDEsImlhdCI6MTc3ODM4OTcwMX0.9JYvp6Reh_9zGm2Gp5x0eOUtI4YE-0Emml0b9QcYssA
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 筛选您的端点（受众）

> 学习如何在 Fern SDK 中使用受众筛选 API 端点。为内部团队、测试版用户和客户生成定制的客户端库。

<Warning title="专业版和企业版功能">
  此功能仅适用于[专业版和企业版计划](https://buildwithfern.com/pricing)。如需开始使用，请联系 [support@buildwithfern.com](mailto:support@buildwithfern.com)。
</Warning>

使用受众为不同的 API 消费者群体生成定制的 SDK，例如内部团队、测试版用户或客户。

受众通过基于标签的筛选工作：您在规范中为 API 元素标记受众标签，然后在 `generators.yml` 中配置生成 SDK 时要包含的受众。对于 OpenAPI，[也可以使用基于路径的筛选](/learn/api-definitions/openapi/extensions/audiences#path-based-filtering)。

## 受众快速入门

选择您的 API 规范格式以获取完整说明：

<CardGroup cols={2}>
  <Card title="OpenAPI" href="/learn/api-definitions/openapi/extensions/audiences">
    使用 `x-fern-audiences` 标记元素，然后在 `generators.yml` 中配置 SDK 筛选
  </Card>

  <Card title="Fern Definition" href="/learn/api-definitions/ferndef/audiences">
    在 `api.yml` 中声明受众，标记元素，然后在 `generators.yml` 中配置 SDK 筛选
  </Card>
</CardGroup>