# community.lexicon.calendar.getEvent

> Published by [lexicons.lexicon.community](https://lexicon.garden/identity/did:plc:mtr7qrqtcyseedx3jyr5o7db)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mtr7qrqtcyseedx3jyr5o7db/community.lexicon.calendar.getEvent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mtr7qrqtcyseedx3jyr5o7db/community.lexicon.calendar.getEvent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mtr7qrqtcyseedx3jyr5o7db/community.lexicon.calendar.getEvent/examples)

## Definitions

### `community.lexicon.calendar.getEvent`

**Type**: `query`

Get a single event by repository and record key.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `recordKey` | `string` | Yes | The record key (rkey) of the event. |
| `repository` | `string` (did) | Yes | The DID of the repository containing the event. |

#### Output

**Encoding**: `application/json`

#### Errors

- **NotFound**

### `community.lexicon.calendar.getEvent#eventView`

**Type**: `object`

An event record with RSVP counts and URL.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `url` | `string` (uri) | Yes | The canonical URL for this event on Smoke Signal. |
| `countGoing` | `integer` | Yes | Number of users who have RSVP'd as going. |
| `countNotGoing` | `integer` | Yes | Number of users who have RSVP'd as not going. |
| `countInterested` | `integer` | Yes | Number of users who have RSVP'd as interested. |

## Raw Schema

```json
{
  "id": "community.lexicon.calendar.getEvent",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "#eventView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "repository",
          "recordKey"
        ],
        "properties": {
          "recordKey": {
            "type": "string",
            "maxLength": 150,
            "description": "The record key (rkey) of the event.",
            "maxGraphemes": 150
          },
          "repository": {
            "type": "string",
            "format": "did",
            "description": "The DID of the repository containing the event."
          }
        }
      },
      "description": "Get a single event by repository and record key."
    },
    "eventView": {
      "type": "object",
      "required": [
        "countGoing",
        "countInterested",
        "countNotGoing",
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The canonical URL for this event on Smoke Signal."
        },
        "countGoing": {
          "type": "integer",
          "description": "Number of users who have RSVP'd as going."
        },
        "countNotGoing": {
          "type": "integer",
          "description": "Number of users who have RSVP'd as not going."
        },
        "countInterested": {
          "type": "integer",
          "description": "Number of users who have RSVP'd as interested."
        }
      },
      "description": "An event record with RSVP counts and URL."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
