---
title: "Create download"
method: POST
path: "/api/v1/documents/downloads"
tags: ["Documents Download"]
---

# Create download

`POST /api/v1/documents/downloads`

Create a new download object.

## Request body

- DocumentsDownloadCreate
  - `documents` string[] — Comma-separated list of document URLs to be included in the resulting downloadable archive. Max. 500 documents.
  - `file_name` string — The filename of the resulting archive. Must include a `.zip` extension.
  - `type` 'document' | 'source_document' — One of `document` and `source_document`. The `source_document` means that for each of the documents the most distant non-empty `parent` document is put into the download.
  - `zip` boolean — Use `application/zip` to bundle the download contents. The `zip` value of `false` is only applicable for single document downloads where the `file_name` if omitted in the request is taken from the document being downloaded.

## Response `202`

Accepted

- object
  - `url` string, uri — URL of the created [task](/api/task)

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `413` — Payload too large (especially for files uploaded).
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

[API](https://skmtc.dev/rossum/apis/rossum-api.md) · [All operations](https://skmtc.dev/rossum/apis/rossum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rossum/rossum-api/revisions/f1b5a910991d/schema)
