---
title: "Download a document"
method: GET
path: "/rest/document/{id}"
tags: ["sts-controller"]
---

# Download a document

`GET /rest/document/{id}`

Downloads the document content as binary data for the given document ID. When using `cookieAuth`, the `JSESSIONID` cookie from the `/api/login` response should be used.

## Path parameters

- `id` string, required

## Response `200`

Document content

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Document not found
- `500` — Internal Server Error

---

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