---
title: "List of files in the OneDrive directory."
method: POST
path: "/connectors/one_drive/actions/listFiles"
tags: ["connectors.one_drive"]
---

# List of files in the OneDrive directory.

`POST /connectors/one_drive/actions/listFiles`

## Request

- Base URL: `https://headless.dataddo.com/customer-api/v1`
- URL: `https://headless.dataddo.com/customer-api/v1/connectors/one_drive/actions/listFiles`
- Auth: none declared

## Request body

- object
  - `oAuthId` string
  - `path` string
  - `tenantId` string, nullable
  - `driveId` string, nullable

## Response `200`

List of files in the OneDrive directory.

- object[]
  - `label` string
  - `value` string

---

[API](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api.md) · [All operations](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/revisions/dcfa2345bd10?raw)
