HTTP API
Download the PDF copy
GET
/v1/documents/{document_id}/renditions/{format}/file
const url = 'https://sergo.example.com/v1/documents/example/renditions/example/file';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”document_id
required
Document Id
string
format
required
Format
string
Responses
Section titled “Responses”The PDF copy
Media typeapplication/pdf
Validation Error
Media typeapplication/json
RequestError
object
code
required
Code
string
message
required
Message
What was wrong, field by field
string
Example
{ "code": "invalid_request"}