---
title: "List eligible drives"
method: GET
path: "/2/drive/{drive_id}/imports/oauth/drives"
tags: ["Drive > Files > External import"]
---

# List eligible drives

`GET /2/drive/{drive_id}/imports/oauth/drives`

List all drives eligible for import for the given third party application supporting OAuth2

## Path parameters

- `drive_id` integer, required

## Query parameters

- `access_token_id` integer — ID of the authentication token for the application
- `application` 'dropbox' | 'onedrive', required — Supported service or third-party service identifier for external import.<note><strong>dropbox</strong>: Import from Dropbox.</note><note><strong>onedrive</strong>: Import from Microsoft OneDrive.</note>
- `auth_code` string — Authentication code of the application

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 91ac10ffThirdpartydriveslist — List of third party drives eligible to perform an external import
    - `drives` 91ac10ffThirdpartydrive[], required — All the suitable drives
      - `id` string, required — Drive identifier
      - `name` string, required — Drive name
    - `access_token_id` integer, required — The access token identifier built for future requests for the suitable drives

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/158a854b0c7d/schema)
