Docs / Head Image
Head Image
Head Image
HEAD/v1/site/images/{key}
- Auth
- client bearer + quota
- Source of truth
clients/openapi.jsonanddocs/API.md§12
`HEAD` on the public mirror: the GET's headers, no body, same ETag for a 304.
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 -X HEAD \
'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, method="HEAD", headers={})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("Location"))
text = res.read().decode("utf-8")
return json.loads(text) if text else {}
if __name__ == "__main__":
print(call())const res = await fetch(
"https://vg.tempproject.online/v1/site/images/img-b404bcc0af786cb0c2f3e40d1333436c",
{
method: "HEAD",
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, 304, 401, 404, 422, 429. The full envelope for each status, with its body, is on Errors.