Create an upload link
Return a single-use link that accepts the raw file bytes with PUT, e.g. curl -T photo.png <upload_url>. Valid for 15 minutes. The response of that PUT matches POST /files/import.
curl -X POST "https://productlane.com/api/v2/files/uploads" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_type": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Body
content_typestringrequiredOne of: application/msword, application/pdf, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/gif, image/jpeg, image/png, image/webp, text/csv, text/plain.
file_namestring
Response
Successful response
upload_urlstringrequiredSend the raw file bytes to this URL with PUT. No Authorization header is needed.
methodenum<string>requiredOne of:PUTexpires_atstringrequiredmax_bytesnumberrequired
{
"upload_url": "string",
"method": "PUT",
"expires_at": "string",
"max_bytes": 0
}