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

# List SharePoint sites

`GET /integrations/sharepoint/sites`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/integrations/sharepoint/sites`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/integrations/sharepoint/sites/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
