# place.hud.getCanvas

> A canvas the person is in, or is invited to, with its tiles in strip order: each column's head, then the tiles stacked under it. A canvas holds 200 tiles at most, so they come whole. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.

- Kind: query
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getCanvas)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getCanvas/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getCanvas/analytics)

## Query (`place.hud.getCanvas`)

Type: query · GET

### Parameters (query string)

- `canvas` (string, required): A canvas's id: 12 hex digits, its space's key where it is kept in one.
  - Constraints: minLength: 12, maxLength: 12

### Output (application/json)

- `canvas` (ref, required)
  - Reference: `place.hud.defs#canvasView`
- `tiles` (array, required)
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `place.hud.defs#tileView`

### Errors

- `NotFound`: No canvas of this id that the person is in, or no tile of this id on it.
- `InvalidRequest`: The input is not what the method takes, or what it asks cannot be done.
- `AuthRequired`: No live web session or HUD access token: sign in.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A canvas the person is in, or is invited to, with its tiles in strip order: each column's head, then the tiles stacked under it. A canvas holds 200 tiles at most, so they come whole. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "No canvas of this id that the person is in, or no tile of this id on it.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes, or what it asks cannot be done.",
          "name": "InvalidRequest"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "canvas": {
              "ref": "place.hud.defs#canvasView",
              "type": "ref"
            },
            "tiles": {
              "items": {
                "ref": "place.hud.defs#tileView",
                "type": "ref"
              },
              "maxLength": 200,
              "type": "array"
            }
          },
          "required": [
            "canvas",
            "tiles"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "canvas": {
            "description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
            "maxLength": 12,
            "minLength": 12,
            "type": "string"
          }
        },
        "required": [
          "canvas"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "A canvas and its tiles.",
  "id": "place.hud.getCanvas",
  "lexicon": 1
}
```
