# com.tynanpurdy.giftlist.getList

> Someone's current gift list: the collection their newest com.tynanpurdy.giftlist.list sidecar marks (or, for owners with no sidecar yet, their newest collection with the given name), and the gifts on it, newest first.

- Kind: query
- Authority: giftlist.tynanpurdy.com
- Lexicon: 1
- Published by [giftlist.tynanpurdy.com](https://lexicon.garden/identity/did:plc:tlm5sbbtmcj55u33t2l35cat), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tlm5sbbtmcj55u33t2l35cat/com.tynanpurdy.giftlist.getList)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tlm5sbbtmcj55u33t2l35cat/com.tynanpurdy.giftlist.getList/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tlm5sbbtmcj55u33t2l35cat/com.tynanpurdy.giftlist.getList/analytics)

## Query (`com.tynanpurdy.giftlist.getList`)

Type: query · GET

### Parameters (query string)

- `actor` (string · did, required)
- `name` (string): Fallback for owners with no sidecar yet: the collection name to look for.
  - Constraints: maxLength: 100

### Output (application/json)

- `items` (array)
  - `items` (ref)
    - Reference: `#item`
- `list` (ref)
  - Reference: `#list`

## #item (`com.tynanpurdy.giftlist.getList#item`)

Type: object

### Properties

- `addedAt` (string, required)
- `card` (unknown, required): The network.cosmik.card record, as stored.
- `cardUri` (string · at-uri, required)
- `linkUri` (string · at-uri)
- `note` (string): The owner's newest note on the card.

## #list (`com.tynanpurdy.giftlist.getList#list`)

Type: object

### Properties

- `cid` (string, required)
- `createdAt` (string)
- `description` (string)
- `marked` (boolean): Whether a sidecar marks this list. False for a list found by name, whose owner should add one.
- `name` (string, required)
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "item": {
      "properties": {
        "addedAt": {
          "type": "string"
        },
        "card": {
          "description": "The network.cosmik.card record, as stored.",
          "type": "unknown"
        },
        "cardUri": {
          "format": "at-uri",
          "type": "string"
        },
        "linkUri": {
          "format": "at-uri",
          "type": "string"
        },
        "note": {
          "description": "The owner's newest note on the card.",
          "type": "string"
        }
      },
      "required": [
        "cardUri",
        "card",
        "addedAt"
      ],
      "type": "object"
    },
    "list": {
      "properties": {
        "cid": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "marked": {
          "description": "Whether a sidecar marks this list. False for a list found by name, whose owner should add one.",
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "name"
      ],
      "type": "object"
    },
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "items": {
              "items": {
                "ref": "#item",
                "type": "ref"
              },
              "type": "array"
            },
            "list": {
              "ref": "#list",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          },
          "name": {
            "description": "Fallback for owners with no sidecar yet: the collection name to look for.",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Someone's current gift list: the collection their newest com.tynanpurdy.giftlist.list sidecar marks (or, for owners with no sidecar yet, their newest collection with the given name), and the gifts on it, newest first.",
  "id": "com.tynanpurdy.giftlist.getList",
  "lexicon": 1
}
```
