Skip to main content
To get a presigned URL, you first need to request for it. Here we’ll go through how you’d do it
1

Request the presigned URL

Start by performing a GET request on the server. This needs to contain the endpoint and your API token.
curl --request GET \
	--url 'https://api.fivemanage.com/api/v3/file/presigned-url' \
	--header 'Authorization: YOUR_API_TOKEN' \
You will then get a response that looks like this:
{
	"data": {
    	"presignedUrl": "https://api.fivemanage.com/api/v3/file/presigned-url/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  	},
	"status": "ok"
}
This is the url that you will be using in order to upload the file.
2

Uploading files

curl --request POST \
	--url https://api.fivemanage.com/api/v3/file/presigned-url/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... \
	--header 'Content-Type: multipart/form-data' \
	--form file=path/to/your/file.png

Response

The response you get back is like any other file upload using the other uploads API endpoints.
{
  "data": {
    "id": "7F9pGhN8qwErT1vx5aZk",
    "url": "https://r2.fivemanage.com/6E9pGhN8qwErT1vx5aZk/7F9pGhN8qwErT1vx5aZk.jpg"
  },
  "status": "ok"
}