List files in OneDrive
File Storage API · read · 91% field coverage
Your agent can list files in OneDrive through Apideck's File Storage API, the same call it makes for every File Storage app. It only reads, so it runs straight away; what OneDrive returns is screened before the agent sees it. Apideck adds the customer's OneDrive credentials, so no token ever reaches the agent.
The call
GET https://unify.apideck.com/file-storage/files
Headers: x-apideck-service-id: onedrive, plus your app id and the customer's consumer id. Apideck MCP tool: file-storage-files-all. Agent operation id: unified.file-storage.filesAll.
| Parameter | In | Description |
|---|---|---|
| cursor | query | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. |
| limit | query | Number of results to return. Minimum 1, Maximum 200, Default 20 |
| filter[drive_id] | query | ID of the drive to filter on |
| filter[folder_id] | query | ID of the folder to filter on. The root folder has an alias "root" |
| filter[shared] | query | Only return files and folders that are shared |
| sort[by] | query | The field on which to sort the Files |
| sort[direction] | query | The direction in which to sort the results |
More for files in OneDrive
List files in other File Storage apps
The same call works for each of these; only the service id changes.