# pub.oysters.post

> Published by [oysters.pub](https://lexicon.garden/identity/did:plc:gsvuczfwpmrqpap45iz23j43)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.post)
- [Documentation](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.post/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.post/examples)

## Definitions

### `pub.oysters.post`

**Type**: `record`

A submission to an Oysters board: a link, a text post, or both.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `url` | `string` (uri) | No | The link being submitted. A post carries a url, a text body, or both; the lexicon cannot express that either-or, so consumers must not assume url is present. |
| `tags` | `array` | No | Author-chosen topic tags, lowercased. Boards may recognise only a subset. |
| `text` | `string` | No | The body, in plain text. Present on text posts and on link posts that add context. |
| `langs` | `array` | No | BCP-47 language codes for title and text. |
| `title` | `string` | Yes | The headline shown in the feed. |
| `createdAt` | `string` (datetime) | Yes | When the author made the submission. Client-declared, so an appview ranks on its own receipt time. |

## Raw Schema

```json
{
  "id": "pub.oysters.post",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "createdAt"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The link being submitted. A post carries a url, a text body, or both; the lexicon cannot express that either-or, so consumers must not assume url is present."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128,
              "minLength": 1,
              "maxGraphemes": 32
            },
            "maxLength": 5,
            "description": "Author-chosen topic tags, lowercased. Boards may recognise only a subset."
          },
          "text": {
            "type": "string",
            "maxLength": 40000,
            "description": "The body, in plain text. Present on text posts and on link posts that add context.",
            "maxGraphemes": 10000
          },
          "langs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "language"
            },
            "maxLength": 3,
            "description": "BCP-47 language codes for title and text."
          },
          "title": {
            "type": "string",
            "maxLength": 480,
            "minLength": 1,
            "description": "The headline shown in the feed.",
            "maxGraphemes": 120
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the author made the submission. Client-declared, so an appview ranks on its own receipt time."
          }
        }
      },
      "description": "A submission to an Oysters board: a link, a text post, or both."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
