Skip to main content
POST
/
medias
/
upload-file
Upload File into Media Storage
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"
}

Authorizations

Authorization
string
header
required

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account

Headers

Authorization
string
required

Access Token

Example:

"Bearer 9c48df2694a849b6089f9d0d3513efe"

Body

multipart/form-data
file
file
hosted
boolean
fileUrl
string
name
string

Response

200 - application/json

Successful response

fileId
string
required

ID of the uploaded file

Example:

"file.pdf"

url
string
required

Google Cloud Storage URL of the uploaded file

Example:

"https://storage.googleapis.com/bucket-name/path/to/file.pdf"

Last modified on March 4, 2026