---
title: "Get collection schema"
method: GET
path: "/api/v1/collections/{collection}/schema"
---

# Get collection schema

`GET /api/v1/collections/{collection}/schema`

## Request

- Base URL: `https://api.vectorpanda.com`
- URL: `https://api.vectorpanda.com/api/v1/collections/{collection}/schema`
- Auth: HTTP bearer

Returns the detected or confirmed schema for a collection,
including the identified vector field, ID field, and format.

## Response `200`

Schema info

- SchemaInfo
  - `state` 'unknown' | 'suggested' | 'confirmed'
  - `format` string
  - `vector_field` string
  - `id_field` string
  - `dimension` integer

---

[API](https://skmtc.dev/vectorpanda/apis/vector-panda-api.md) · [All operations](https://skmtc.dev/vectorpanda/apis/vector-panda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vectorpanda/apis/vector-panda-api/revisions/f5fc74e883d4?raw)
