# place.hud.getShared

> What a link shares, for anyone who has it: a canvas's name and tiles as they are now; a tile's call; or a chat's answer as it was shared, its question, words, steps and tiles' calls. Never a tile's result: the page calls each tile as whoever opens it (callTool signed in, callSharedTool signed out). Nothing but what was shared: no member, no canvas's or chat's id. No auth required (a web session it carries is read only to say whether it is enough to see the page as the person); each address asks at most 120 times a minute, with callSharedTool.

- 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.getShared)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getShared/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getShared/analytics)

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

Type: query · GET

### Parameters (query string)

- `link` (string, required): The link's key, as its URL names it.
  - Constraints: minLength: 26, maxLength: 26

### Output (application/json)

- `by` (ref, required): Who shared it.
  - Reference: `place.hud.defs#actor`
- `canvas` (ref)
  - Reference: `#canvas`
- `chat` (ref)
  - Reference: `#chat`
- `createdAt` (string · datetime, required): When it was shared.
- `key` (string, required): The link's key, as its URL names it.
  - Constraints: minLength: 26, maxLength: 26
- `kind` (string, required): What it shares: canvas, tile or chat, whose field holds it.
  - Constraints: knownValues: canvas | tile | chat
- `servesChat` (boolean): Whether this HUD serves the chat to the caller, at /chat: with no model to chat with it does not, nor where the operator names the accounts it answers and the caller, signed in or not, is none of them; then the page offers no Ask your own nor Ask about this.
- `signInAgain` (boolean): Whether the web session the request carries is short of what seeing a shared page as the person needs: the page asks to sign in again. Left out signed out.
- `tile` (ref)
  - Reference: `place.hud.defs#sharedCall`
- `title` (string, required): The canvas's name, the tile's title, or the question.
  - Constraints: maxLength: 200

### Errors

- `NotFound`: No link of this id: never one, or deleted, or what it shared was.
- `InvalidRequest`: The input is not what the method takes.
- `RateLimitExceeded`: This address asked for shared pages and their tiles too often in the last minute: ask again in a minute.

## #canvas (`place.hud.getShared#canvas`)

Type: object

A canvas, as it is now.

### Properties

- `name` (string, required)
  - Constraints: maxLength: 80
- `tiles` (array, required): Its tiles in strip order: each column's head, then the tiles stacked under it.
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `place.hud.defs#sharedTile`

## #chat (`place.hud.getShared#chat`)

Type: object

A chat's answer, as it was shared.

### Properties

- `question` (string, required): What the person asked.
  - Constraints: maxLength: 10000
- `steps` (array, required): The tool calls the model made: each its tool and how it went, a query's method its one argument kept, never what the call answered.
  - `items` (ref)
    - Reference: `place.hud.chatDefs#step`
- `text` (string, required): The model's words, Markdown.
  - Constraints: maxLength: 10000
- `tiles` (array, required): What the answer drew, in order.
  - `items` (ref)
    - Reference: `place.hud.defs#sharedCall`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "canvas": {
      "description": "A canvas, as it is now.",
      "properties": {
        "name": {
          "maxLength": 80,
          "type": "string"
        },
        "tiles": {
          "description": "Its tiles in strip order: each column's head, then the tiles stacked under it.",
          "items": {
            "ref": "place.hud.defs#sharedTile",
            "type": "ref"
          },
          "maxLength": 200,
          "type": "array"
        }
      },
      "required": [
        "name",
        "tiles"
      ],
      "type": "object"
    },
    "chat": {
      "description": "A chat's answer, as it was shared.",
      "properties": {
        "question": {
          "description": "What the person asked.",
          "maxLength": 10000,
          "type": "string"
        },
        "steps": {
          "description": "The tool calls the model made: each its tool and how it went, a query's method its one argument kept, never what the call answered.",
          "items": {
            "ref": "place.hud.chatDefs#step",
            "type": "ref"
          },
          "type": "array"
        },
        "text": {
          "description": "The model's words, Markdown.",
          "maxLength": 10000,
          "type": "string"
        },
        "tiles": {
          "description": "What the answer drew, in order.",
          "items": {
            "ref": "place.hud.defs#sharedCall",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "question",
        "text",
        "steps",
        "tiles"
      ],
      "type": "object"
    },
    "main": {
      "description": "What a link shares, for anyone who has it: a canvas's name and tiles as they are now; a tile's call; or a chat's answer as it was shared, its question, words, steps and tiles' calls. Never a tile's result: the page calls each tile as whoever opens it (callTool signed in, callSharedTool signed out). Nothing but what was shared: no member, no canvas's or chat's id. No auth required (a web session it carries is read only to say whether it is enough to see the page as the person); each address asks at most 120 times a minute, with callSharedTool.",
      "errors": [
        {
          "description": "No link of this id: never one, or deleted, or what it shared was.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes.",
          "name": "InvalidRequest"
        },
        {
          "description": "This address asked for shared pages and their tiles too often in the last minute: ask again in a minute.",
          "name": "RateLimitExceeded"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "by": {
              "description": "Who shared it.",
              "ref": "place.hud.defs#actor",
              "type": "ref"
            },
            "canvas": {
              "ref": "#canvas",
              "type": "ref"
            },
            "chat": {
              "ref": "#chat",
              "type": "ref"
            },
            "createdAt": {
              "description": "When it was shared.",
              "format": "datetime",
              "type": "string"
            },
            "key": {
              "description": "The link's key, as its URL names it.",
              "maxLength": 26,
              "minLength": 26,
              "type": "string"
            },
            "kind": {
              "description": "What it shares: canvas, tile or chat, whose field holds it.",
              "knownValues": [
                "canvas",
                "tile",
                "chat"
              ],
              "type": "string"
            },
            "servesChat": {
              "description": "Whether this HUD serves the chat to the caller, at /chat: with no model to chat with it does not, nor where the operator names the accounts it answers and the caller, signed in or not, is none of them; then the page offers no Ask your own nor Ask about this.",
              "type": "boolean"
            },
            "signInAgain": {
              "description": "Whether the web session the request carries is short of what seeing a shared page as the person needs: the page asks to sign in again. Left out signed out.",
              "type": "boolean"
            },
            "tile": {
              "ref": "place.hud.defs#sharedCall",
              "type": "ref"
            },
            "title": {
              "description": "The canvas's name, the tile's title, or the question.",
              "maxLength": 200,
              "type": "string"
            }
          },
          "required": [
            "key",
            "kind",
            "by",
            "title",
            "createdAt"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "link": {
            "description": "The link's key, as its URL names it.",
            "maxLength": 26,
            "minLength": 26,
            "type": "string"
          }
        },
        "required": [
          "link"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "What a link shares.",
  "id": "place.hud.getShared",
  "lexicon": 1
}
```
