OneDrive
Get a drive item
Get a single data source drive item, annotated with imported counts.
get/integrations/onedrive/drives/{drive_id}/items/{drive_item_id}
Path parameters
drive_idstring required
Id of the drive.
Id of the drive.
drive_item_idstring required
Id of the drive item.
Id of the drive item.
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
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
}