---
title: "Get File Content"
method: GET
path: "/Files/content"
tags: ["Files"]
---

# Get File Content

`GET /Files/content`

**Auth:** Authenticated - any signed-in user.

Get the content of a file from a SharePoint site

## Query parameters

- `siteId` string, nullable
- `driveId` string, nullable
- `fileId` string, nullable
- `type` string, nullable
- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Response `200`

Success - Got Drive Item and Content

- GetFileContentResponse
  - `driveItem` MicrosoftDriveItem
    - `createdDateTime` string, nullable
    - `eTag` string, nullable
    - `id` string, nullable
    - `lastModifiedDateTime` string, nullable
    - `name` string, nullable
    - `webUrl` string, nullable
    - `cTag` string, nullable
    - `size` integer, nullable
    - `createdBy` ActionedBy
      - `user` FileUser
        - `email` string, nullable
        - `id` string, nullable
        - `displayName` string, nullable
    - `lastModifiedBy` ActionedBy
      - `user` FileUser
        - `email` string, nullable
        - `id` string, nullable
        - `displayName` string, nullable
    - `parentReference` ParentReference
      - `driveType` string, nullable
      - `driveId` string, nullable
      - `id` string, nullable
      - `path` string, nullable
    - `fileSystemInfo` FileSystemInfo
      - `createdDateTime` string, nullable
      - `lastModifiedDateTime` string, nullable
    - `folder` Folder
      - `childCount` integer, nullable
    - `shared` Shared
      - `scope` string, nullable
    - `@microsoft.graph.downloadUrl` string, nullable
    - `file` File
      - `mimeType` string, nullable
      - `hashes` Hashes
        - `quickXorHash` string, nullable
  - `content` string, byte, nullable
  - `meta` Meta
    - `page` integer
    - `pageSize` integer
    - `total` integer

## Other responses

- `400` — An Error Occurred - Could not get Drive Item and Content
- `401` — Unauthorized

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
