# dev.tsunagite.getGame

> Published by [tsunagite.dev](https://lexicon.garden/identity/did:plc:pz4sp2vf5w26wnaee253gfms)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.getGame)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.getGame/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.getGame/examples)

## Definitions

### `dev.tsunagite.getGame`

**Type**: `query`

Single-record game fetch

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `key` | `string` (record-key) | No | The key of the record to fetch. Must be present if `uri` is absent. |
| `uri` | `string` | No | The AT URI of the record to fetch. Must be present if `owner` and `key` are absent. |
| `owner` | `string` (at-identifier) | No | The handle or DID of the record owner. Must be present if `uri` is absent. |

#### Output

**Encoding**: `application/json`

#### Errors

- **gameNotFound**: No game matching the given URI or owner/key was found.
- **invalidParams**: Parameters must include a URI or owner and key.

## Raw Schema

```json
{
  "id": "dev.tsunagite.getGame",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "gameNotFound",
          "description": "No game matching the given URI or owner/key was found."
        },
        {
          "name": "invalidParams",
          "description": "Parameters must include a URI or owner and key."
        }
      ],
      "output": {
        "schema": {
          "ref": "dev.tsunagite.game",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "key": {
            "type": "string",
            "format": "record-key",
            "description": "The key of the record to fetch. Must be present if `uri` is absent."
          },
          "uri": {
            "type": "string",
            "description": "The AT URI of the record to fetch. Must be present if `owner` and `key` are absent."
          },
          "owner": {
            "type": "string",
            "format": "at-identifier",
            "description": "The handle or DID of the record owner. Must be present if `uri` is absent."
          }
        }
      },
      "description": "Single-record game fetch"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
