Artifacts
Convert File to Markdown or Tree
Parse a file using the document readers and return its content as markdown text or a structured content tree, without ingesting it into the knowledge base.
post/v1/artifacts/convert
Request body
Example request
{
"format": "markdown",
"input": {
"type": "text",
"value": "# Hello\n\nThis is a simple markdown document."
},
"metadata": {
"file_name": "hello.md"
}
}Response
Successful conversion
Example response
{
"content": "# Annual Report 2023\n\nExecutive Summary\n\nFiscal year 2023 marked a transformative period...",
"reader": "markitdown"
}