Full name: projects.locations.instances.users.conversations.messages.list
messages.list is used to retrieve existing messages for a conversation.
HTTP request
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 messages.list call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to messages.list must match the call that provided the page token.
Request body
The request body must be empty.
Response body
Response message for messages.list 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-08-25 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,["# Method: messages.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListMessagesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\n**Full name**: projects.locations.instances.users.conversations.messages.list\n\nmessages.list is used to retrieve existing messages for a conversation.\n\n### HTTP request\n\nChoose a location: \nafrica-south1 asia-northeast1 asia-south1 asia-southeast1 asia-southeast2 australia-southeast1 europe-west12 europe-west2 europe-west3 europe-west6 europe-west9 me-central1 me-central2 me-west1 northamerica-northeast2 southamerica-east1 us eu \n\n\u003cbr /\u003e\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for messages.list method.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `chronicle.messages.list`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]