---
title: "Check how much of a host upload Microsoft has received"
method: GET
path: "/v1/direct-uploads/microsoft-365/drive-upload-sessions/content"
tags: ["Direct uploads"]
---

# Check how much of a host upload Microsoft has received

`GET /v1/direct-uploads/microsoft-365/drive-upload-sessions/content`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/direct-uploads/microsoft-365/drive-upload-sessions/content`
- Auth: HTTP bearer

After an uncertain part, returns the offset to continue from. Never start another upload before checking.

## Query parameters

- `token` string, required

## Response `200`

Progress or the saved file.

- union
  - object
    - `ok` true, required
    - `status` 'partial', required
    - `nextOffset` integer, required: Send the bytes from this offset next.
  - object
    - `ok` true, required
    - `status` 'complete', required
    - `file` Microsoft365DriveItem, required
      - `id` string, required
      - `driveId` string, required: Pass with id to read, list or save this item. Empty when Microsoft did not say; resolve webUrl with the link capability then.
      - `parentId` string, required
      - `siteId` string, required: SharePoint site holding the item, when Microsoft reports one.
      - `name` string, required
      - `size` number, nullable, required
      - `modifiedTime` string, required
      - `webUrl` string, required
      - `mimeType` string, required
      - `kind` 'file' | 'folder' | 'unknown', required
      - `eTag` string, required

## Other responses

- `400`: Invalid Content-Range or part size.
- `404`: Unknown or expired upload.
- `409`: The session expired, the name is taken, the file changed (drive_conflict), or the part was out of order.
- `413`: The part is larger than chunkSize.
- `502`: Microsoft did not confirm the part.

## Changes

- **2026-10-23** `c93387179b31`: 1 breaking, 1 info
  - the response property `oneOf[subschema #2]/file/size` became nullable for the status `200`
  - response property `oneOf[subschema #2]/file/size` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
- **2026-10-23** `3e38eb291e52`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/direct-uploads/microsoft-365/drive-upload-sessions/content/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8170cf4a92ca?raw)
