Method: projects.agent.export

Exports the specified agent to a ZIP file.

Operation <response: ExportAgentResponse, metadata: google.protobuf.Struct>

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



Required. The project that the agent to export is associated with. Format: projects/<Project ID>.

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

  • dialogflow.agents.export

Request body

The request body contains data with the following structure:

JSON representation
  "agentUri": string,


Warning: Exporting agents to a URI is not implemented yet. This feature is coming soon. Optional. The Google Cloud Storage URI to export the agent to. Note: The URI must start with "gs://". If left unspecified, the serialized agent is returned inline.

Response body

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

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Auth Guide.