# `KapsoEx.Platform.Messages`
[🔗](https://github.com/rocket4ce/kapso_ex/blob/v0.1.0/lib/kapso_ex/platform/messages.ex#L1)

Query WhatsApp messages across all conversations and numbers of the
project. To send messages use `KapsoEx.WhatsApp.Messages`.

# `result`

```elixir
@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}
```

# `get`

```elixir
@spec get(KapsoEx.Client.t(), String.t()) :: result()
```

Gets a message by its WhatsApp message ID (WAMID).

# `list`

```elixir
@spec list(KapsoEx.Client.t(), map() | keyword()) :: result()
```

Lists messages, newest first, with cursor pagination.

Params: `phone_number_id`, `conversation_id`, `phone_number`,
`business_scoped_user_id`, `direction`, `status`, `message_type`,
`has_media`, `limit`, `before`, `after`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
