GET /v2/knowledge-bases/{knowledge_base_id}/metadata-schemas
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.
422
Validation Error
application/json
get/v2/knowledge-bases/{knowledge_base_id}/metadata-schemas
curlcurl --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"
}
}
}
}
}PreviousDELETE /v2/knowledge-bases/{knowledge_base_id}
NextGET /v2/knowledge-bases/{knowledge_base_id}/resources
Last updated
Was this helpful?

