# conversations.history

> Messages of a conversation, newest page first (thread replies excluded unless also sent to the channel).

Source: https://slaiky.xyz/docs/reference/methods/conversations.history

`POST https://app.slaiky.xyz/api/methods/conversations.history` · needs the conversation's `:history`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel id, or "#name" for channels. 1–81 characters. |
| `limit` | integer | no | 1–200, default `50`. |
| `before` | id | no | Page before this message id. |

## Answer

`{ "ok": true, … }` with: messages: Message[]. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

Recorded on a real server (ids replaced).

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/conversations.history \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"channel":"7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08","limit":1}'

```

*Slaiky → your app · `answer`*

```json

{
  "ok": true,
  "messages": [
    {
      "id": "7f3c0022-5a1e-4c2b-9d6f-1a2b3c4d5e15",
      "channelId": "7f3c0009-5a1e-4c2b-9d6f-1a2b3c4d5e08",
      "parentId": null,
      "author": {
        "id": "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07",
        "handle": "alex",
        "name": "Alex Martins",
        "title": "Founder · Product",
        "avatarUrl": null,
        "timezone": "America/Sao_Paulo",
        "role": "owner",
        "status": null,
        "isBot": false,
        "appId": null,
        "agentId": null,
        "look": null,
        "deactivated": false
      },
      "body": "Shipping the export today.",
      "blocks": null,
      "files": [],
      "createdAt": "2026-11-10T12:00:07.000Z",
      "editedAt": null,
      "replyCount": 0,
      "lastReplyAt": null,
      "replyUsers": [],
      "reactions": [],
      "pinned": false,
      "alsoInChannel": false,
      "subtype": null,
      "meta": null
    }
  ]
}

```
