Skip to main content
POST
/
v1
/
workspace
/
website
/
{website_id}
/
media
/
upload
/
batch
Upload multiple media files
curl --request POST \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/media/upload/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    {
      "file_base64": "<string>",
      "file_name": "<string>",
      "media_type": "images",
      "content_type": "<string>"
    }
  ]
}
'
{
  "success": true,
  "result": {
    "uploaded": [
      {
        "url": "https://cdn.ln-cdn.com/c/website_abc123/images/hero-image.jpg",
        "file_name": "hero-image.jpg",
        "media_type": "images",
        "success": true,
        "error": "File too large"
      }
    ],
    "total": 5,
    "successful": 5,
    "failed": 0
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"ws_abc123"

Body

application/json
files
object[]
required

Array of files to upload (max 20 files per request)

Maximum array length: 20

Response

Files processed (check individual results for success/failure)

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required