All pages
Reference
GET
/api/v1/media/{id}/preview
Requires the media:read scope.
The photo itself, so an operator can see what they are about to render. Returns image bytes, not JSON.
Request
curl -s "https://omniscape.io/api/v1/media/c35c8330-5dd2-4170-b2b0-bae80ed7182f/preview" \
-H "Authorization: Bearer $OMNISCAPE_API_KEY" -o photo.jpgResponse
HTTP/1.1 200 OK
Content-Type: image/jpeg
Cache-Control: private, no-store
X-Request-Id: 0f1c…
<binary image data>Notes
- This is preview_url from the list response. It is on our domain and it needs the same Authorization header — it is a way to browse your own library, not a public image URL you can put in an <img> tag or hand to a browser.
- It does not expire, because your key is what authorises it rather than a token in the URL.
- A media id that is not yours returns 404 unknown_media — identical to one that does not exist.
Codes this call can return are on Error handling. If something is behaving unexpectedly, Troubleshooting is organised by symptom.