Ivandt logo

Presign upload

Presign upload

Generates a presigned URL that allows direct file upload to storage. The URL is valid for 1 hour and supports files up to 500MB.

Supported file types:

  • Spreadsheets: .xlsx, .xls, .csv, .tsv
  • Documents: .txt, .json, .pdf
  • Images: .png, .jpg, .jpeg, .webp

Upload flow:

  1. Call this endpoint to get a presigned URL
  2. Upload your file directly to the returned URL using HTTP PUT
  3. The file is automatically associated with your import
POST
/files/presign
fileNamestring
fileSizenumber
contentTypestring

Response Body

curl -X POST "https://api.ivandt.com/v1/files/presign" \  -H "Content-Type: application/json" \  -d '{    "fileName": "string",    "fileSize": 0,    "contentType": "string"  }'
{
  "uploadUrl": "string",
  "fileId": "string",
  "fileKey": "string",
  "expiresIn": 0
}