API reference: Listings
Add photos by address
POST
https://dev.siteswap.pro/api/v1/listings/{id}/photosDownloads photos from https addresses and adds them to a listing of your company, through the same pipeline as uploads (shrunk, stored, a small copy made). Up to 8 a listing, 15 MB each, JPEG, PNG, WebP or HEIC. Addresses on private networks are refused.
Needs the listings:write scope.
Needs an API key or sign-in token in Authorization: Bearer or X-API-Key. Authentication
Path parameters
idstringrequiredThe listing's id
Body
urlsstring[]requiredhttps addresses of the photos
Responses
200OK
400bad_request, key_in_url or invalid_json: the request could not be read
401missing_key or invalid_key: no key, or a key that is not valid or was revoked
403key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
404not_found: nothing here that you may see
413too_large: the body is over 256 KB
429rate_limited or daily_quota: wait for Retry-After seconds
Response fields
addedintegerrequiredphotosintegerrequiredPhotos the listing has now
SiteSwap API v1Support