GET
/
file
/
{id}
curl --request GET \
  --url https://api.treasuryprime.com/file/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "content_hash": "5644a65d2e0adb879329196d8e115be52e2a921c",
      "content_length": 347504,
      "content_type": "image/jpeg",
      "content_url": "https://treasuryprime-usercontent.com/sandbox/org_1he97gra9he/0/5644...",
      "created_at": "2023-11-16T22:59:31Z",
      "id": "file_11jnd0n3nx",
      "updated_at": "2023-11-16T22:59:31Z"
    }
  ]
}

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