Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}/sessions/{sessionId}
Query parameters
Parameters
includeAnswerDetails
boolean
Optional. If set to true, the full session including all answer details will be returned.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Session.
[[["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."],[[["\u003cp\u003eThis endpoint retrieves a specific Session resource using a \u003ccode\u003eGET\u003c/code\u003e request at the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter, which is required, specifies the resource name of the Session to retrieve, following the format \u003ccode\u003eprojects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}/sessions/{sessionId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eincludeAnswerDetails\u003c/code\u003e query parameter can be set to \u003ccode\u003etrue\u003c/code\u003e to retrieve the full session including answer details.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the response body, if successful, will contain an instance of the Session resource.\u003c/p\u003e\n"],["\u003cp\u003eTo use this endpoint, you need the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003ediscoveryengine.sessions.get\u003c/code\u003e IAM permission on the specified \u003ccode\u003ename\u003c/code\u003e resource.\u003c/p\u003e\n"]]],[],null,[]]