Skip to main content
You send photo URLs; Okasie downloads each photo during the request, stores its own copy and shows that copy on the site. Your URLs only need to work while Okasie downloads them.

Sending photos

Send images in Create/Update Listing or in a bulk item, as URL strings, objects, or a mix:
  • Order: photos are shown by position, lowest first; the lowest is the main photo used in search results. Without position, the index in the array is used.
  • Maximum: 50 photos. Empty entries are dropped first; entries after the 50th are ignored without a warning.
  • URL: max 2048 characters.

Replacing photos

To add one photo, send the full list including the existing ones. URLs returned by the read endpoints (Okasie’s own copies) are accepted as well and are kept without a new download.

Download rules

Photos are downloaded one after another while the request runs, and on every PUT that contains images each URL is downloaded again. A car with many photos can take tens of seconds; give your HTTP client a generous timeout.

Skipped photos

A photo that cannot be downloaded does not stop the listing. It is left out, and the response reports it:
reason is one of: Treat reason as text for people; the wording can change. A skipped photo is not stored, and when the listing had it before, it is removed. Send the listing again once the photo is available.

Good practice

  • Use stable HTTPS URLs that stay reachable for at least a few minutes after the call; avoid short-lived signed URLs.
  • Use a new URL when a photo changes.
  • Send photos of a reasonable size (a few MB at most) to keep requests fast.