---
title: "Download a file's content (source preview or output body)"
description: "GET https://api.markitdown.ai/v1/conversions/{id}/files/{file_id}/content — Download a file's content (source preview or output body)."
url: https://markitdown.ai/docs/api/get-conversion-file-content
updated: 2026-09-26
source: markitdown.ai
---

# Download a file's content (source preview or output body)

> GET https://api.markitdown.ai/v1/conversions/{id}/files/{file_id}/content — Download a file's content (source preview or output body).

## Endpoint

**GET** `/v1/conversions/{id}/files/{file_id}/content` — Download a file's content (source preview or output body)

`getConversionFileContent` is part of the Conversions resource of the markitdown.ai API v1. Send an API key in the `x-api-key` header (or `Authorization: Bearer mdai_…`); all bodies are `application/json` unless a response lists another media type.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | path · string | yes |  |
| `file_id` | path · string | yes |  |

## Example request

**curl**

```bash
curl https://api.markitdown.ai/v1/conversions/cnv_00000000000040008000000000000001/files/file_00000000000040008000000000000002/content \
  -H "x-api-key: $MARKITDOWN_API_KEY"
```

## Responses

- `200` Raw file bytes with the file's own MIME type. HTML, SVG and XML are sent as attachments; every response carries X-Content-Type-Options: nosniff and a sandboxing CSP.
- `404` Not found (`application/problem+json`) — `Problem`

## Errors

- [Error codes](/docs/errors) — every `error` code with its status, meaning and whether to retry

## Related

- [API reference](https://markitdown.ai/docs/api)
- [Error codes](https://markitdown.ai/docs/errors)
- [Introduction](https://markitdown.ai/docs)
- [Document Conversion APIs](https://markitdown.ai/developers)
