cURL
curl --request POST \ --url https://stashy.example.com/api/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: */*' \ --data '"<string>"'
{ "id": "<string>", "url": "<string>" }
Upload a file to storage.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The body is of type file.
file
Success