---
title: "Search SharePoint sites"
method: GET
path: "/v1/capabilities/microsoft-365/sites"
tags: ["Capability Sources"]
---

# Search SharePoint sites

`GET /v1/capabilities/microsoft-365/sites`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/microsoft-365/sites`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Finds SharePoint sites the member can open by name. List a site's document libraries next, then browse or search their files. Read-only; needs the SharePoint sites permission.

## Query parameters

- `query` string, required
- `maxResults` integer

## Response `200`

Sites.

- Microsoft365SitesResponse
  - `ok` true, required
  - `sites` Microsoft365Site[], required
    - `id` string, required
    - `name` string, required
    - `webUrl` string, required
    - `description` string, required

## Other responses

- `400`: Invalid request, a folder, or an item without content.
- `401`: Sign in first.
- `403`: Organization policy blocks the selected connection.
- `409`: Connect Microsoft 365 with the needed permission, or the file changed since baseRevision (drive_conflict).
- `502`: Microsoft refused or did not return the file; the message gives Microsoft's reason.

## Changes

- **2026-10-23** `c93387179b31`: 2 breaking, 3 info
  - the response property `anyOf[subschema #2]/currentRevision` became nullable for the status `409`
  - the response property `anyOf[subschema #2]/modifiedTime` became nullable for the status `409`
  - response property `anyOf[#/components/schemas/InvalidRequestError]/details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
  - response property `anyOf[subschema #2]/currentRevision` list-of-types was narrowed by removing types `null` from media type `application/json` of response `409`
  - …1 more
- **2026-10-23** `3e38eb291e52`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/microsoft-365/sites/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8170cf4a92ca?raw)
