> ## Documentation Index
> Fetch the complete documentation index at: https://camelai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add BigQuery connection

> Create a new Google BigQuery data warehouse connection.



## OpenAPI

````yaml https://api.camelai.com/api/schema/ post /api/v1/sources/add/bigquery/
openapi: 3.0.3
info:
  title: camelAI API
  version: 1.0.0 (v1)
  description: API for camelAI - AI-powered data analytics platform
servers:
  - url: https://api.camelai.com
    description: camelAI API server
security: []
paths:
  /api/v1/sources/add/bigquery/:
    post:
      tags:
        - sources
      summary: Add BigQuery connection
      description: Create a new Google BigQuery data warehouse connection.
      operationId: sources_add_bigquery_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BigQueryConnectionRequest'
            examples:
              BigQuery:
                value:
                  type: bigquery
                  service_account_key:
                    type: service_account
                    project_id: my-project
                    private_key: |
                      -----BEGIN PRIVATE KEY-----
                      ...
                      -----END PRIVATE KEY-----
                    client_email: service@my-project.iam.gserviceaccount.com
                summary: Google BigQuery connection with service account
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: The ID of the created connection
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  errors:
                    type: object
                    description: Field-specific validation errors
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BigQueryConnectionRequest:
      type: object
      description: Serializer for Google BigQuery connection configuration.
      properties:
        type:
          type: string
          minLength: 1
          description: Connection type identifier. Must be `BIGQUERY`
        account_name:
          type: string
          minLength: 1
          default: BigQuery
          description: Display name for the connection
        selected_datasets:
          type: array
          items:
            type: string
            maxLength: 255
          description: >-
            List of dataset IDs to include. If omitted, all datasets in the
            project are used.
        service_account_key:
          description: Google Cloud service account key JSON
      required:
        - service_account_key
        - type
      title: BigQuery
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key authentication using Bearer scheme

````