# com.livtet.giveaway.listEntries

> List the entries into one giveaway, oldest first. Entries are records in each entrant's own public repo, so the DIDs here leak nothing the index does not already expose.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.listEntries)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.listEntries/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.listEntries/analytics)

## Query (`com.livtet.giveaway.listEntries`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): Opaque pagination cursor.
- `giveaway` (string · at-uri, required): AT-URI of the giveaway whose entries to list.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 500, default: 50

### Output (application/json)

- `cursor` (string): Opaque pagination cursor; absent when no further entries are known.
- `entries` (array, required)
  - `items` (object)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Opaque pagination cursor; absent when no further entries are known.",
              "type": "string"
            },
            "entries": {
              "items": {
                "properties": {
                  "country": {
                    "maxLength": 2,
                    "minLength": 2,
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "datetime",
                    "type": "string"
                  },
                  "did": {
                    "description": "The entrant: the repo the entry was written into.",
                    "format": "did",
                    "type": "string"
                  },
                  "uri": {
                    "description": "AT-URI of the entry record, in the entrant's own repo.",
                    "format": "at-uri",
                    "type": "string"
                  }
                },
                "required": [
                  "uri",
                  "did",
                  "createdAt"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "entries"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Opaque pagination cursor.",
            "type": "string"
          },
          "giveaway": {
            "description": "AT-URI of the giveaway whose entries to list.",
            "format": "at-uri",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "giveaway"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "List the entries into one giveaway, oldest first. Entries are records in each entrant's own public repo, so the DIDs here leak nothing the index does not already expose.",
  "id": "com.livtet.giveaway.listEntries",
  "lexicon": 1
}
```
