- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
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 |
Required. The parent, which owns this collection of messages. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation} |
Query parameters
Parameters | |
---|---|
pageSize |
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 |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
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:
JSON representation |
---|
{
"messages": [
{
object ( |
Fields | |
---|---|
messages[] |
The messages from the specified conversation. |
next_page_token |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
chronicle.messages.list
For more information, see the IAM documentation.