Download digital object endpoint¶
This endpoint supports streaming locally stored online digital objects, as well as external digital objects linked via a public URI. It is not possible to stream offline digital objects with this endpoint.
To be able to query the endpoint, you will need to know the slug of the information object (aka archival description) whose digital object you wish to download. Note that the slug is included in the Browse information objects endpoint response, so you could use it to determine the slug of a particular description if needed.
curl -v -H "REST-API-Key: api-key" "https://www.example.com/api/informationobjects/test-description/digitalobject" --output sample_file.pdf
Example response is truncated and edited for readability.
HTTP/1.1 200 OK
Content-Description: File Transfer
Content-Disposition: attachment; filename=sample_file.pdf
Cache-Control: public, must-revalidate