# Browse OneDrive folders

The folders directly inside ?parent= of the caller's own OneDrive, or of the SharePoint library ?drive= names (an id from GET /v1/onedrive/libraries); the top folder when parent is absent. The OneDrive arm of the drive-watch folder picker, read with the caller's own Microsoft connection - the one a watch they add will sweep with. Folders only: it cannot list a document. Admin only.

Access class: `workspace:admin`.

## Endpoint

`GET /v1/workspace/onedrive-folders`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| drive | query | string | No |
| parent | query | string | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
