---
title: "GET /JSON/websocket/view/messages/"
method: GET
path: "/JSON/websocket/view/messages/"
tags: ["websocket"]
---

# GET /JSON/websocket/view/messages/

`GET /JSON/websocket/view/messages/`

Returns a list of all of the messages that meet the given criteria (all optional), where channelId is a channel identifier, start is the offset to start returning messages from (starting from 0), count is the number of messages to return (default no limit) and payloadPreviewLength is the maximum number bytes to return for the payload contents

## Response `default`

Error of JSON endpoints.

- ErrorJson
  - `code` string, required
  - `message` string, required
  - `detail` string

## Changes

- **2023-09-29** `3a1d8df7169d` — 1 info
  - endpoint added
- **2019-10-10** `c7cc14d831c3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/zaproxy/apis/zap-api/changes/JSON/websocket/view/messages/get.md)

---

[API](https://skmtc.dev/zaproxy/apis/zap-api.md) · [All operations](https://skmtc.dev/zaproxy/apis/zap-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zaproxy/zap-api/revisions/bbb71f68ed4c/schema)
