---
title: "Get database connection string"
method: GET
path: "/v0/api/databases/{databaseId}/connection"
tags: ["Databases"]
---

# Get database connection string

`GET /v0/api/databases/{databaseId}/connection`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/databases/{databaseId}/connection`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/databases/:databaseId/connection/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the connection string for a user database.

## Path parameters

- `databaseId` string, uuid, required

## Response `200`

Connection string

- object
  - `connectionString` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Database not found

---

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