ModaDocs
Uploads

Upload a file

Upload a file and receive a stable proxy URL. The returned URL can be passed as an attachment URL in the start_design_task endpoint. Supports images, PDFs, and PPTX files.

POST
/uploads

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Settings > Developer > REST API. Format: moda_live_...

In: header

Request Body

multipart/form-data

file*file

The file to upload.

Formatbinary

Response Body

application/json

curl -X POST "https://api.moda.app/v1/uploads" \  -F file="string"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "url": "http://example.com",
  "filename": "string",
  "mime_type": "string",
  "size_bytes": 0,
  "was_duplicate": true
}