---
title: "Start the read-only file consent"
method: GET
path: "/v1/workspaces/{workspaceId}/file-imports/connect/{provider}"
tags: ["File imports"]
---

# Start the read-only file consent

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

## Request

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

Redirects (302) to Google or Microsoft. The consent returns to `GET /v1/file-imports/oauth/{provider}/callback`, which stores the encrypted tokens for the signed-in member in this workspace and posts `shareout:file-import:connected` to the opener window.

## Other responses

- `302`: Redirect to the provider's consent screen
- `403`: Access denied
- `404`: Resource not found

## 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/connect/:provider/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)
