---
title: "Connect data, pick a dataset, and make it queryable."
method: POST
path: "/v1/data/connect"
tags: ["Data"]
---

# Connect data, pick a dataset, and make it queryable.

`POST /v1/data/connect`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/data/connect`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- ConnectDataRequest
  - `connection_type` string, nullable: database | api | object_storage | file_upload
  - `dataset_name` string, required: Public dataset name.
  - `provider` string, nullable: Specific provider such as postgres, snowflake, s3, rest.
  - `connector` object, nullable: Canonical connector envelope with type/location/auth/options. Preferred for cross-SDK and MCP compatibility.
  - `connection_id` string, nullable: Reuse an existing saved connection.
  - `connection_name` string, nullable: Optional saved connection label.
  - `connection_config` object, nullable: Connector credentials/config.
  - `selection` object, nullable: Chosen table/query/path.
  - `description` string, nullable
  - `visibility` string, nullable: private | shared
  - `records` object[], nullable
  - `csv` string, nullable
  - `json_str` string, nullable
  - `url` string, nullable
  - `excel_b64` string, nullable
  - `parquet_b64` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
