Skip to main content
POST
/
api
/
v1
/
files.json
Upload File
curl --request POST \
  --url https://api.launchmystore.io/api/v1/files.json \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "alt": "<string>",
  "folder": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "file_new789",
    "filename": "banner-summer-sale.png",
    "url": "https://cdn.launchmystore.io/files/banner-summer-sale.png",
    "alt": "Summer sale banner",
    "content_type": "image/png",
    "size": 156234,
    "width": 1200,
    "height": 400,
    "created_at": "2024-01-20T14:30:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Body Parameters

file
file
required
The file to upload (multipart/form-data)
alt
string
Alt text for the image (for accessibility)
folder
string
Optional folder path for organization

Supported File Types

TypeExtensionsMax Size
Imagesjpg, jpeg, png, gif, webp, svg20MB
Videosmp4, webm, mov100MB
Documentspdf, doc, docx10MB

Response

{
  "success": true,
  "data": {
    "id": "file_new789",
    "filename": "banner-summer-sale.png",
    "url": "https://cdn.launchmystore.io/files/banner-summer-sale.png",
    "alt": "Summer sale banner",
    "content_type": "image/png",
    "size": 156234,
    "width": 1200,
    "height": 400,
    "created_at": "2024-01-20T14:30:00Z"
  }
}

Example Request

curl -X POST "https://api.launchmystore.io/api/v1/files.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -F "file=@/path/to/image.jpg" \
  -F "alt=Product image"