v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
OneDrive

List drives in a site

List the drives under a site (or the user's drives for drive-rooted sources).

get/integrations/onedrive/sites/{site_id}/drives

Path parameters

site_idstring required

Id of the site to list drives for.

Id of the site to list drives for.

Query parameters

chat_idinteger nullable

Scope imported counts to this chat.

Scope imported counts to this chat.

library_idinteger nullable

Scope imported counts to this library.

Scope imported counts to this library.

assistant_idinteger nullable

Scope imported counts to this assistant.

Scope imported counts to this assistant.

project_idinteger nullable

Scope imported counts to this project.

Scope imported counts to this project.

cookie_namestring nullable

Response

Successful Response

idstring required

Drive id.

web_urlstring required

URL to open the drive in the source application.

namestring nullable required

Drive name.

descriptionstring nullable required

Drive description, if set.

imported_countinteger

Number of imported documents from this drive in the current scope.

Example response

[
  {
    "id": "b!abc123",
    "web_url": "https://contoso.sharepoint.com/sites/Team/Shared%20Documents",
    "name": "Documents",
    "description": "Shared team documents",
    "root": {
      "id": "01ABCDEF...",
      "web_url": "https://contoso.sharepoint.com/.../file.docx",
      "drive_id": "b!abc123",
      "site_id": "contoso.sharepoint.com,guid1,guid2",
      "parent_folder_id": "root",
      "parent_path": "/drive/root:/Documents",
      "name": "report.docx",
      "description": "Quarterly report",
      "size": 24576,
      "last_modified_date_time": "2026-02-20T14:00:00Z",
      "mimetype": "application/pdf",
      "folder": {
        "child_count": 12
      },
      "imported_count": 3
    },
    "imported_count": 7
  }
]