openapi: 3.2.0 info: title: Dialogflow ES API (v2) Conversation Datasets API version: v2 description: Dialogflow ES (Essentials) builds conversational interfaces with intents, entity types, contexts, sessions, knowledge bases, conversation profiles and Agent Assist. This OpenAPI is a mechanical conversion of the first-party Google Discovery Document served by dialogflow.googleapis.com. contact: name: Google Cloud url: https://cloud.google.com/dialogflow/ termsOfService: https://cloud.google.com/terms license: name: Google APIs Terms of Service url: https://developers.google.com/terms x-discovery-source: https://dialogflow.googleapis.com/$discovery/rest?version=v2 x-discovery-revision: '20260825' x-discovery-id: dialogflow:v2 servers: - url: https://dialogflow.googleapis.com description: Dialogflow API security: - OAuth2: - https://www.googleapis.com/auth/dialogflow - https://www.googleapis.com/auth/cloud-platform - BearerAuth: [] tags: - name: conversationDatasets paths: /v2/projects/{projectsId}/locations/{locationsId}/conversationDatasets/{conversationDatasetsId}:importConversationData: post: operationId: dialogflow_projects_locations_conversationDatasets_importConversationData tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: locationsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: conversationDatasetsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{name}:importConversationData requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ImportConversationDataRequest' responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleLongrunningOperation' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects locations conversation datasets import conversation data x-summary-source: derived /v2/projects/{projectsId}/locations/{locationsId}/conversationDatasets: get: operationId: dialogflow_projects_locations_conversationDatasets_list tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.' required: true schema: type: string - name: locationsId in: path description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.' required: true schema: type: string - name: pageSize in: query schema: type: integer format: int32 - name: pageToken in: query schema: type: string x-discovery-path-template: v2/{parent}/conversationDatasets responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ListConversationDatasetsResponse' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects locations conversation datasets list x-summary-source: derived post: operationId: dialogflow_projects_locations_conversationDatasets_create tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.' required: true schema: type: string - name: locationsId in: path description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+/locations/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{parent}/conversationDatasets requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ConversationDataset' responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleLongrunningOperation' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects locations conversation datasets create x-summary-source: derived /v2/projects/{projectsId}/locations/{locationsId}/conversationDatasets/{conversationDatasetsId}: get: operationId: dialogflow_projects_locations_conversationDatasets_get tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: locationsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: conversationDatasetsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{name} responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ConversationDataset' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects locations conversation datasets get x-summary-source: derived delete: operationId: dialogflow_projects_locations_conversationDatasets_delete tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: locationsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: conversationDatasetsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/locations/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{name} responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleLongrunningOperation' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects locations conversation datasets delete x-summary-source: derived /v2/projects/{projectsId}/conversationDatasets/{conversationDatasetsId}: get: operationId: dialogflow_projects_conversationDatasets_get tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: conversationDatasetsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{name} responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ConversationDataset' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects conversation datasets get x-summary-source: derived /v2/projects/{projectsId}/conversationDatasets: get: operationId: dialogflow_projects_conversationDatasets_list tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `parent`. Resource name pattern: `^projects/[^/]+$`.' required: true schema: type: string - name: pageToken in: query schema: type: string - name: pageSize in: query schema: type: integer format: int32 x-discovery-path-template: v2/{parent}/conversationDatasets responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ListConversationDatasetsResponse' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects conversation datasets list x-summary-source: derived /v2/projects/{projectsId}/conversationDatasets/{conversationDatasetsId}:importConversationData: post: operationId: dialogflow_projects_conversationDatasets_importConversationData tags: - conversationDatasets parameters: - name: projectsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string - name: conversationDatasetsId in: path description: 'Part of `name`. Resource name pattern: `^projects/[^/]+/conversationDatasets/[^/]+$`.' required: true schema: type: string x-discovery-path-template: v2/{name}:importConversationData requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GoogleCloudDialogflowV2ImportConversationDataRequest' responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/GoogleLongrunningOperation' default: description: Error response (google.rpc.Status) content: application/json: schema: $ref: '#/components/schemas/GoogleRpcStatus' security: - OAuth2: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/dialogflow - BearerAuth: [] summary: Dialogflow projects conversation datasets import conversation data x-summary-source: derived components: schemas: GoogleCloudDialogflowV2ConversationInfo: type: object properties: languageCode: type: string GoogleRpcStatus: type: object properties: message: type: string code: type: integer format: int32 details: type: array items: type: object additionalProperties: description: Properties of the object. Contains field @type with type URL. GoogleCloudDialogflowV2InputConfig: type: object properties: gcsSource: $ref: '#/components/schemas/GoogleCloudDialogflowV2GcsSources' GoogleCloudDialogflowV2ListConversationDatasetsResponse: type: object properties: nextPageToken: type: string conversationDatasets: type: array items: $ref: '#/components/schemas/GoogleCloudDialogflowV2ConversationDataset' GoogleCloudDialogflowV2ConversationDataset: type: object properties: conversationCount: type: string format: int64 readOnly: true displayName: type: string name: type: string readOnly: true description: type: string createTime: type: string format: date-time readOnly: true satisfiesPzi: type: boolean readOnly: true satisfiesPzs: type: boolean readOnly: true conversationInfo: $ref: '#/components/schemas/GoogleCloudDialogflowV2ConversationInfo' inputConfig: $ref: '#/components/schemas/GoogleCloudDialogflowV2InputConfig' GoogleCloudDialogflowV2ImportConversationDataRequest: type: object properties: inputConfig: $ref: '#/components/schemas/GoogleCloudDialogflowV2InputConfig' GoogleCloudDialogflowV2GcsSources: type: object properties: uris: type: array items: type: string GoogleLongrunningOperation: type: object properties: name: type: string metadata: type: object additionalProperties: description: Properties of the object. Contains field @type with type URL. done: type: boolean response: type: object additionalProperties: description: Properties of the object. Contains field @type with type URL. error: $ref: '#/components/schemas/GoogleRpcStatus' securitySchemes: OAuth2: type: oauth2 description: Google OAuth 2.0. Scopes are declared per operation in the Discovery Document. flows: authorizationCode: authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth tokenUrl: https://oauth2.googleapis.com/token scopes: https://www.googleapis.com/auth/dialogflow: View, manage and query your Dialogflow agents https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. BearerAuth: type: http scheme: bearer description: 'Google OAuth 2.0 access token or service-account-minted bearer token, sent as Authorization: Bearer .' externalDocs: description: Dialogflow ES documentation url: https://cloud.google.com/dialogflow/es/docs