---
title: "Download one OneDrive or SharePoint file with a short-lived link"
method: GET
path: "/v1/direct-downloads/microsoft-365/drive-link"
tags: ["Direct uploads"]
---

# Download one OneDrive or SharePoint file with a short-lived link

`GET /v1/direct-downloads/microsoft-365/drive-link`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/direct-downloads/microsoft-365/drive-link`
- Auth: none required

The signed link names one member, connection, file and format and expires after five minutes. The member's current organization access and Microsoft 365 connection are checked again on every download.

## Query parameters

- `token` string, required

## Response `200`

File bytes.

## Other responses

- `400`: Invalid request, a folder, or an item without content.
- `401`: Sign in first.
- `403`: Organization policy blocks the selected connection.
- `404`: Unknown or expired link.
- `409`: Connect Microsoft 365 with the needed permission, or the file changed since baseRevision (drive_conflict).
- `502`: Microsoft refused or did not return the file; the message gives Microsoft's reason.

## Changes

- **2026-10-23** `c93387179b31`: 2 breaking, 3 info
  - the response property `anyOf[subschema #2]/currentRevision` became nullable for the status `409`
  - the response property `anyOf[subschema #2]/modifiedTime` became nullable for the status `409`
  - response property `anyOf[#/components/schemas/InvalidRequestError]/details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
  - response property `anyOf[subschema #2]/currentRevision` list-of-types was narrowed by removing types `null` from media type `application/json` of response `409`
  - …1 more
- **2026-10-23** `3e38eb291e52`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/direct-downloads/microsoft-365/drive-link/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)
