# win.tomo-x.atventar.getCalendar

> Get the current calendar and all its indexed valid registrations across every day and sheet. Entries are ordered by day ascending, indexedAt ascending, then URI ascending. Match calendar membership by URI regardless of the originally referenced CID. This response is not paginated. Future-day registrations remain in the response, but their article URLs and article record references are omitted. Display sheet numbers are dynamically reassigned.

- Kind: query
- Authority: atventar.tomo-x.win
- Lexicon: 1
- Published by [tomo-x.win](https://lexicon.garden/identity/did:plc:qcwvyds5tixmcwkwrg3hxgxd), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.atventar.getCalendar)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.atventar.getCalendar/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.atventar.getCalendar/analytics)

## Query (`win.tomo-x.atventar.getCalendar`)

Type: query · GET

### Parameters (query string)

- `uri` (string · at-uri, required): DID-based URI of a win.tomo-x.atventar.calendar record.

### Output (application/json)

- `calendar` (ref, required)
  - Reference: `win.tomo-x.atventar.defs#calendarView`
- `entries` (array, required): All indexed valid registrations for this calendar. Empty when there are no registrations. The length equals calendar.entryCount in this response.
  - `items` (ref)
    - Reference: `win.tomo-x.atventar.defs#entryView`

### Errors

- `CalendarNotFound`: The requested calendar is not indexed or is no longer available.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the current calendar and all its indexed valid registrations across every day and sheet. Entries are ordered by day ascending, indexedAt ascending, then URI ascending. Match calendar membership by URI regardless of the originally referenced CID. This response is not paginated. Future-day registrations remain in the response, but their article URLs and article record references are omitted. Display sheet numbers are dynamically reassigned.",
      "errors": [
        {
          "description": "The requested calendar is not indexed or is no longer available.",
          "name": "CalendarNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "calendar": {
              "ref": "win.tomo-x.atventar.defs#calendarView",
              "type": "ref"
            },
            "entries": {
              "description": "All indexed valid registrations for this calendar. Empty when there are no registrations. The length equals calendar.entryCount in this response.",
              "items": {
                "ref": "win.tomo-x.atventar.defs#entryView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "calendar",
            "entries"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "DID-based URI of a win.tomo-x.atventar.calendar record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "win.tomo-x.atventar.getCalendar",
  "lexicon": 1
}
```
