# social.colibri.beta.notification.markReadFromNotification

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.markReadFromNotification)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.markReadFromNotification/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.markReadFromNotification/examples)

## Definitions

### `social.colibri.beta.notification.markReadFromNotification`

**Type**: `procedure`

Marks a channel or thread read through the message a push notification announced, from the notification's Mark as read action. Takes no auth: the signed token from the push payload's readToken names the user, the channel and the message, and expires after seven days. Moves the user's read cursor forward, marks that channel's notifications through the message seen, and tells the user's sessions and push devices.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `token` | `string` | Yes | The readToken from the push payload. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **InvalidToken**: The token is malformed, its signature does not verify, or the channel it names no longer exists.
- **ExpiredToken**: The token is older than seven days.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Marks a channel or thread read through the message a push notification announced, from the notification's Mark as read action. Takes no auth: the signed token from the push payload's readToken names the user, the channel and the message, and expires after seven days. Moves the user's read cursor forward, marks that channel's notifications through the message seen, and tells the user's sessions and push devices.",
      "errors": [
        {
          "description": "The token is malformed, its signature does not verify, or the channel it names no longer exists.",
          "name": "InvalidToken"
        },
        {
          "description": "The token is older than seven days.",
          "name": "ExpiredToken"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "token": {
              "description": "The readToken from the push payload.",
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.notification.markReadFromNotification",
  "lexicon": 1
}
```
