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 endpoint retrieves a specific context using a GET HTTP request to a predefined URL structure.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the URL is required and defines the context's location using a specific format, including Project ID, Session ID, and Context ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty when using this endpoint, and a successful response will contain an instance of \u003ccode\u003eContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003edialogflow.contexts.get\u003c/code\u003e IAM permission on the specified resource name and one of the specified OAuth scopes.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint follows the gRPC Transcoding syntax for its URLs.\u003c/p\u003e\n"]]],[],null,["# Method: projects.agent.sessions.contexts.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves the specified context.\n\n### HTTP request\n\n`GET https://{endpoint}/v2beta1/{name=projects/*/agent/sessions/*/contexts/*}`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/es/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Context](/dialogflow/es/docs/reference/rest/v2beta1/projects.agent.environments.users.sessions.contexts#Context).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]