API Reference

Fetch messages from a chat

Retrieve messages from a specific chat with optional filtering and media inclusion

Log in to see full request history
Path Params
int64
required

Instance ID

Body Params
string
required

Chat ID <countrycode_short>@c.us or @g.us for groups

integer
Defaults to 100

Maximum number of messages to return

boolean
Defaults to null

Filter messages by sender (true = sent by me, false = received, null = both)

boolean
Defaults to false

Include media content as base64 encoded strings. Warning: Can significantly increase response size

Response

Response body
object
string of strings

success error

string
data
array of objects
data
object
message
object
string | null

Base64 encoded media content if includeMedia=true

Language
Credentials