# chat.yakka.getTimeline

> 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.getTimeline)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.getTimeline/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.getTimeline/examples)

## Definitions

### `chat.yakka.getTimeline`

**Type**: `query`

A page of a channel's timeline, newest first, ordered by view sequence (ADR 0012). Paging is by sequence and never by timestamp or record key: TIDs order a repo, never a channel, and two authors' clocks are not comparable.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `before` | `integer` | No | Page backwards from this sequence, exclusive. Omit for the newest page. |
| `channel` | `string` | Yes | The channel's id. |

#### Output

**Encoding**: `application/json`

#### Errors

- **ChannelNotFound**
- **ChannelForbidden**: The credential mint declined (ADR 0007). The channel exists and this viewer may not read it — a different fact from it not existing, and reported as one.

## Raw Schema

```json
{
  "id": "chat.yakka.getTimeline",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "ChannelNotFound"
        },
        {
          "name": "ChannelForbidden",
          "description": "The credential mint declined (ADR 0007). The channel exists and this viewer may not read it — a different fact from it not existing, and reported as one."
        }
      ],
      "output": {
        "schema": {
          "ref": "chat.yakka.defs#timelinePage",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "channel"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "before": {
            "type": "integer",
            "minimum": 1,
            "description": "Page backwards from this sequence, exclusive. Omit for the newest page."
          },
          "channel": {
            "type": "string",
            "description": "The channel's id."
          }
        }
      },
      "description": "A page of a channel's timeline, newest first, ordered by view sequence (ADR 0012). Paging is by sequence and never by timestamp or record key: TIDs order a repo, never a channel, and two authors' clocks are not comparable."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
