> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/feedback?path=/howto/policies&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Manage Policies

> Control which sources and libraries your teamspace can access

Policies let you control exactly which documentation your teamspace can pull from Context7. Configure them from the [policies tab](https://context7.com/dashboard?tab=policies) of your dashboard, or programmatically through the [Policies API](/api-reference/policies/get-teamspace-policies).

Every search and MCP request made with one of the teamspace's API keys is filtered through these policies, so they apply to all members at once.

<Note>Policies are scoped to a teamspace. Only owners and admins can change them; developers have read-only access.</Note>

## Source Type Access

The **Source Type Access** card toggles entire categories of sources on or off. Disabling a type removes all of its content from results for the whole teamspace.

| Group             | Source Type        | What it covers                          |
| ----------------- | ------------------ | --------------------------------------- |
| Public Sources    | Public Repositories | Public GitHub repositories              |
| Public Sources    | Websites           | Indexed documentation websites          |
| Public Sources    | LLMs.txt           | `llms.txt` sources                      |
| Connected Sources | Confluence         | Atlassian Confluence workspace pages    |
| Connected Sources | Uploaded Files     | Uploaded OpenAPI specs, PDFs, DOCX files, and folders |
| Connected Sources | Private Sources    | Privately parsed repositories           |

## Library Filters

The **Library Filters** card decides which public libraries are accessible. Choose one of two modes:

### Filter by Quality

Allow any public library that clears the quality bar you set. Available filters:

| Filter            | Options                              |
| ----------------- | ------------------------------------ |
| Verification      | All · Verified Only                  |
| Trust score       | All · Medium (4+) · High (7+)        |
| Last Updated Within | All · 30 days · 90 days · 1 year   |
| Stars             | All · 100+ · 1,000+ · 10,000+        |
| Licenses          | All, or any of MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause, ISC, MPL-2.0, LGPL-3.0, LGPL-2.1, GPL-3.0, GPL-2.0, AGPL-3.0, Unlicense, CC0-1.0 |
| Website backlinks | All · 500+ · 2,500+ · 5,000+         |
| Referring domains | All · 100+ · 500+ · 1,000+           |
| Monthly Organic Traffic | All · 100+ · 1,000+ · 10,000+   |

<Note>Choosing a trust score above **All** excludes libraries that do not have a trust score yet. Add a library to your Wild Card Libraries if you need it anyway.</Note>

<Note>Choosing one or more licenses excludes public GitHub repositories without a license, and those whose license is not on your list. Licenses match exactly, so a list that names `MIT` does not admit `mit`.</Note>

You can also maintain two override lists in quality mode:

- **Blocked Libraries** — excluded, even if they pass every filter.
- **Wild Card Libraries** — always allowed, even if they fail the filters or are blocked.

An entry can take one of three forms:

- **Organization** — `/vercel` covers the org's libraries, such as `/vercel/next.js`, but not a different org that starts with the same text, such as `/vercel-labs/ai`.
- **Library** — `/vercel/next.js` covers that library only.
- **Domain** — `stripe.com` covers every library whose documentation site host is that domain or a subdomain of it, such as `docs.stripe.com`. It does not match a look-alike host such as `mystripe.com` or `stripe.com.evil.example`.

### Select Manually

Ignore the quality bar entirely and grant access only to a hand-picked list of libraries. Anything not on the list is inaccessible. The allowed list accepts the same organization, library, and domain entries as the override lists above; a library outside the list is refused on both search and direct documentation requests.

<Note>The action dock at the bottom of the Policies tab shows the number of libraries currently accessible under your settings, so you can see the impact before saving.</Note>

## Managing Policies via API

The same configuration is available over the REST API using a teamspace API key:

- [Get Policies](/api-reference/policies/get-teamspace-policies) — `GET /api/v2/policies` returns the current configuration and accessible library count.
- [Update Policies](/api-reference/policies/update-teamspace-policies) — `PATCH /api/v2/policies` applies an incremental update; only the fields you include are changed. Add `dryRun: true` to get the policies and library count the update would produce, without saving.

See the [API Guide](/api-guide) for request and response details.
