Docs / Get Image
Get Image
Get Image
- Auth
- none
- Cache-Control
public, max-age=31536000, immutable (200); public, max-age=N (5-300 s) on 404- Validators
ETag, Last-Modified (200 only)- Source of truth
clients/openapi.jsonanddocs/API.md§12
A generated title image, public. Bytes never change under one key: cache forever.
`?w=640|1280` serves the resized WebP variant produced when the picture was stored; any other value (or a variant that is not on disk) serves the original. Parsed leniently so a malformed width is a fallback, never a 422.
The route hands the request through to `_image_response so a revalidating client gets its 304 on the same ETag a GET` publishes.
Description: clients/openapi.json
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
key | path | yes | string | img-b404bcc0af786cb0c2f3e40d1333436c | Image key, img- plus 32 lowercase hex characters. |
w | query | no | string |
Example request
curl -sS \
'https://vg.tempproject.online/v1/site/images/img-b404bcc0af786cb0c2f3e40d1333436c'import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/site/images/img-b404bcc0af786cb0c2f3e40d1333436c"
def call() -> dict:
req = urllib.request.Request(URL, headers={})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/site/images/img-b404bcc0af786cb0c2f3e40d1333436c",
{
method: "GET",
headers: {},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
HTTP/1.1 200 OK
content-type: image/jpeg
cache-control: public, max-age=31536000, immutable
etag: "5f1c9a0e4d2b8a7c" # file-derived; If-None-Match is not evaluated
last-modified: Thu, 06 Nov 2026 09:12:44 GMT
x-content-type-options: nosniff
x-ember-ai-generated: true
<image bytes>No JSON body: the response is the stored image bytes. The headers are the ones docs/API.md §12 documents for /v1/site/images/{key}; a conditional request with the ETag still answers 200 and the full body.
Failures
This operation can answer 200, 400, 404, 422, 429, 503. The full envelope for each status, with its body, is on Errors.