Skip to main content
GET
Download Document

Authorizations

X-API-Key
string
header
required

Path Parameters

document_id
string
required

Document id (UUID).

Query Parameters

file_type
enum<string>

Which stored file to download (defaults to FILE_TYPE_PDF): FILE_TYPE_PDF (signed PDF), FILE_TYPE_PREVIEW (print form, «Печатная форма»), FILE_TYPE_DDCARD («КЭД» card), FILE_TYPE_DOCX (editable source), FILE_TYPE_JSON (machine-readable).

Available options:
FILE_TYPE_UNSPECIFIED,
FILE_TYPE_PDF,
FILE_TYPE_DOCX,
FILE_TYPE_DDCARD,
FILE_TYPE_PREVIEW,
FILE_TYPE_JSON

Response

OK

content_type
string
read-only

MIME type of the file.

expires_at
string<date-time>
read-only

When the URL stops working. Do not store the URL — request a fresh one at download time.

filename
string
read-only

Suggested filename for saving.

url
string
read-only

Short-lived presigned download URL.