GET
/
file
/
{id}
/
content
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>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Unique identifier for object

Response

200 - application/json
The file
content_hash
string

SHA-1 hash of the file contents

content_length
integer

Length of the file contents in bytes

content_type
string

A valid media type

content_url
string

A url that can be used to download the file. URL is only valid for a short time

id
string

Unique identifier for object