Required. The name of the context. Supported formats: - projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context
ID>, - projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session
ID>/contexts/<Context ID>, - projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>/contexts/<Context ID>, - projects/<Project ID>/locations/<Location
ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
ID>/contexts/<Context ID>,
If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.
Authorization requires the following IAM permission on the specified resource name:
dialogflow.contexts.get
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Context.
[[["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 page details how to retrieve a specific context using a \u003ccode\u003eGET\u003c/code\u003e HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGET\u003c/code\u003e request URL requires the specification of a \u003ccode\u003ename\u003c/code\u003e parameter, which represents the context's location within the project, session, and optionally, environment and user.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be left empty.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return an instance of \u003ccode\u003eContext\u003c/code\u003e in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scopes, along with the \u003ccode\u003edialogflow.contexts.get\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,[]]