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

# HistorySyncRequest a chat

`POST /chat/history-sync-request`

HistorySyncRequest a chat

## Request body

- GithubComEvolutionAPIEvolutionGoPkgChatServiceHistorySyncRequestStruct
  - `count` integer
  - `messageInfo` GoMauFiWhatsmeowTypesMessageInfo
    - `addressingMode` 'pn' | 'lid'
    - `broadcastListOwner` GoMauFiWhatsmeowTypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `broadcastRecipients` GoMauFiWhatsmeowTypesBroadcastRecipient[]
      - `lid` GoMauFiWhatsmeowTypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `pn` GoMauFiWhatsmeowTypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
    - `category` string
    - `chat` GoMauFiWhatsmeowTypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `deviceSentMeta` GoMauFiWhatsmeowTypesDeviceSentMeta
      - `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` GoMauFiWhatsmeowTypesMsgBotInfo
      - `editSenderTimestampMS` string
      - `editTargetID` string
      - `editType` 'first' | 'inner' | 'last'
    - `msgMetaInfo` GoMauFiWhatsmeowTypesMsgMetaInfo
      - `deprecatedLIDSession` boolean
      - `targetChat` GoMauFiWhatsmeowTypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `targetID` string — Bot things
      - `targetSender` GoMauFiWhatsmeowTypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
      - `threadMessageID` string
      - `threadMessageSenderJID` GoMauFiWhatsmeowTypesJID
        - `device` integer
        - `integrator` integer
        - `rawAgent` integer
        - `server` string
        - `user` string
    - `multicast` boolean
    - `pushName` string
    - `recipientAlt` GoMauFiWhatsmeowTypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `sender` GoMauFiWhatsmeowTypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `senderAlt` GoMauFiWhatsmeowTypesJID
      - `device` integer
      - `integrator` integer
      - `rawAgent` integer
      - `server` string
      - `user` string
    - `serverID` integer
    - `timestamp` string
    - `type` string
    - `verifiedName` GoMauFiWhatsmeowTypesVerifiedName
      - `certificate` GoMauFiWhatsmeowProtoWaVnameCertVerifiedNameCertificate
        - `details` integer[]
        - `serverSignature` integer[]
        - `signature` integer[]
      - `details` GoMauFiWhatsmeowProtoWaVnameCertVerifiedNameCertificateDetails
        - `issueTime` integer
        - `issuer` string
        - `localizedNames` GoMauFiWhatsmeowProtoWaVnameCertLocalizedName[]
          - `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-04-24** `39879b4b0178` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/evolution-foundation/apis/evolution-go/changes/chat/history-sync-request/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/39879b4b0178/schema)
