HTTP API
Download the original
GET
/v1/documents/{document_id}/original
const url = 'https://sergo.example.com/v1/documents/example/original';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/original \ --header 'Authorization: Bearer <token>'The file as it was uploaded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”document_id
required
Document Id
string
Responses
Section titled “Responses”The file
Media typeapplication/octet-stream
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"}