# site.mochott.graph.subscription

> Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak)

✓ This is the authoritative definition for this NSID.

## Description

A subscription record in the social graph. Represents a user following a publication.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.graph.subscription)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.graph.subscription/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.graph.subscription/examples)

## Definitions

### `site.mochott.graph.subscription`

**Type**: `record`

Record indicating that the account author is subscribed to a publication. Deleting this record unsubscribes.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `profile` | `string` (at-uri) | Yes | AT URI of the publication profile record being subscribed to. |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the subscription was created. |

## Raw Schema

```json
{
  "id": "site.mochott.graph.subscription",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "profile",
          "createdAt"
        ],
        "properties": {
          "profile": {
            "type": "string",
            "format": "at-uri",
            "description": "AT URI of the publication profile record being subscribed to."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the subscription was created."
          }
        }
      },
      "description": "Record indicating that the account author is subscribed to a publication. Deleting this record unsubscribes."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1,
  "description": "A subscription record in the social graph. Represents a user following a publication."
}
```
