---
title: "Get a drive item"
method: GET
path: "/integrations/onedrive/drives/{drive_id}/items/{drive_item_id}"
tags: ["OneDrive"]
---

# Get a drive item

`GET /integrations/onedrive/drives/{drive_id}/items/{drive_item_id}`

## Request

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

Get a single data source drive item, annotated with imported counts.

## Path parameters

- `drive_id` string, required: Id of the drive.
- `drive_item_id` string, required: Id of the drive item.

## 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

- DataSourceItemModel: A file or folder item from a data source, normalized across providers.
  - `id` string, required: Provider item id.
  - `web_url` string, required: URL to open the item in the source application.
  - `drive_id` string, required: Id of the drive containing the item.
  - `site_id` string, nullable, required: Id of the site the item belongs to, if the source is site-rooted.
  - `parent_folder_id` string, required: Id of the parent folder, or 'root'.
  - `parent_path` string, nullable, required: Path of the parent folder within the drive.
  - `name` string, nullable, required: Item name.
  - `description` string, nullable, required: Item description, if set.
  - `size` integer, nullable, required: Item size in bytes.
  - `last_modified_date_time` string, date-time, nullable, required: When the item was last modified.
  - `mimetype` string, nullable, required: MIME type for files; null for folders.
  - `folder` DataSourceFolderModel, required: Metadata specific to folder items.
    - `child_count` integer, required: Number of immediate children inside the folder.
  - `imported` boolean, nullable: Whether this file has already been imported into the current scope.
  - `imported_count` integer, nullable: For folders, the number of imported documents under this folder.

## Other responses

- `401`: Missing or invalid authentication, or no valid connector token.
- `403`: User has not consented to the required 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)
