For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /v2/knowledge-bases/{knowledge_base_id}/metadata-schemas

Get Knowledge Base Metadata Schemas

get

Get the user and dataloader metadata schemas for a knowledge base.

How to use

Inspect the user and dataloader metadata schema before interpreting file metadata. These metadata descriptions are not the content-search endpoint.

Authentication and permissions

Required permissions: kbs.read. Resource and owner access checks also apply.

Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Path parameters
knowledge_base_idstring · uuidRequired
Responses
200

Successful Response

application/json
response_codestring · nullableOptional

Machine-readable response code, when provided.

get/v2/knowledge-bases/{knowledge_base_id}/metadata-schemas
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v2/knowledge-bases/${KNOWLEDGE_BASE_ID}/metadata-schemas" \
  -H "Authorization: Bearer $STACKAI_API_KEY"
{
  "response_code": "text",
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "data": {
    "user": {
      "properties": {
        "^[^\\t\\n\\r\\f\\v]+$": {
          "type": "string",
          "description": "text",
          "order": 1,
          "subtype": "plain"
        }
      }
    },
    "dataloader": {
      "properties": {
        "^[^\\t\\n\\r\\f\\v]+$": {
          "type": "string",
          "description": "text",
          "order": 1,
          "subtype": "plain"
        }
      }
    }
  }
}

Last updated

Was this helpful?