---
title: "Connect Storage"
method: POST
path: "/storage-providers/space/{space_id}/connect"
tags: ["storage-providers"]
---

# Connect Storage

`POST /storage-providers/space/{space_id}/connect`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/storage-providers/space/{space_id}/connect`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Connect a storage provider to a space. Tests connection before saving.

## Path parameters

- `space_id` string, uuid, required

## Request body

- StorageConnectionCreate: Connect a storage provider to a space.
  - `provider_id` string, required: Provider ID (e.g., 'google_drive', 'azure_blob')
  - `config` object, required: Provider-specific configuration

## Response `201`

Successful Response

- StorageConnectionResponse: Current storage connection for a space.
  - `id` string, uuid, required
  - `provider_id` string, required
  - `provider_name` string, required
  - `provider_icon_url` string, nullable
  - `is_active` boolean, required
  - `last_tested_at` string, date-time, nullable
  - `last_test_success` boolean, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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