Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

List messages in a conversation

GET/v1/conversations/{convID}/messages
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Path parameters
convIDstringrequired
Conversation ID
Query parameters
limitinteger<int32>
Results per page
min 1 · max 100 · default: 50
cursorstring
Cursor for pagination
directionstring
Pagination direction
default: "before"
Allowed:afterbefore
Responses
200OK
itemsMessageItem[] | nullrequired
Show properties
Array of MessageItem
channel_idstringrequired
contentanyrequired
conversation_idstring | nullrequired
created_atstringrequired
delivered_atstring | nullrequired
directionstringrequired
errorstring | nullrequired
error_codestring | nullrequired
external_message_idstring | nullrequired
failed_atstring | nullrequired
idstringrequired
max_retriesinteger<int32>required
metadataanyrequired
organization_idstringrequired
provider_message_idstring | nullrequired
queued_atstring | nullrequired
read_atstring | nullrequired
reply_previewReplyPreviewItem
Show properties
has_resolved_contentbooleanrequired
message_idstring
provider_message_idstring
sender_labelstring
textstringrequired
retry_countinteger<int32>required
sender_phonestring | nullrequired
sending_atstring | nullrequired
sent_atstring | nullrequired
sent_bystring | nullrequired
sent_viastring | nullrequired
statusstringrequired
to_phonestringrequired
typestringrequired
updated_atstringrequired
metaPaginationMetarequired
Show properties
cursorstring
has_morebooleanrequired
limitinteger<int64>required
next_cursorstring
offsetinteger<int64>
totalinteger<int64>
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
404Not Found
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X GET "/v1/conversations/string/messages"
Response
{
  "items": [
    {
      "channel_id": "string",
      "content": "string",
      "conversation_id": "string",
      "created_at": "string",
      "delivered_at": "string",
      "direction": "string",
      "error": "string",
      "error_code": "string",
      "external_message_id": "string",
      "failed_at": "string",
      "id": "string",
      "max_retries": 0,
      "metadata": "string",
      "organization_id": "string",
      "provider_message_id": "string",
      "queued_at": "string",
      "read_at": "string",
      "reply_preview": {
        "has_resolved_content": true,
        "message_id": "string",
        "provider_message_id": "string",
        "sender_label": "string",
        "text": "string"
      },
      "retry_count": 0,
      "sender_phone": "string",
      "sending_at": "string",
      "sent_at": "string",
      "sent_by": "string",
      "sent_via": "string",
      "status": "string",
      "to_phone": "string",
      "type": "string",
      "updated_at": "string"
    }
  ],
  "meta": {
    "cursor": "string",
    "has_more": true,
    "limit": 0,
    "next_cursor": "string",
    "offset": 0,
    "total": 0
  }
}