---
title: "Fetch Databases Using Form"
method: POST
path: "/data_stores/form/fetch_databases/"
tags: ["DATA_STORE"]
---

# Fetch Databases Using Form

`POST /data_stores/form/fetch_databases/`

Fetch databases using form in frontend.
:param db: The database session for accessing the database.
:param data_store_fetch_databases_request: The data store test connection request containing the data store definition and other
metadata.
:param auth: The authorization token for the request.
:return: A data store test connection response containing the ok status and a message.

## Request body

- DataStoreFetchDatabasesRequest
  - `name` string, required
  - `type` string, required
  - `description` string, required
  - `account` string, nullable
  - `user` string, nullable
  - `password` string, nullable
  - `role` string, nullable
  - `database` string, nullable
  - `warehouse` string, nullable
  - `key_pair` KeyPair
    - `type` 'pem' | 'der'
    - `private_key` string, nullable
    - `passphrase` string, nullable
  - `auth_type` 'password' | 'key_pair'
  - `host` string, nullable
  - `port` string, nullable

## Response `200`

Successful Response

- object[]

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
