Capability Sources

Read a OneDrive text or binary file as the calling member

Changed on

Returns OneDrive metadata and content using strict-UTF-8 content sniffing: text is returned regardless of MIME type, while binary files are returned as standard base64 up to 10 MiB. Folders and oversized files return metadata with an explicit contentUnavailableReason.

get/v1/capabilities/microsoft-365/drive-file/{itemId}

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/capabilities/microsoft-365/drive-file/{itemId}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

itemIdstring required

Microsoft Graph drive item id.

Response

OneDrive file returned.

oktrue required

Changes

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      the endpoint scheme security denApiKey was added to the API

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status