---
title: "HistorySyncRequest a chat"
method: POST
path: "/chat/history-sync"
tags: ["Chat"]
---

# HistorySyncRequest a chat

`POST /chat/history-sync`

HistorySyncRequest a chat

## Request body

- GithubComEvolutionAPIEvolutionGoPkgChatServiceHistorySyncRequestStruct
  - `count` integer
  - `messageInfo` TypesMessageInfo
    - `addressingMode` 'pn' | 'lid'
    - `broadcastListOwner` TypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `broadcastRecipients` TypesBroadcastRecipient[]
      - `lid` TypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `pn` TypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
    - `category` string
    - `chat` TypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `deviceSentMeta` TypesDeviceSentMeta
      - `destinationJID` string — The destination user. This should match the MessageInfo.Recipient field.
      - `phash` string
    - `edit` '' | '1' | '2' | '3' | '7' | '8'
    - `id` string
    - `isFromMe` boolean — Whether the message was sent by the current user instead of someone else.
    - `isGroup` boolean — Whether the chat is a group chat or broadcast list.
    - `mediaType` string
    - `msgBotInfo` TypesMsgBotInfo
      - `editSenderTimestampMS` string
      - `editTargetID` string
      - `editType` 'first' | 'inner' | 'last'
    - `msgMetaInfo` TypesMsgMetaInfo
      - `deprecatedLIDSession` boolean
      - `targetChat` TypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `targetID` string — Bot things
      - `targetSender` TypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `threadMessageID` string
      - `threadMessageSenderJID` TypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
    - `multicast` boolean
    - `pushName` string
    - `recipientAlt` TypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `sender` TypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `senderAlt` TypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `serverID` integer
    - `timestamp` string
    - `type` string
    - `verifiedName` TypesVerifiedName
      - `certificate` WaVnameCertVerifiedNameCertificate
        - `details` integer[]
        - `serverSignature` integer[]
        - `signature` integer[]
      - `details` WaVnameCertVerifiedNameCertificateDetails
        - `issueTime` integer
        - `issuer` string
        - `localizedNames` WaVnameCertLocalizedName[]
          - `lc` string
          - `lg` string
          - `verifiedName` string
        - `serial` integer
        - `verifiedName` string

## Response `200`

success

- GinH

## Other responses

- `400` — Error on validation
- `500` — Internal server error

## Changes

- **2026-07-17** `8e9c4d7d1dab` — 1 info
  - endpoint added
- **2026-03-25** `9a999e5656cb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/evolution-foundation/apis/evolution-go/changes/chat/history-sync/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-go.md) · [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-go/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evolution-foundation/evolution-go/revisions/8e9c4d7d1dab/schema)
