# 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.

- Kind: query
- Authority: embed.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.embed.getImage)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.embed.getImage/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.embed.getImage/analytics)

## Query (`social.colibri.beta.embed.getImage`)

Type: query · GET

### Parameters (query string)

- `exp` (integer, required): Unix time in seconds after which the link stops working.
- `sig` (string, required): Signature over the kind, url and exp, issued by this AppView.
- `url` (string · uri, required): 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.

## Schema

```json
{
  "$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
}
```
