Docs / API reference

Get a photo file

GET /v1/images/{id}/file: a photo, the original or a resized WebP (thumb or medium), from the signed links the API hands out.

GET /v1/images/{id}/file

No key needed with the signed links the API hands out (url, thumb_url, medium_url); a link without its signature needs an API key.

Photos come with ready-made links (url, thumb_url, medium_url) in item responses. Use those as they are: they are signed, so an <img> tag can load them without a key. The example's sig=… stands for the signature in such a link; without it, the request needs a key. Photos lists the sizes.

Path parameters

NameTypeRequiredDescription
idUUIDYes

Query parameters

NameTypeRequiredDescription
sizeone of: thumb, mediumNo
expstring, up to 20 charactersNoSigned links from the API carry exp and sig and need no key
sigstring, up to 200 charactersNo

Example

curl "https://tablearchive.dev/v1/images/45a4acbd-a0a6-4079-aad7-36563471f991/file?size=thumb&exp=1791763200&sig=…" \
  -o photo.webp

Notes

  • Signed links expire after six to twelve hours; fetch the item again for fresh ones.
  • Responses are cacheable until the link expires.

Errors

StatusWhen
400A parameter or field is missing or invalid; details names each one
401A link without its signature, and no API key
404Nothing at that id or slug (a merged-away slug redirects to the survivor instead)
429Rate limited; wait for Retry-After seconds

Every error is JSON with an error message. See Rate limits and errors.