WaveHouse Cloud Imports API

Bulk imports into a project: plan, start, follow, cancel.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /v1/projects/{project_id}/imports List the project's import jobs, newest first (any member) #
POST /v1/projects/{project_id}/imports Start a planned import — seals the uploaded objects and queues the load… #
POST /v1/projects/{project_id}/imports/plan Plan a data import — report what will be created, rewritten and refused, and… #
GET /v1/projects/{project_id}/imports/{job_id} Get one import job's status and per-table progress (any member) #
POST /v1/projects/{project_id}/imports/{job_id}/cancel Stop a queued or running import (owner/admin) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wavehouse-cloud:wavehouse-cloud-imports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wavehouse-cloud-imports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wavehouse Cloud Imports API
  version: 0.65.0
  contact:
    name: WaveHouse Cloud
    url: https://wavehouse.cloud
  license:
    name: Proprietary — © Wave RF. All rights reserved.
  description: 'Operations tagged imports across 2 of this provider''s published API definitions: openapi.json, wavehouse-cloud-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: WaveHouse Cloud production API
  url: https://api.wavehouse.cloud
tags:
- description: 'Bulk imports into a project: plan, start, follow, cancel.'
  name: Imports
paths:
  /v1/projects/{project_id}/imports:
    get:
      operationId: list-project-imports
      parameters:
      - in: path
        name: project_id
        required: true
        schema:
          type: string
      - description: page size; 0 or absent means 50
        explode: false
        in: query
        name: limit
        schema:
          description: page size; 0 or absent means 50
          format: int64
          maximum: 200
          minimum: 0
          type: integer
      - description: next_cursor from the previous page; absent for the first page
        explode: false
        in: query
        name: cursor
        schema:
          description: next_cursor from the previous page; absent for the first page
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportJobPage'
          description: OK
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
      - session: []
      - workos_bearer: []
      - api_key: []
      summary: List the project's import jobs, newest first (any member)
      tags:
      - Imports
      x-whc-access: customer
      x-whc-effects:
      - read
    post:
      description: 'Owner/admin. SEALS the upload: every object you pushed is recorded by version, and each is then server-side COPIED into a location your upload credential cannot write, from which — and only from which — the load reads. Overwriting your staged files after this point therefore cannot change what is imported. A table with nothing uploaded is a 422. This CREATES TABLES and WRITES DATA and is NOT a transaction: a failed or cancelled import leaves what it already wrote. One import runs per project at a time.'
      operationId: start-project-import
      parameters:
      - description: 'A unique value you choose per logical request (a random UUID). A retry with the same key and the same request within 24 hours returns the first response, marked Idempotency-Replayed: true, instead of acting twice. The same key with a different request is refused with 422; one sent while the first is still running gets 409.'
        in: header
        name: Idempotency-Key
        schema:
          description: 'A unique value you choose per logical request (a random UUID). A retry with the same key and the same request within 24 hours returns the first response, marked Idempotency-Replayed: true, instead of acting twice. The same key with a different request is refused with 422; one sent while the first is still running gets 409.'
          maxLength: 255
          type: string
      - in: path
        name: project_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartProjectImportInput'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportJobView'
          description: Accepted
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
      - session: []
      - workos_bearer: []
      - api_key: []
      summary: Start a planned import — seals the uploaded objects and queues the load…
      tags:
      - Imports
      x-whc-access: customer
      x-whc-effects:
      - write
    servers:
    - description: WaveHouse Cloud production API
      url: https://api.wavehouse.cloud
  /v1/projects/{project_id}/imports/plan:
    post:
      description: 'Owner/admin. Pure except for minting the upload credential: nothing is created and no job row is written, so an abandoned plan leaves nothing behind. On the default `staging_push` path the response carries a write-only credential valid for 12 hours (re-plan to mint another) and one `INSERT INTO FUNCTION s3(…)` per table for you to run on YOUR ClickHouse — no data passes through this API. Anything you push is transfer scratch: the staging bucket deletes it after 2 days, so start the import before then. See transfer/limits for this deployment''s exact values.'
      operationId: plan-project-import
      parameters:
      - in: path
        name: project_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlanProjectImportInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportPlanOutput'
          description: OK
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
      - session: []
      - workos_bearer: []
      - api_key: []
      summary: Plan a data import — report what will be created, rewritten and refused, and…
      tags:
      - Imports
      x-whc-access: customer
      x-whc-effects:
      - write
    servers:
    - description: WaveHouse Cloud production API
      url: https://api.wavehouse.cloud
  /v1/projects/{project_id}/imports/{job_id}:
    get:
      operationId: get-project-import
      parameters:
      - in: path
        name: project_id
        required: true
        schema:
          type: string
      - in: path
        name: job_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportJobView'
          description: OK
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
      - session: []
      - workos_bearer: []
      - api_key: []
      summary: Get one import job's status and per-table progress (any member)
      tags:
      - Imports
      x-whc-access: customer
      x-whc-effects:
      - read
    servers:
    - description: WaveHouse Cloud production API
      url: https://api.wavehouse.cloud
  /v1/projects/{project_id}/imports/{job_id}/cancel:
    post:
      description: 'Stops the transfer for real: the worker running it KILLs the in-flight `INSERT … SELECT FROM s3(…)` within seconds rather than merely marking it cancelled; `killed_statements` is 0 because that worker, not this call, stops the statement. IDEMPOTENT: cancelling an already-finished import returns 200 with `cancelled: false`. NOTHING IS ROLLED BACK — an import is not a transaction, so tables it already created still exist and rows it already loaded are still there. The job''s final `cancelled` step names exactly what was created and loaded; TRUNCATE or DROP what you do not want. We deliberately do NOT drop those tables for you: one of them may be a table you already had.'
      operationId: cancel-project-import
      parameters:
      - in: path
        name: project_id
        required: true
        schema:
          type: string
      - in: path
        name: job_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelProjectImportOutput'
          description: OK
        '429':
          $ref: '#/components/responses/TooManyRequests'
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
      - session: []
      - workos_bearer: []
      - api_key: []
      summary: Stop a queued or running import (owner/admin)
      tags:
      - Imports
      x-whc-access: customer
      x-whc-effects:
      - write
    servers:
    - description: WaveHouse Cloud production API
      url: https://api.wavehouse.cloud
