> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resource browsing API: Pick Folders for Grant Scopes

> Browse Dropbox and Google Drive folders on a connected account with the OneCLI API, then limit an agent's grant to only the folders you choose.

Resource scoping limits a connection grant to specific folders, so an agent sees only part of an account. These endpoints let you browse a connected account's folders to pick those scopes.

Pass the folder ids you choose into a grant through the [Grants](https://onecli.sh/docs/api-reference/grants) endpoints. For how scoped grants work, see [Agent access](https://onecli.sh/docs/guides/agent-access.md).

## Related guides

* [Agent access: scope grants to resources](https://onecli.sh/docs/guides/agent-access.md)
* [App connections: connect accounts for agents](https://onecli.sh/docs/integrations/app-connections.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Browse a Dropbox connection's folders](https://onecli.sh/docs/api-reference/resource-browsing/browse-a-dropbox-connections-folders.md) | `GET /apps/dropbox/folders` | Browse the subfolders of a path on a connected Dropbox account so you can pick folders for a grant's resource scope. |
| [Browse a Google Drive connection's folders](https://onecli.sh/docs/api-reference/resource-browsing/browse-a-google-drive-connections-folders.md) | `GET /apps/google-drive/folders` | Browse the subfolders of a Google Drive folder, or My Drive and shared drives at the top level, to pick folders for a grant's scope. |
| [Resolve Google Drive folder names](https://onecli.sh/docs/api-reference/resource-browsing/resolve-google-drive-folder-names.md) | `GET /apps/google-drive/folder-names` | Resolve saved Google Drive folder ids to readable names for display. |

## Next steps

* [API overview](https://onecli.sh/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](https://onecli.sh/docs/api-reference/errors.md): status codes and the error format
* [Editions](https://onecli.sh/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.