HTTP API
Check the PDF copy
GET
/v1/documents/{document_id}/renditions/{format}
const url = 'https://sergo.example.com/v1/documents/example/renditions/example';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 \ --header 'Authorization: Bearer <token>'Whether an Office file has a PDF copy yet. Page pictures use it, and its pages are the page numbers of the chunks. 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”Successful Response
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"}