v1

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

List children of a drive item

List files and folders under a drive item, annotated with imported counts.

get/integrations/onedrive/drives/{drive_id}/items/{drive_item_id}/children

Path parameters

drive_idstring required

Id of the drive.

Id of the drive.

drive_item_idstring required

Id of the parent item; empty or 'root' for the drive root.

Id of the parent item; empty or 'root' for the drive root.

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.

recursiveboolean

Recurse into subfolders, returning only files.

Recurse into subfolders, returning only files.

cookie_namestring nullable

Response

Successful Response

idstring required

Provider item id.

web_urlstring required

URL to open the item in the source application.

drive_idstring required

Id of the drive containing the item.

site_idstring nullable required

Id of the site the item belongs to, if the source is site-rooted.

parent_folder_idstring required

Id of the parent folder, or 'root'.

parent_pathstring nullable required

Path of the parent folder within the drive.

namestring nullable required

Item name.

descriptionstring nullable required

Item description, if set.

sizeinteger nullable required

Item size in bytes.

last_modified_date_timestring date-time nullable required

When the item was last modified.

mimetypestring nullable required

MIME type for files; null for folders.

importedboolean nullable

Whether this file has already been imported into the current scope.

imported_countinteger nullable

For folders, the number of imported documents under this folder.

Example response

[
  {
    "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
  }
]