Method: projects.agent.intents.get

Retrieves the specified intent.

HTTP request

GET https://dialogflow.googleapis.com/v2beta1/{name=projects/*/agent/intents/*}

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

Required. The name of the intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

Authorization requires the following Google IAM permission on the specified resource name:

  • dialogflow.intents.get

Query parameters

Parameters
languageCode

string

Optional. The language to retrieve training phrases, parameters and rich messages for. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used.

intentView

enum(IntentView)

Optional. The resource view to apply to the returned intent.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Intent.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the OAuth 2.0 Overview.