Skip to content

HTTP API

Download the PDF copy

GET
/v1/documents/{document_id}/renditions/{format}/file
curl --request GET \
--url https://sergo.example.com/v1/documents/example/renditions/example/file \
--header 'Authorization: Bearer <token>'

The PDF copy of an Office file. 404 while there is none. format is pdf.

document_id
required
Document Id
string
format
required
Format
string

The PDF copy

Media typeapplication/pdf

Validation Error

Media typeapplication/json
RequestError
object
code
required
Code
string
Allowed value: invalid_request
message
required
Message

What was wrong, field by field

string

Example

{
"code": "invalid_request"
}