Documents

Read a OneDrive file's details without its content

Changed on

Requires organization membership and Documents, and the member's Microsoft 365 connection with OneDrive read access. Other people's drives and SharePoint need the read-all-files permission. Saves also require Document editing, OneDrive write access (full file access outside the member's own OneDrive) and a matching file version.

get/v1/documents/microsoft-365/files/{fileId}/metadata

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/documents/microsoft-365/files/{fileId}/metadata
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

fileIdstring required

Response

Document result.

idstring required
namestring required
mimeTypestring required
modifiedTimestring nullable required
sizenumber nullable required
openUrlstring nullable required

Changes