# ai.newnal.trustsquare.getSquare

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getSquare)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getSquare/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getSquare/examples)

## Definitions

### `ai.newnal.trustsquare.getSquare`

**Type**: `query`

Fetch one Square by AT-URI or short id.

#### Parameters

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

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `square` | `ref` → `ai.newnal.trustsquare.defs#squareView` | Yes |  |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.getSquare",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "square"
          ],
          "properties": {
            "square": {
              "ref": "ai.newnal.trustsquare.defs#squareView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "id": {
            "type": "string"
          },
          "uri": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "Fetch one Square by AT-URI or short id."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
