Skip to content
For LLMsView as Markdown·

Microsoft OneDrive

Access and manage files, folders, and sharing in OneDrive via Microsoft Graph.

DetailValue
CategoryProductivity
Base URLhttps://graph.microsoft.com/v1.0
AuthenticationOAuth2
Endpoints5
Connector keymicrosoft-onedrive

Using Microsoft OneDrive in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Microsoft OneDrive from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /me/drive/root/childrenList items in root folder
GET /me/drive/items/{itemId}Get a drive item
GET /me/drive/items/{itemId}/childrenList children of a folder
DELETE /me/drive/items/{itemId}Delete a drive item
POST /me/drive/items/{itemId}/createLinkCreate a sharing link

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /me/drive/root/children

List items in root folder

DetailValue
Operation IDproductivity.listRootItems
MethodGET
Path/me/drive/root/children

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Microsoft OneDrive connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.listRootItems.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Microsoft OneDrive API reference.

GET /me/drive/items/{itemId}

Get a drive item

DetailValue
Operation IDproductivity.getDriveItem
MethodGET
Path/me/drive/items/{itemId}

Parameters

NameLocationTypeRequired
itemIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Microsoft OneDrive connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.getDriveItem.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Microsoft OneDrive API reference.

GET /me/drive/items/{itemId}/children

List children of a folder

DetailValue
Operation IDproductivity.listChildren
MethodGET
Path/me/drive/items/{itemId}/children

Parameters

NameLocationTypeRequired
itemIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Microsoft OneDrive connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.listChildren.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Microsoft OneDrive API reference.

DELETE /me/drive/items/{itemId}

Delete a drive item

DetailValue
Operation IDproductivity.deleteDriveItem
MethodDELETE
Path/me/drive/items/{itemId}

Parameters

NameLocationTypeRequired
itemIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Microsoft OneDrive connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.deleteDriveItem.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Microsoft OneDrive API reference.

POST /me/drive/items/{itemId}/createLink

Create a sharing link

DetailValue
Operation IDproductivity.createSharingLink
MethodPOST
Path/me/drive/items/{itemId}/createLink

Parameters

NameLocationTypeRequired
itemIdpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Microsoft OneDrive connection from the Connection dropdown.
  3. In the Operation dropdown, select productivity.createSharingLink.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Microsoft OneDrive API reference.