Qwetty API
string · requiredinteger · min: 1integer · min: 1 · max: 100
string · requiredstring · requiredstring · enumstringstringstring
Send and retrieve messages within chats
List messages
GET
https://api.qwetty.com/api/v1
/chats/{id}/messages
Retrieve a paginated list of messages for a specific chat, ordered by most recent first.
path Parameters
idChat ID
query Parameters
pagePage number for pagination
Default: 1
limitNumber of items per page
Default: 20
List messages › Responses
Paginated list of messages
object[]
object
Send a message
POST
https://api.qwetty.com/api/v1
/chats/{id}/messages
Send a message in an existing chat. The message will be delivered through the chat's associated channel (WhatsApp, Instagram, or Web).
If no senderId is provided, the first member of the organization will be used as the sender.
path Parameters
idChat ID
Send a message › Request Body
contentMessage text content
typeMessage type. Defaults to TEXT unless templateId is provided.
Enum values:
TEXT
IMAGE
DOCUMENT
AUDIO
VIDEO
TEMPLATE
Default: TEXT
senderIdUser ID of the sender. If not provided, the first organization member will be used.
templateIdTemplate ID to send. When provided, the type is automatically set to TEMPLATE.
object
Variables to fill into the template
Send a message › Responses
Message sent successfully
object
message