curl --request POST \
--url https://services.leadconnectorhq.com/medias/upload-file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form hosted=true \
--form 'fileUrl=<string>' \
--form 'name=<string>'{
"fileId": "file.pdf",
"url": "https://storage.googleapis.com/bucket-name/path/to/file.pdf"
}If hosted is set to true then fileUrl is required. Else file is required. If adding a file, maximum allowed is 25 MB. For video files, the maximum allowed size is 500 MB.
curl --request POST \
--url https://services.leadconnectorhq.com/medias/upload-file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form hosted=true \
--form 'fileUrl=<string>' \
--form 'name=<string>'{
"fileId": "file.pdf",
"url": "https://storage.googleapis.com/bucket-name/path/to/file.pdf"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Was this page helpful?