# List the caller's SharePoint libraries

The SharePoint document libraries of every site THIS CALLER follows, through the Microsoft account they connected in Settings - id, name, site and webUrl. Each id is what get_onedrive_files takes as ?drive= to browse that library. ?pageToken= continues with the nextPageToken the last page gave (pages are sites). Reach for it when the file a person means lives on a team site rather than their own OneDrive. Answers 409 when the caller's Microsoft connection cannot read SharePoint sites - they reconnect it in Settings, not retry.

Access class: `workspace`.

## Endpoint

`GET /v1/onedrive/libraries`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| pageToken | 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"
}
```