components:
  schemas:
    ImportCommandView:
      additionalProperties: false
      properties:
        sql:
          type: string
        table:
          type: string
      required:
      - table
      - sql
      type: object
    ImportJobView:
      additionalProperties: false
      properties:
        attempt:
          format: int64
          type: integer
        bytes_done:
          format: int64
          type: integer
        cancel_requested:
          type: boolean
        created_at:
          format: date-time
          type: string
        finished_at:
          format: date-time
          type: string
        job_id:
          pattern: ^[6789bcdfghjkmnpqrtwz]{20}$
          type: string
        last_error:
          type: string
        max_attempts:
          format: int64
          type: integer
        path:
          type: string
        query_id:
          description: the engine query_id of the statement most recently issued for this job
          type: string
        rows_done:
          format: int64
          type: integer
        started_at:
          format: date-time
          type: string
        status:
          description: queued | running | succeeded | failed | dead | cancelled
          type: string
        steps:
          items:
            $ref: '#/components/schemas/ImportStepView'
          type: array
        tables:
          items:
            type: string
          type: array
        updated_at:
          format: date-time
          type: string
      required:
      - job_id
      - status
      - rows_done
      - bytes_done
      - attempt
      - max_attempts
      - created_at
      - updated_at
      type: object
    StartProjectImportInput:
      additionalProperties: false
      properties:
        job_id:
          description: the job_id the plan returned. On the staging path this is the prefix you uploaded into
          minLength: 1
          pattern: ^[6789bcdfghjkmnpqrtwz]{20}$
          type: string
        object_store:
          $ref: '#/components/schemas/ImportObjectStoreInput'
        path:
          type: string
        plan_digest:
          description: the plan_digest from the plan response; when supplied the recomputed plan must match it exactly (409 if not)
          type: string
        remote:
          $ref: '#/components/schemas/ImportRemoteInput'
        tables:
          description: the SAME tables the plan was built from; the plan is recomputed and must match
          items:
            $ref: '#/components/schemas/ImportTableInput'
          minItems: 1
          type: array
      required:
      - job_id
      - tables
      type: object
    ImportPlanOutput:
      additionalProperties: false
      properties:
        applyable:
          description: 'false when anything was refused: fix or drop those tables and re-plan'
          type: boolean
        job_id:
          description: pass this back when starting the import — on the staging path it is also the upload prefix, so a different id is a different, empty upload
          pattern: ^[6789bcdfghjkmnpqrtwz]{20}$
          type: string
        path:
          type: string
        plan:
          $ref: '#/components/schemas/ImportPlanView'
        plan_digest:
          description: fingerprint of this exact plan; pass it to the start endpoint to prove the plan you approved is the plan that runs
          type: string
        remote_setup:
          $ref: '#/components/schemas/ImportRemoteSetupView'
        staging:
          $ref: '#/components/schemas/ImportStagingView'
        warnings:
          items:
            type: string
          type: array
      required:
      - job_id
      - path
      - plan
      - applyable
      - plan_digest
      type: object
    CancelProjectImportOutput:
      additionalProperties: false
      properties:
        cancelled:
          description: false means the job had already finished and nothing was stopped — not an error
          type: boolean
        import:
          $ref: '#/components/schemas/ImportJobView'
        kill_error:
          description: 'never set: the statement is stopped by the worker running the transfer, not by this call'
          type: string
        killed_statements:
          description: 'in-flight ClickHouse statements this call stopped itself: 0, because the worker running the transfer stops its own statement within seconds of the cancel'
          format: int64
          type: integer
      required:
      - import
      - cancelled
      - killed_statements
      type: object
    ImportRemoteSetupView:
      additionalProperties: false
      properties:
        statements:
          description: run these on YOUR ClickHouse to create the read-only user we will connect as
          items:
            type: string
          type: array
        user:
          type: string
      required:
      - user
      - statements
      type: object
    ImportRemoteInput:
      additionalProperties: false
      properties:
        addr:
          description: host:port of your ClickHouse native TLS endpoint; the port must be 9440. Must be reachable from the internet and resolve to a public address
          type: string
        database:
          description: the database your source tables live in; defaults to the database named in each CREATE TABLE
          type: string
        password:
          description: that user's password. Sent only when STARTING the import, stored envelope-encrypted, and never returned
          type: string
        user:
          description: a READ-ONLY user; the plan response contains the exact SQL to create one
          type: string
      required:
      - addr
      - user
      type: object
    ImportJobPage:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/ImportJobView'
          type: array
        next_cursor:
          description: pass as cursor to fetch the next page; null on the last page
          type:
          - string
          - 'null'
      required:
      - data
      - next_cursor
      type: object
    TooManyRequestsView:
      additionalProperties: false
      properties:
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          examples:
          - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
        instance:
          description: A URI reference that identifies the specific occurrence of the problem.
          examples:
          - https://example.com/error-log/abc123
          format: uri
          type: string
        retry_after:
          description: seconds to wait before retrying; the Retry-After header's value
          format: int64
          type: integer
        status:
          description: HTTP status code
          examples:
          - 400
          format: int64
          type: integer
        title:
          description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
          examples:
          - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
          - https://example.com/errors/example
          format: uri
          type: string
      required:
      - retry_after
      type: object
    ImportObjectStoreInput:
      additionalProperties: false
      properties:
        access_key_id:
          description: leave both fields empty for a public bucket
          type: string
        secret_access_key:
          description: stored envelope-encrypted and never returned
          type: string
      type: object
    ImportTableInput:
      additionalProperties: false
      properties:
        format:
          description: 'object_store_pull only: the exported format. Native (the default) is strongly preferred — Parquet loses Enum ordinals and JSON silently drops RFC-3339 timestamps on the ClickHouse build WaveHouse runs'
          type: string
        source_ddl:
          description: the table's CREATE TABLE, verbatim from SHOW CREATE TABLE on your ClickHouse
          minLength: 1
          type: string
        source_url:
          description: 'object_store_pull only: the https URL (globs allowed) of this table''s exported data in YOUR bucket'
          type: string
        target_table:
          description: rename on the way in; empty keeps the source table name
          type: string
      required:
      - source_ddl
      type: object
    ImportPlanView:
      additionalProperties: false
      properties:
        path:
          type: string
        rejected:
          items:
            $ref: '#/components/schemas/ImportRejectionView'
          type: array
        tables:
          items:
            $ref: '#/components/schemas/ImportPlannedTableView'
          type: array
        target_database:
          type: string
        warnings:
          items:
            type: string
          type: array
      required:
      - path
      - target_database
      - tables
      - rejected
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    PlanProjectImportInput:
      additionalProperties: false
      properties:
        object_store:
          $ref: '#/components/schemas/ImportObjectStoreInput'
        path:
          description: 'how the data reaches us. Default staging_push: you run one INSERT INTO FUNCTION s3(…) per table against a credential we mint. remote_pull: we SELECT out of your ClickHouse (zero commands, needs reachability). object_store_pull: you export to your own bucket and we read it'
          enum:
          - staging_push
          - remote_pull
          - object_store_pull
          type: string
        read_only_user:
          description: 'remote_pull only: the name to use in the generated CREATE USER/GRANT statements (default whc_import)'
          type: string
        remote:
          $ref: '#/components/schemas/ImportRemoteInput'
        tables:
          items:
            $ref: '#/components/schemas/ImportTableInput'
          minItems: 1
          type: array
      required:
      - tables
      type: object
    ImportPlannedTableView:
      additionalProperties: false
      properties:
        changes:
          description: every rewrite applied to your DDL, and why
          items:
            type: string
          type: array
        columns:
          description: the writable columns, in order; MATERIALIZED/ALIAS columns are computed and excluded
          items:
            type: string
          type: array
        ddl:
          description: the statement we will run, verbatim
          type: string
        format:
          type: string
        partition_by:
          type: string
        source_database:
          type: string
        source_engine:
          type: string
        source_table:
          type: string
        source_url:
          type: string
        target_database:
          type: string
        target_engine:
          description: the engine we will actually create — replicated when the project runs highly available, which is the rewrite that matters most
          type: string
        target_table:
          type: string
        warnings:
          items:
            type: string
          type: array
      required:
      - source_table
      - target_database
      - target_table
      - source_engine
      - target_engine
      - ddl
      - format
      - columns
      type: object
    ImportStepView:
      additionalProperties: false
      properties:
        detail:
          type: string
        done_at:
          format: date-time
          type: string
        name:
          description: create:<table>, load:<table>/<object>, verify:<table>, or the terminal cancelled step
          type: string
        status:
          description: pending | done | failed
          type: string
      required:
      - name
      - status
      type: object
    ImportRejectionView:
      additionalProperties: false
      properties:
        code:
          description: stable machine code, e.g. unsupported_engine, storage_policy, materialized_view
          type: string
        detail:
          type: string
        table:
          type: string
      required:
      - table
      - code
      - detail
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          examples:
          - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
        instance:
          description: A URI reference that identifies the specific occurrence of the problem.
          examples:
          - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
          - 400
          format: int64
          type: integer
        title:
          description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
          examples:
          - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
          - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ImportStagingView:
      additionalProperties: false
      properties:
        access_key_id:
          type: string
        bucket:
          type: string
        commands:
          description: run these on YOUR ClickHouse — one per table — then start the import
          items:
            $ref: '#/components/schemas/ImportCommandView'
          type: array
        expires_at:
          format: date-time
          type: string
        prefix:
          description: every object this credential may write lives under this key prefix
          type: string
        region:
          type: string
        secret_access_key:
          description: shown once; re-plan to mint another
          type: string
        session_token:
          type: string
      required:
      - bucket
      - prefix
      - region
      - access_key_id
      - secret_access_key
      - session_token
      - expires_at
      - commands
      type: object
  responses:
    TooManyRequests:
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/TooManyRequestsView'
      description: Rate limited, per client IP, API key or org; a client IP is also refused on every route for a while after repeated authentication failures. A limited operation carries RateLimit-Policy and RateLimit on every response; wait Retry-After seconds before retrying.
      headers:
        RateLimit:
          description: 'what is left of each: "<class>.<dimension>";r=<remaining requests>;t=<seconds until it is whole>'
          schema:
            type: string
        RateLimit-Policy:
          description: 'each quota: "<class>.<dimension>";q=<requests>;w=<window seconds>'
          schema:
            type: string
        Retry-After:
          description: seconds to wait before retrying
          schema:
            type: integer
  securitySchemes:
    api_key:
      description: 'An API key (project-scoped programmatic access). Alternative to Authorization: Bearer.'
      in: header
      name: X-API-Key
      type: apiKey
    session:
      description: Customer browser session cookie, set by the hosted sign-on flow (GET /v1/auth/login → callback). Used by the web console; programmatic clients use an API key or a bearer JWT instead.
      in: cookie
      name: whc_session
      type: apiKey
    workos_bearer:
      bearerFormat: access token (JWT) or API key
      description: An issued bearer credential (a hosted sign-in access token or an API key). Verified server-side; resolves to the customer's org, role, and (for a key) allowed project scope.
      scheme: bearer
      type: http
externalDocs:
  description: Interactive API reference
  url: https://api.wavehouse.cloud/docs
x-refined-from:
- openapi.json
- wavehouse-cloud-openapi.json