---
title: "List SharePoint sites"
method: GET
path: "/integrations/sharepoint/sites"
tags: ["Sharepoint"]
---

# List SharePoint sites

`GET /integrations/sharepoint/sites`

List the SharePoint sites the user can access, with imported document counts.

## Query parameters

- `chat_id` integer, nullable — Scope imported counts to this chat.
- `library_id` integer, nullable — Scope imported counts to this library.
- `assistant_id` integer, nullable — Scope imported counts to this assistant.
- `project_id` integer, nullable — Scope imported counts to this project.
- `cookie_name` string, nullable

## Response `200`

Successful Response

- SharepointSiteModel[]
  - `id` string, required — Site id.
  - `web_url` string, required — URL to open the site in SharePoint.
  - `name` string, nullable, required — Site name.
  - `display_name` string, nullable, required — Human-readable site display name.
  - `description` string, nullable, required — Site description, if set.
  - `imported_count` integer — Number of imported documents from this site in the current scope.

## Other responses

- `401` — Missing or invalid authentication, or no valid connector token.
- `403` — User has not consented to the required SharePoint scope.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/versions/b53e89b98c2b/schema)
