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.
Details · query
| Kind | query |
|---|---|
| Authority | embed.beta.colibri.social |
| Commit rev | 3n2a42khyst22 |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.sigNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"description": "url, exp or sig is missing or malformed.",
"name": "InvalidRequest"
},
{
"description": "The signature is invalid or expired.",
"name": "Forbidden"
},
{
"description": "The origin could not be reached or answered with an error.",
"name": "NotFetchable"
},
{
"description": "The origin served something other than an allowed image type.",
"name": "UnsupportedImage"
}
],
"output": {
"encoding": "image/*"
},
"parameters": {
"properties": {
"exp": {
"description": "Unix time in seconds after which the link stops working.",
"type": "integer"
},
"sig": {
"description": "Signature over the kind, url and exp, issued by this AppView.",
"type": "string"
},
"url": {
"description": "The image on the origin.",
"format": "uri",
"type": "string"
}
},
"required": [
"url",
"exp",
"sig"
],
"type": "params"
},
"type": "query"
}
},
"id": "social.colibri.beta.embed.getImage",
"lexicon": 1
}