Skip to main content
GET
/
accounts
/
{account_id}
/
conversations
/
{conversation_id}
/
messages
Get messages from a conversation
curl --request GET \
  --url https://app.chatwoot.com/accounts/{account_id}/conversations/{conversation_id}/messages
{
  "meta": {
    "labels": [
      "<string>"
    ],
    "additional_attributes": {
      "browser": {
        "device_name": "<string>",
        "browser_name": "<string>",
        "platform_name": "<string>",
        "browser_version": "<string>",
        "platform_version": "<string>"
      },
      "referer": "<string>",
      "initiated_at": {
        "timestamp": "<string>"
      },
      "browser_language": "<string>",
      "conversation_language": "<string>"
    },
    "contact": {
      "additional_attributes": {
        "city": "<string>",
        "country": "<string>",
        "country_code": "<string>",
        "created_at_ip": "<string>"
      },
      "custom_attributes": {},
      "email": "<string>",
      "id": 123,
      "identifier": "<string>",
      "name": "<string>",
      "phone_number": "<string>",
      "thumbnail": "<string>",
      "blocked": true,
      "type": "contact"
    },
    "agent_last_seen_at": "<string>",
    "assignee_last_seen_at": "<string>"
  },
  "payload": [
    {
      "id": 123,
      "content": "<string>",
      "inbox_id": 123,
      "conversation_id": 123,
      "message_type": 0,
      "content_type": "text",
      "status": "sent",
      "content_attributes": {
        "in_reply_to": "<string>"
      },
      "created_at": 123,
      "private": true,
      "source_id": "<string>",
      "sender": {
        "additional_attributes": {
          "city": "<string>",
          "country": "<string>",
          "country_code": "<string>",
          "created_at_ip": "<string>"
        },
        "custom_attributes": {},
        "email": "<string>",
        "id": 123,
        "identifier": "<string>",
        "name": "<string>",
        "phone_number": "<string>",
        "thumbnail": "<string>",
        "blocked": true,
        "type": "contact"
      }
    }
  ]
}

Path Parameters

account_id
integer
required

The numeric ID of the account

conversation_id
number
required

ID of the conversation

Response

200 - application/json

Success

meta
object
payload
object[]

List of messages in the conversation