Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
get
https://aiplatform.googleapis.com/v1beta1/{parent}/sessions
Path parameters
parentstring
Required. The resource name of the location to list sessions from. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}
Query parameters
pageSizeinteger
Optional. The maximum number of sessions to return. The service may return fewer than this value. If unspecified, at most 100 sessions will be returned.
Optional. The standard list filter. Supported fields: * displayName
Example: displayName=abc.
orderBystring
Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * createTime * updateTime
[[["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-06-27 UTC."],[],[],null,["# Method: sessions.list\n\n**Full name**: projects.locations.reasoningEngines.sessions.list\n\nLists [Sessions](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions#Session) in a given reasoning engine. \n\n### Endpoint\n\nget `https:``/``/aiplatform.googleapis.com``/v1beta1``/{parent}``/sessions` \n\n### Path parameters\n\n`parent` `string` \nRequired. The resource name of the location to list sessions from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}`\n\n### Query parameters\n\n`pageSize` `integer` \nOptional. The maximum number of sessions to return. The service may return fewer than this value. If unspecified, at most 100 sessions will be returned.\n`pageToken` `string` \nOptional. The [nextPageToken](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions/list#body.ListSessionsResponse.FIELDS.next_page_token) value returned from a previous list [SessionService.ListSessions](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions/list#google.cloud.aiplatform.v1beta1.SessionService.ListSessions) call.\n`filter` `string` \nOptional. The standard list filter. Supported fields: \\* `displayName`\n\nExample: `displayName=abc`.\n`orderBy` `string` \nOptional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: \\* `createTime` \\* `updateTime`\n\nExample: `createTime desc`.\n\n### Request body\n\nThe request body must be empty. \n\n### Response body\n\nResponse message for [SessionService.ListSessions](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions/list#google.cloud.aiplatform.v1beta1.SessionService.ListSessions).\n\nIf successful, the response body contains data with the following structure:\nFields `sessions[]` `object (`[Session](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions#Session)`)` \nA list of sessions matching the request.\n`nextPageToken` `string` \nA token, which can be sent as [ListSessionsRequest.page_token](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/projects.locations.reasoningEngines.sessions/list#body.QUERY_PARAMETERS.page_token) to retrieve the next page. Absence of this field indicates there are no subsequent pages."]]