---
title: "Get Team Metadata Schema"
method: GET
path: "/team/metadata_schema"
tags: ["team management"]
---

# Get Team Metadata Schema

`GET /team/metadata_schema`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/team/metadata_schema`
- Auth: API key in header `x-litellm-api-key`

Get the team metadata fields declared in ``general_settings.team_metadata_schema``.

The UI uses this to prepopulate the team metadata form with the declared
keys. Returns an empty ``fields`` list when no schema is configured. This
schema is advisory; server-side enforcement stays with
``custom_team_metadata_validate``.

## Response `200`

Successful Response

- TeamMetadataSchemaResponse: Response for GET /team/metadata_schema; ``fields`` is empty when no schema is configured.
  - `fields` TeamMetadataFieldSchema[], required
    - `key` string, required
    - `label` string, nullable

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/team/metadata_schema/get.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
