---
title: "List KB schemas"
method: GET
path: "/api/v0/knowledge-bases/{kb_id}/schemas"
tags: ["Knowledge Bases"]
---

# List KB schemas

`GET /api/v0/knowledge-bases/{kb_id}/schemas`

List all schemas for a knowledge base.

## Path parameters

- `kb_id` string, uuid, required

## Response `200`

Successful Response

- KBSchemaListResponse — Response for listing KB schemas.
  - `schemas` KBSchemaGetResponse[], required — The list of schemas.
    - `id` string, uuid, required — The ID of the schema.
    - `knowledge_base_id` string, uuid, required — The ID of the knowledge base.
    - `name` string, required — The name of the schema.
    - `json_schema` object, required — The JSON schema definition.
    - `user_hint` string, required — The user hint used for generation.
    - `version` integer, required — The schema version.
    - `is_active` boolean, required — Whether this is the active schema.
    - `created_at` string, date-time, required — When the schema was created.
    - `updated_at` string, date-time, required — When the schema was last updated.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
