Skip to main content
GET
/
conversations
/
{conversationId}
/
messages
List latest (ordered desc) messages of conversation.
curl --request GET \
  --url https://1-some-client.some-server.healvi-chat/third-party/v1/conversations/{conversationId}/messages \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 123,
      "conversation_id": 123,
      "from": "system",
      "source": "user",
      "user_id": 123,
      "contents": [
        {
          "type": "text",
          "content": "<string>"
        }
      ],
      "status": "created",
      "agent_reaction": "<string>",
      "customer_reaction": "<string>",
      "sent_at": "2023-01-01T12:00:00Z",
      "reference": {},
      "latest_error": {
        "id": 123,
        "message_id": 123,
        "type": "status-update",
        "original_message": "<string>",
        "created_at": "2023-01-01T12:00:00Z"
      },
      "whatsapp_campaign": {
        "id": 123,
        "name": "<string>"
      }
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 123,
    "from": 123,
    "to": 123,
    "last_page": 123,
    "per_page": 123,
    "total": 123,
    "path": "<string>",
    "links": [
      "<any>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversationId
integer
required

Query Parameters

per_page
integer

Optional number of messages per page.

Response

200 - application/json

Success

data
object[]

Default count: 100

meta
object