Photos and uploads
Reserve uploads through the API and attach processed photo IDs to listings.
On this page
1. Reserve the upload
Supply the category, JPEG, PNG, WebP or AVIF MIME type, and the exact size in bytes. Limits are 10 MiB per file and 300 reservations or 500 MiB per account per day. Daily limits reset at midnight UTC.
curl --fail-with-body --request POST \
--url "${MOTANO_API_ORIGIN}/api/v1/media" \
--header "Authorization: Bearer ${MOTANO_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"contentType": "image/jpeg",
"sizeBytes": 124000,
"category": "osobowe"
}'2. Upload and complete
PUT the raw file to uploadUrl with the headers returned by the reservation. The URL expires after 10 minutes. Send the Bearer key only to the Motano API. Then complete the upload for the returned ID and poll until ready or failed.
3. Attach a ready photo
Pass the ID in images and arrange items in the desired order. On update, you can include existing:… references from the detail response. Private photo previews require listings:read.