---
title: "Configured drives, my connections, and imported folders"
method: GET
path: "/v1/workspaces/{workspaceId}/file-imports"
tags: ["File imports"]
---

# Configured drives, my connections, and imported folders

`GET /v1/workspaces/{workspaceId}/file-imports`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/workspaces/{workspaceId}/file-imports`
- Auth: HTTP bearer

## Response `200`

Overview

- object
  - `providers` object[]: Only providers this instance has client ids for. Empty = feature hidden.
    - `id` 'google_drive' | 'microsoft'
    - `connected` boolean
    - `accountEmail` string, nullable
  - `sources` FileImportSource[]
    - `id` string
    - `provider` 'google_drive' | 'microsoft'
    - `remoteName` string
    - `targetFolderId` string, nullable
    - `targetFolderName` string, nullable
    - `convert` boolean
    - `dailySync` boolean
    - `nextSyncAt` string, nullable
    - `connected` boolean: false after the connection was revoked.
    - `mine` boolean
    - `lastRun` FileImportRun
      - `id` string
      - `sourceId` string
      - `status` 'queued' | 'walking' | 'importing' | 'done' | 'stopped' | 'failed'
      - `trigger` 'manual' | 'resync' | 'schedule'
      - `counts` object
        - `found` integer
        - `imported` integer
        - `converted` integer
        - `skipped` integer
        - `unchanged` integer
        - `failed` integer
      - `stopCode` string, nullable: STORAGE_QUOTA_EXCEEDED, CONNECTION_REVOKED, RATE_LIMITED, WALK_LIMIT (warning on a done run), NOT_ALLOWED, SOURCE_DELETED, STALLED, FAILED.
      - `stopMessage` string, nullable
      - `createdAt` string, date-time
      - `finishedAt` string, date-time, nullable
      - `errors` object[]: Files that failed, were skipped, or imported with a warning (up to 200).
        - `path` string
        - `status` string
        - `code` string
        - `message` string

## Other responses

- `403`: Access denied

## Changes

- **2026-10-17** `a43d748cfdda`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/workspaces/:workspaceId/file-imports/get.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
