# lol.dids.sites.getTile

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getTile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getTile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.sites.getTile/examples)

## Definitions

### `lol.dids.sites.getTile`

**Type**: `query`

A published tile. Without cid the latest published version is returned; a prepared-but-uncommitted version is never returned, and neither is a space tile.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | No | Pin a specific version; absent returns the latest published one. |
| `uri` | `string` (at-uri) | Yes | The tile record's AT-URI. |

#### Output

**Encoding**: `application/json`

#### Errors

- **TileNotFound**: No such published tile — also the answer for a space tile and for a version known only as pending-publication.

## Raw Schema

```json
{
  "id": "lol.dids.sites.getTile",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "TileNotFound",
          "description": "No such published tile — also the answer for a space tile and for a version known only as pending-publication."
        }
      ],
      "output": {
        "schema": {
          "ref": "lol.dids.defs#tileView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "format": "cid",
            "description": "Pin a specific version; absent returns the latest published one."
          },
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "The tile record's AT-URI."
          }
        }
      },
      "description": "A published tile. Without cid the latest published version is returned; a prepared-but-uncommitted version is never returned, and neither is a space tile."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
