# place.hud.listShareLinks

> Every link the person shared, the newest first: at most 200, so they come whole; or with canvas, that canvas's, if it has one. Requires auth: the workspace's web session (its cookie) 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.listShareLinks)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.listShareLinks/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.listShareLinks/analytics)

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

Type: query · GET

### Parameters (query string)

- `canvas` (string): Only this canvas's link.
  - Constraints: minLength: 12, maxLength: 12

### Output (application/json)

- `links` (array, required)
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `place.hud.defs#shareLink`

### Errors

- `InvalidRequest`: The input is not what the method takes.
- `AuthRequired`: No live web session or HUD access token: sign in.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Every link the person shared, the newest first: at most 200, so they come whole; or with canvas, that canvas's, if it has one. Requires auth: the workspace's web session (its cookie) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "The input is not what the method takes.",
          "name": "InvalidRequest"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "links": {
              "items": {
                "ref": "place.hud.defs#shareLink",
                "type": "ref"
              },
              "maxLength": 200,
              "type": "array"
            }
          },
          "required": [
            "links"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "canvas": {
            "description": "Only this canvas's link.",
            "maxLength": 12,
            "minLength": 12,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The person's links.",
  "id": "place.hud.listShareLinks",
  "lexicon": 1
}
```
