Method: projects.agent.sessions.contexts.get

Retrieves the specified context.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



Required. The name of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>.

Authorization requires the following Google 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.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Auth Guide.