Skip to main content
GET
/
knowledge_bases
/
supported_content_types
List file types the configured parsers can ingest
curl --request GET \
  --url https://api.example.com/knowledge_bases/supported_content_types \
  --header 'x-user-id: <x-user-id>'
{
  "media_types": [
    "<string>"
  ],
  "extensions": [
    "<string>"
  ]
}

Headers

x-user-id
string
required

Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.

Response

Successful Response

Response body advertising the parser-supported upload types.

Aggregated across every parser registered on the app — the union of each parser's :attr:supported_media_types and :meth:supported_extensions. The front-end uses this to populate <input accept> and to reject unsupported drops on the client before the file leaves the browser.

media_types
string[]
required

Union of IANA media types every registered parser claims to handle. Deduplicated and sorted.

extensions
string[]
required

Filename extensions (each starting with .) every registered parser claims to handle. Deduplicated and sorted. Derived from mimetypes by the base parser; subclasses may override the default.