social.colibri.beta.embed.getImage

Proxies an image from a link embed through the AppView, so the viewer's address never reaches the origin. The URL comes signed in an embed view, which lets an img element load it without a bearer header. The origin's content type must be an allowed image type. Supports HTTP range requests.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · query
Kindquery
Authorityembed.beta.colibri.social
Commit rev3n2a42khyst22
Indexed

Query

query · GET

Parameters

query string

exp

requiredinteger

Unix time in seconds after which the link stops working.

sig

requiredstring

Signature over the kind, url and exp, issued by this AppView.

url

requiredstring · uri

The image on the origin.

Output

image/*

Errors

InvalidRequest

url, exp or sig is missing or malformed.

Forbidden

The signature is invalid or expired.

NotFetchable

The origin could not be reached or answered with an error.

UnsupportedImage

The origin served something other than an allowed image type.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • social.colibri.embed.getImage

    query not from the namespace authority

    Proxies and returns an external image, guarding against SSRF.

  • Proxies a video from a link embed through the AppView, so the viewer's address never reaches the origin. The URL comes signed in an embed view, which lets a video element load it without a bearer header. The origin's content type must be an allowed video type. Supports HTTP range requests.

  • Serves a blob from a permissioned space through the AppView, which holds the space credential the client does not. Every byte is verified against the CID before it is served, and the content type is sniffed rather than trusted. Supports HTTP range requests.

  • Fetches and parses a link preview. The AppView fetches the URL on the client's behalf, so the client's address is never exposed to the target site.