fetch messages from a chat

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

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
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

integer
Defaults to 0

Offset to start fetching messages from

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

Responses

401

Unauthorized β€” invalid or missing bearer token

403

Forbidden β€” insufficient permissions or account blocked

404

Not found β€” instance does not exist or does not belong to you

409

Conflict β€” instance is not ready

429

Too many requests β€” rate limit exceeded

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json