# net.atpix.gallery.getPhoto

> Published by [lexicon.atpix.net](https://lexicon.garden/identity/did:plc:x4crpdfko2d7xrcd5eovpwex)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.getPhoto)
- [Documentation](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.getPhoto/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.getPhoto/examples)

## Definitions

### `net.atpix.gallery.getPhoto`

**Type**: `query`

Get a single photo by AT URI.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `photo` | `ref` → `net.atpix.gallery.defs#photoView` | Yes |  |

## Raw Schema

```json
{
  "id": "net.atpix.gallery.getPhoto",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "photo"
          ],
          "properties": {
            "photo": {
              "ref": "net.atpix.gallery.defs#photoView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "Get a single photo by AT URI."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
