# app.bsky.bookmark.defs

- Kind: defs
- Authority: bookmark.bsky.app
- Lexicon: 1
- Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.bookmark.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.bookmark.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/app.bsky.bookmark.defs/analytics)

## #bookmark (`app.bsky.bookmark.defs#bookmark`)

Type: object

Object used to store bookmark data in stash.

### Properties

- `subject` (ref, required): A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.
  - Reference: `com.atproto.repo.strongRef`

## #bookmarkView (`app.bsky.bookmark.defs#bookmarkView`)

Type: object

### Properties

- `createdAt` (string · datetime)
- `item` (union, required)
  - One of: `app.bsky.feed.defs#blockedPost`, `app.bsky.feed.defs#notFoundPost`, `app.bsky.feed.defs#postView`
- `subject` (ref, required): A strong ref to the bookmarked record.
  - Reference: `com.atproto.repo.strongRef`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bookmark": {
      "description": "Object used to store bookmark data in stash.",
      "properties": {
        "subject": {
          "description": "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "subject"
      ],
      "type": "object"
    },
    "bookmarkView": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "item": {
          "refs": [
            "app.bsky.feed.defs#blockedPost",
            "app.bsky.feed.defs#notFoundPost",
            "app.bsky.feed.defs#postView"
          ],
          "type": "union"
        },
        "subject": {
          "description": "A strong ref to the bookmarked record.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "subject",
        "item"
      ],
      "type": "object"
    }
  },
  "id": "app.bsky.bookmark.defs",
  "lexicon": 1
}
```
