Full name: projects.locations.instances.users.conversations.messages.list
ListMessages is used to retrieve existing messages for a conversation.
HTTP request
GET https://chronicle.googleapis.com/v1alpha/{parent}/messages
Path parameters
Parameters
parent
string
Required. The parent, which owns this collection of messages. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}
Query parameters
Parameters
pageSize
integer
Optional. The maximum number of messages to return. The service may return fewer than this value. If unspecified, at most 100 messages will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
pageToken
string
Optional. A page token, received from a previous ListMessages call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListMessages must match the call that provided the page token.
Request body
The request body must be empty.
Response body
Response message for ListMessages method.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListMessages\u003c/code\u003e method retrieves existing messages within a specified conversation using a \u003ccode\u003eGET\u003c/code\u003e request to the endpoint \u003ccode\u003ehttps://chronicle.googleapis.com/v1alpha/{parent}/messages\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou must define the \u003ccode\u003eparent\u003c/code\u003e path parameter, which follows the format \u003ccode\u003eprojects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}\u003c/code\u003e to identify the messages to retrieve.\u003c/p\u003e\n"],["\u003cp\u003eThe number of messages returned can be managed using the \u003ccode\u003epageSize\u003c/code\u003e query parameter, with a maximum of 1000, and pagination can be achieved using the \u003ccode\u003epageToken\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body is empty, and a successful response will contain an array of message objects, and if applicable, a \u003ccode\u003enext_page_token\u003c/code\u003e to fetch the subsequent page of results.\u003c/p\u003e\n"],["\u003cp\u003eTo use \u003ccode\u003eListMessages\u003c/code\u003e, you need the \u003ccode\u003echronicle.messages.list\u003c/code\u003e IAM permission on the \u003ccode\u003eparent\u003c/code\u003e resource and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]