# us.off-the-clock.getRecord

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getRecord)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getRecord/examples)

## Definitions

### `us.off-the-clock.getRecord`

**Type**: `query`

One record in a community space the viewer can read: a post with its thread, a poll with its view and the thread of its replies, an event with its RSVPs, or any other record. A deleted post with replies or a deleted event with RSVPs the viewer may see answers its tombstone with them.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `depth` | `integer` | No |  |
| `parentHeight` | `integer` | No |  |
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `union` | Yes |  |
| `rsvps` | `array` | No |  |
| `thread` | `union` | No |  |

#### Errors

- **NotFound**
- **NotSpaceMember**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One record in a community space the viewer can read: a post with its thread, a poll with its view and the thread of its replies, an event with its RSVPs, or any other record. A deleted post with replies or a deleted event with RSVPs the viewer may see answers its tombstone with them.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "item": {
              "refs": [
                "us.off-the-clock.defs#postView",
                "us.off-the-clock.defs#eventView",
                "us.off-the-clock.defs#rsvpView",
                "us.off-the-clock.defs#profileView",
                "us.off-the-clock.defs#recordView",
                "us.off-the-clock.defs#bookmarkView",
                "us.off-the-clock.polls.pollView",
                "us.off-the-clock.defs#tombstoneView"
              ],
              "type": "union"
            },
            "rsvps": {
              "items": {
                "ref": "us.off-the-clock.defs#rsvpView",
                "type": "ref"
              },
              "type": "array"
            },
            "thread": {
              "refs": [
                "app.bsky.feed.defs#threadViewPost",
                "app.bsky.feed.defs#notFoundPost",
                "app.bsky.feed.defs#blockedPost",
                "us.off-the-clock.defs#tombstoneView",
                "us.off-the-clock.polls.threadViewPoll"
              ],
              "type": "union"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "depth": {
            "default": 6,
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "parentHeight": {
            "default": 80,
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "uri": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.getRecord",
  "lexicon": 1
}
```
