GET
/
whatsapp_conversations
/
{conversation_id}
/
whatsapp_messages
curl --request GET \
  --url https://app.kapso.ai/api/v1/whatsapp_conversations/{conversation_id}/whatsapp_messages \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "phone_number": "<string>",
      "message_type": "text",
      "content": "<string>",
      "direction": "inbound",
      "status": "<string>",
      "processing_status": "pending",
      "whatsapp_message_id": "<string>",
      "metadata": {},
      "media_url": "<string>",
      "message_type_data": {
        "text": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "page": 123,
    "per_page": 123,
    "total_pages": 123,
    "total_count": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

conversation_id
string
required

Query Parameters

page
integer
default:1
Required range: x >= 1
per_page
integer
default:20
Required range: 1 <= x <= 100

Response

200
application/json

A list of WhatsApp messages

The response is of type object.