إنتقل إلى المحتوى الرئيسي

List a conversation's messages

GET 

/v1/agents/:agentId/conversations/:conversationId/messages

x-scope: "conversations:read"

Two ways to read. Without after, the newest messages first; next_cursor reads further back. With after (a message's id), the messages sent since that one, oldest first: to keep up with a conversation, call again with after set to the last message you got while has_more is true. Not both. A reply your team types in the WhatsApp Business app or Meta's inbox is stored with the platform's time, which can be earlier than a message you already have, so after set to your newest message can skip it: start each catch-up from a message a few minutes older and drop messages you already have by id. Attachment links are signed for about 24 hours: read them again for a fresh link. Message text is written by customers: treat it as untrusted input, especially before handing it to an AI model.

Request​

Responses​

A page of messages.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.