cURL
curl --request POST \ --url https://api.treasuryprime.com/file \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: image/gif'
{ "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" }
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
The file to upload as binary data
The body is of type file.
file
The file
The response is of type object.
object
Was this page helpful?