---
title: "Discussion on \"File downloads in OpenAPI: CSV, PDF, ZIP, images, Content-Disposition, and non-JSON responses\" | Hashnode"
description: "Discussion on \"File downloads in OpenAPI: CSV, PDF, ZIP, images, Content-Disposition, and non-JSON responses\". APIs return more than JSON: CSV exports, PDF invoices, ZIP archives, resized images, and generated audio. Model them with the right media type and string/binary schema, document Content-Disposition and Range, and distinguish inline from attachment. Here is how to describe downloa"
url: "https://hashnode.com/posts/openapi-file-download-csv-pdf-non-json-responses/6aca07771f20fc58e5aa4c1e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [File downloads in OpenAPI: CSV, PDF, ZIP, images, Content-Disposition, and non-JSON responses](https://blogs.powerduck.com/openapi-file-download-csv-pdf-non-json-responses?utm_source=hashnode&utm_medium=feed)

APIs return more than JSON: CSV exports, PDF invoices, ZIP archives, resized images, and generated audio. Model them with the right media type and string/binary schema, document Content-Disposition and Range, and distinguish inline from attachment. Here is how to describe downloa

Oct 8 · 6 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#http](https://hashnode.com/tag/http)
-   [#file-handling](https://hashnode.com/tag/file-handling)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
