cURL
curl --request GET \ --url https://api.treasuryprime.com/file/{id}/content \ --header 'Authorization: Basic <encoded-value>'
{ "content_hash": "<string>", "content_length": 123, "content_type": "<string>", "content_url": "<string>", "id": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Unique identifier for object
The file
SHA-1 hash of the file contents
Length of the file contents in bytes
A valid media type
A url that can be used to download the file. URL is only valid for a short time
Was this page helpful?