eCMRhub.docs
API referenceDocuments

Download the document PDF

GET
/functions/v1/artifacts/{documentId}

Presentation PDF of the current issued version, with its SHA-256.

Authorization

apikeybearerAuth
headerapikey<token>
headerAuthorizationBearer <JWT>

Path Parameters

documentId*string
Formatuuid

Response Body

The stored presentation PDF. X-Artifact-Sha256 carries its SHA-256; compare it with the bytes before showing them.

response?fileapplication/pdf
Formatbinary
Example Request
curl -X GET 'https://api-ecmr-dev.lucaspiera.com/functions/v1/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
"string"