Appearance
Microsoft OneDrive
Access and manage files, folders, and sharing in OneDrive via Microsoft Graph.
| Detail | Value |
|---|---|
| Category | Productivity |
| Base URL | https://graph.microsoft.com/v1.0 |
| Authentication | OAuth2 |
| Endpoints | 5 |
| Connector key | microsoft-onedrive |
Using Microsoft OneDrive in a workflow
- Go to Connections and click New Connection.
- Pick Microsoft OneDrive from the marketplace.
- Enter your credentials (see Authentication above for what's expected).
- In a workflow, drop an API Call node and select this connection.
- Pick the operation you need from the Operation dropdown — the full list is below.
Available endpoints
| Endpoint | Summary |
|---|---|
GET /me/drive/root/children | List items in root folder |
GET /me/drive/items/{itemId} | Get a drive item |
GET /me/drive/items/{itemId}/children | List children of a folder |
DELETE /me/drive/items/{itemId} | Delete a drive item |
POST /me/drive/items/{itemId}/createLink | Create 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
| Detail | Value |
|---|---|
| Operation ID | productivity.listRootItems |
| Method | GET |
| Path | /me/drive/root/children |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your Microsoft OneDrive connection from the Connection dropdown.
- In the Operation dropdown, select
productivity.listRootItems. - 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
| Detail | Value |
|---|---|
| Operation ID | productivity.getDriveItem |
| Method | GET |
| Path | /me/drive/items/{itemId} |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
itemId | path | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your Microsoft OneDrive connection from the Connection dropdown.
- In the Operation dropdown, select
productivity.getDriveItem. - 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
| Detail | Value |
|---|---|
| Operation ID | productivity.listChildren |
| Method | GET |
| Path | /me/drive/items/{itemId}/children |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
itemId | path | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your Microsoft OneDrive connection from the Connection dropdown.
- In the Operation dropdown, select
productivity.listChildren. - 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
| Detail | Value |
|---|---|
| Operation ID | productivity.deleteDriveItem |
| Method | DELETE |
| Path | /me/drive/items/{itemId} |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
itemId | path | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your Microsoft OneDrive connection from the Connection dropdown.
- In the Operation dropdown, select
productivity.deleteDriveItem. - 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
| Detail | Value |
|---|---|
| Operation ID | productivity.createSharingLink |
| Method | POST |
| Path | /me/drive/items/{itemId}/createLink |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
itemId | path | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your Microsoft OneDrive connection from the Connection dropdown.
- In the Operation dropdown, select
productivity.createSharingLink. - 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.