Skip to main content

Search for messages based on specific criteria.

POST 

/chat/findMessages/:instanceName

This endpoint retrieves messages that match the provided criteria for the specified instance.

Request

Path Parameters

    instanceName stringrequired

    The name of the instance to which the reaction should be sent.

    Example: codechat

Body

    where object
    key objectrequired
    remoteJid stringrequired

    ID of the recipient of the message.

    fromMe booleanrequired

    Indicates if the message was sent from the user.

    id stringrequired

    Unique ID of the message.

    message object
    limit integer

    Maximum number of messages to retrieve.

Responses

Successful response

Schema
    any
Loading...