Direct uploads

Stream a OneDrive or SharePoint file's bytes to host file transport

Changed on

Streams stored files as-is (Range: bytes=START-END, up to 8 MiB per request) or converts Office files to PDF whole. Den does not keep or inspect the bytes. Responses stop at the pull size limit.

get/v1/direct-downloads/microsoft-365/drive-files/content

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/direct-downloads/microsoft-365/drive-files/content
  • Auth: HTTP bearer

Query parameters

driveIdstring

The file's driveId from a search, folder or link result. Omit for the member's own OneDrive.

itemIdstring required
format'pdf'

pdf converts a Word, Excel, PowerPoint or other Office file; omit to transfer the stored bytes.

connectionIdstring

Selected Microsoft 365 connection; omit for the default. Unavailable selections never fall back to another account.

Response

File bytes.

Changes

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • info

      response property anyOf[InvalidRequestError]/details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      response property anyOf[subschema #2]/currentRevision list-of-types was narrowed by removing types null from media type application/json of response 409

    • info

      response property anyOf[subschema #2]/modifiedTime list-of-types was narrowed by removing types null from media type application/json of response 409

    • info

      endpoint added