---
title: "List metadata schemas"
method: GET
path: "/v1/projects/{project_id}/metadata-schemas"
tags: ["Metadata Schemas"]
---

# List metadata schemas

`GET /v1/projects/{project_id}/metadata-schemas`

## Request

- Base URL: `https://api.naturali.ai`
- URL: `https://api.naturali.ai/v1/projects/{project_id}/metadata-schemas`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.naturali.ai/authorize`, token URL `https://api.naturali.ai/token`, scopes: `mcp:access`)

Returns the declarations in scope, oldest first. `resource_type` narrows them to one governed resource.

## Query parameters

- `resource_type` 'document'
- `limit` integer
- `offset` integer

## Response `200`

The declarations in scope

- object
  - `data` MetadataSchemaRecord[], required
    - `id` string: Public ID (mdschema_ prefix)
    - `project_id` string
    - `resource_type` 'document': The resource whose metadata this declaration governs.
    - `path_prefix` string: The selector, in the field its resource type is addressed by. A document's is the directory it is filed under.
    - `schema` object: The declared JSON Schema, as written.
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/naturali/apis/naturali-ai-api.md) · [All operations](https://skmtc.dev/naturali/apis/naturali-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/naturali/apis/naturali-ai-api/revisions/e4905b78f422?raw)
