# chat.yakka.getTimelineAround

> Published by [yakka.chat](https://lexicon.garden/identity/did:plc:wpjoy2orkqq5m65vq7gg7liz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.getTimelineAround)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.getTimelineAround/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.getTimelineAround/examples)

## Definitions

### `chat.yakka.getTimelineAround`

**Type**: `query`

A window centred on a sequence, for opening a permalink to an old message. Paging backwards from the tail to reach something linked from months ago would be many round trips, which is the entire reason this is a separate method rather than a parameter.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `seq` | `integer` | Yes | The sequence to centre on. It need not still exist — a deleted message keeps its sequence (ADR 0010), so a permalink to one still lands in the right place. |
| `limit` | `integer` | No |  |
| `channel` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **ChannelNotFound**
- **ChannelForbidden**

## Raw Schema

```json
{
  "id": "chat.yakka.getTimelineAround",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "ChannelNotFound"
        },
        {
          "name": "ChannelForbidden"
        }
      ],
      "output": {
        "schema": {
          "ref": "chat.yakka.defs#timelinePage",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "channel",
          "seq"
        ],
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": 1,
            "description": "The sequence to centre on. It need not still exist — a deleted message keeps its sequence (ADR 0010), so a permalink to one still lands in the right place."
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "channel": {
            "type": "string"
          }
        }
      },
      "description": "A window centred on a sequence, for opening a permalink to an old message. Paging backwards from the tail to reach something linked from months ago would be many round trips, which is the entire reason this is a separate method rather than a parameter."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
