---
title: "Loads earlier messages from a chat"
method: POST
path: "/api/messages/loadEarlier"
tags: ["messages"]
---

# Loads earlier messages from a chat

`POST /api/messages/loadEarlier`

Loads earlier messages from a chat

## Request body

- object
  - `chatId` string, required — Chat ID (phone number or formatted ID)
  - `count` number — Number of messages to load (default: 20)
  - `includeMe` boolean — Whether to include messages from the host account (default: false)

## Response `200`

Successful response

- unknown[]
  - unknown

## Other responses

- `400` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/open-wa/apis/open-wa-api.md) · [All operations](https://skmtc.net/open-wa/apis/open-wa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open-wa/open-wa-api/versions/2f344d03d2a9/schema)
