---
title: "Get connection schema"
method: GET
path: "/v1/discovery/connections/{connectionId}/schema"
tags: ["Discovery"]
---

# Get connection schema

`GET /v1/discovery/connections/{connectionId}/schema`

Use this endpoint to retrieve all discovered table schemas for a specific connection.

## Path parameters

- `connectionId` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Schema for the connection

- ConnectionSchemaResponse — Discovered table schemas for a connection
  - `connectionId` string — Identifier of the connection these schemas belong to
  - `tables` SchemaTableResponse[] — Discovered tables and their column definitions
    - `tableName` string — Name of the table
    - `columns` SchemaColumnResponse[] — Columns in the table
      - `name` string — Column name
      - `type` string — Column data type
      - `nullable` boolean — Whether the column accepts null values

## Other responses

- `400` — Invalid connection ID
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — Connection not found
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
