Habu Cleanroom Flow Runs API

The Cleanroom Flow Runs API from Habu — 10 operation(s) for cleanroom flow runs.

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/resume-flow-run Resume a paused cleanroom flow run · Resume a Cleanroom Flow Run #
Ask an LLM
“How do I resume a cleanroom flow run that was paused?”
“Can I resume a flow run at a specific pause level?”
Tell an agent
Resume cleanroom flow run {run} in cleanroom {room}.
Resume flow run {run} in {room} at pause level {level}.
POST /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/replay-flow-run Replay a cleanroom flow run · replay a Cleanroom Flow Run #
Ask an LLM
“How do I replay a cleanroom flow run from a specific start level?”
“Can I replay a flow run on only certain branches?”
Tell an agent
Replay cleanroom flow run {run} in cleanroom {room}.
Replay flow run {run} in {room} from start level {start} on branches {branches}.
GET /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/status Get the status of a cleanroom flow run · get the status of a Cleanroom Flow Run #
Ask an LLM
“Has my cleanroom flow run finished?”
“What status is a particular flow run in?”
Tell an agent
Get the status of cleanroom flow run {run} in cleanroom {room}.
Check whether flow run {run} in {room} has completed.
GET /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/cleanroom-flow-runs List cleanroom flow runs · List Cleanroom Flow Runs #
Ask an LLM
“Which flow runs have I run in a cleanroom flow?”
“Can I search cleanroom flow runs by name or status?”
Tell an agent
List cleanroom flow runs for flow {flow} in cleanroom {room}.
Find flow runs in {room} matching {search}.
POST /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/cleanroom-flow-runs Start a cleanroom flow run · Create a Cleanroom Flow Run #
Ask an LLM
“How do I start a cleanroom flow run?”
“Can I start a flow run on certain branches only?”
Tell an agent
Start a cleanroom flow run for flow {flow} in cleanroom {room}.
Start flow run {run} on branches {branches} in {room} for flow {flow}.
GET /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/flow-run-parameters Get run parameters for a cleanroom flow · Get Flow Run Parameters #
Ask an LLM
“What parameters does a cleanroom flow expect when run?”
“Which dataset assignments are needed for a flow run?”
Tell an agent
Get the run parameters for cleanroom flow {flow} in cleanroom {room}.
Show the dataset assignments for flow {flow} in {room}.
POST /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/preview-flow-run-parameters Preview a cleanroom flow run without creating it · Preview Flow Run Parameters #
Ask an LLM
“Can I preview what a cleanroom flow run would include before creating it?”
“What runtime parameters would a replay of an existing flow run produce?”
Tell an agent
Preview the parameters for a run of cleanroom flow {flow} in {room}.
Preview a replay of flow run {parent} in {room} for flow {flow}.
GET /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId} Fetch a cleanroom flow run · Fetch a Cleanroom Flow Run by ID #
Ask an LLM
“How do I look up a cleanroom flow run by its ID?”
“What metadata is stored on a flow run?”
Tell an agent
Fetch cleanroom flow run {run} in cleanroom {room}.
Show the metadata for flow run {run} in {room}.
GET /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/report Get a cleanroom flow run report · Fetch a Cleanroom Flow Run Report #
Ask an LLM
“How do I download the report for a cleanroom flow run?”
“Can I get a flow run's report for just one node?”
Tell an agent
Get the report for cleanroom flow run {run} in cleanroom {room}.
Download the report for node {node} in flow run {run} in {room}.
GET /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/output-nodes List output nodes of a cleanroom flow run · Fetch output nodes for a Cleanroom Flow Run Report #
Ask an LLM
“Which nodes produced output in a cleanroom flow run?”
“How do I get the UUIDs of all nodes in a flow run?”
Tell an agent
List the output nodes of cleanroom flow run {run} in cleanroom {room}.
Get the UUIDs of nodes in flow run {run} in {room}.
GET /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/node/{nodeIdentifier}/download/{fileName} Download an output file from a cleanroom flow run node · Download output file for a Cleanroom Flow Run node #
Ask an LLM
“How do I download the output file from a node in a cleanroom flow run?”
“Can I fetch a specific output file by name?”
Tell an agent
Download output file {file} from node {node} in cleanroom flow run {run} in {room}.
Get the {file} output of node {node} in flow run {run} in {room}.

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/habu:habu-cleanroom-flow-runs-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

habu-cleanroom-flow-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1.0.0
  title: External APIs for Customer Integration Cleanroom Flow Runs…
  description: APIs to create and fetch Clean Room and related details from LiveRamp (previously Habu) for Customer Integration.
  contact:
    name: LiveRamp (previously Habu)
    url: https://liveramp.com/
    email: platform_admin@habu.com
servers:
- description: External APIs for Customer Integration
  url: https://api.habu.com/v1/
security:
- application: []
tags:
- name: Cleanroom Flow Runs
paths:
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/resume-flow-run:
    post:
      summary: Resume a Cleanroom Flow Run
      operationId: resumeCleanroomFlowRun
      description: This operation resumes a Cleanroom Flow Run.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowRunId
        in: path
        description: Cleanroom Flow Run ID
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResumeCleanroomFlowRunInput'
      responses:
        '200':
          description: Successfully created or updated the Cleanroom Flow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResumeCleanroomFlowRunApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ResumeCleanroomFlowRunApiResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/replay-flow-run:
    post:
      summary: replay a Cleanroom Flow Run
      operationId: replayCleanroomFlowRun
      description: This operation replays a Cleanroom Flow Run.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowRunId
        in: path
        description: Cleanroom Flow Run ID
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplayCleanroomFlowRunInput'
      responses:
        '200':
          description: Successfully replayed the Cleanroom Flow Run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplayCleanroomFlowRunApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ReplayCleanroomFlowRunApiResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/status:
    get:
      summary: get the status of a Cleanroom Flow Run
      operationId: getCleanroomFlowRunStatus
      description: This operation fetches the status of a Cleanroom Flow Run.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowRunId
        in: path
        description: Cleanroom Flow Run ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully fetched the status of the Cleanroom Flow Run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCleanroomFlowRunStatusResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/GetCleanroomFlowRunStatusResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/cleanroom-flow-runs:
    get:
      summary: List Cleanroom Flow Runs
      operationId: listCleanroomFlowRuns
      description: List cleanroom flow runs for a given cleanroom flow with optional search filters and pagination.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowId
        in: path
        description: Cleanroom Flow ID
        required: true
        schema:
          type: string
      - name: search
        in: query
        description: Case-insensitive partial search across flow run name, status, ID, and parent flow run ID
        required: false
        schema:
          type: string
      - name: limit
        in: query
        description: Maximum number of flow runs to return
        required: false
        schema:
          type: integer
          format: int32
          default: 30
      - name: offset
        in: query
        description: Number of flow runs to skip for pagination
        required: false
        schema:
          type: integer
          format: int32
          default: 0
      responses:
        '200':
          description: Successfully fetched Cleanroom Flow Runs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCleanroomFlowRunsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
    post:
      summary: Create a Cleanroom Flow Run
      operationId: createOrUpdateCleanroomFlowRun
      description: This operation creates a Cleanroom Flow Run.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowId
        in: path
        description: Cleanroom Flow ID
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCleanroomFlowRunInput'
      responses:
        '200':
          description: Successfully created the Cleanroom Flow Run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowRunMetadata'
            application/xml:
              schema:
                $ref: '#/components/schemas/FlowRunMetadata'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/flow-run-parameters:
    get:
      summary: Get Flow Run Parameters
      operationId: getCleanroomFlowRunparameters
      description: This operation gets run parameters for a cleanroom flow
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowId
        in: path
        description: Cleanroom Flow ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the Cleanroom Flow Run parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCleanroomFlowRunParametersResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/GetCleanroomFlowRunParametersResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flows/{cleanroomFlowId}/preview-flow-run-parameters:
    post:
      summary: Preview Flow Run Parameters
      operationId: previewFlowRunParameters
      description: Returns the expected runtime and partition parameters for each question node that would be included in a flow run, without actually creating a run. Accepts the same request shape as Create Cleanroom Flow Run. If parentFlowRunId is set on the request, it is treated as a replay scenario.
      parameters:
      - name: cleanroomId
        in: path
        description: Cleanroom ID
        required: true
        schema:
          type: string
      - name: cleanroomFlowId
        in: path
        description: Cleanroom Flow ID
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreviewFlowRunParametersInput'
      responses:
        '200':
          description: Successfully retrieved the preview of flow run parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviewFlowRunParametersResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}:
    get:
      summary: Fetch a Cleanroom Flow Run by ID
      operationId: getCleanroomFlowRunByID
      description: This operation fetches a Cleanroom Flow Run (including metadata) by Cleanroom Flow Run ID and Clean Room ID.
      parameters:
      - name: cleanroomId
        in: path
        description: The Cleanroom ID to which the flow run belongs
        schema:
          type: string
        required: true
      - name: cleanroomFlowRunId
        in: path
        description: The Cleanroom Flow Run ID to fetch a single Cleanroom Flow Run's details
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successfully fetched Cleanroom Flow Run details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowRunMetadata'
            application/xml:
              schema:
                $ref: '#/components/schemas/FlowRunMetadata'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/report:
    get:
      summary: Fetch a Cleanroom Flow Run Report
      operationId: getCleanroomFlowRunReport
      description: This operation fetches a Cleanroom Flow Run Report (including metadata) by Cleanroom Flow Run ID and Clean Room ID.
      parameters:
      - name: cleanroomId
        in: path
        description: The Cleanroom ID to which the flow run belongs
        schema:
          type: string
        required: true
      - name: cleanroomFlowRunId
        in: path
        description: The Cleanroom Flow Run ID to fetch a single Cleanroom Flow Run's details
        schema:
          type: string
        required: true
      - name: node
        in: query
        description: Identifier of the node in the flow. You can pass either the node’s UUID (recommended), or the node’s Question Display ID–based label (for example, Q-004368). If the same question is used multiple times as different nodes in the same flow, the label is suffixed with a number (for example, Q-004368_1, Q-004368_2). In those cases, using the UUID is the safest way to avoid ambiguity.
        schema:
          type: string
        required: true
      - name: limit
        in: query
        description: The number of Cleanroom Flow Run results data returned per page - default is 500
        schema:
          type: integer
          default: 500
        required: false
      - name: offset
        in: query
        description: The offset - default is 0
        schema:
          type: integer
          default: 0
        required: false
      responses:
        '200':
          description: Successfully fetched Cleanroom Flow Run Result Data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuestionRunResultData'
            application/xml:
              schema:
                $ref: '#/components/schemas/QuestionRunResultData'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/output-nodes:
    get:
      summary: Fetch output nodes for a Cleanroom Flow Run Report
      operationId: getCleanroomFlowRunOutputNodes
      description: 'This operation fetches the output nodes for a cleanroom flow run. It is the canonical way to list all nodes in the run and retrieve their UUIDs (the recommended identifier). Note: The label field in this response represents the node''s display name (e.g., "Brand Awareness") and cannot be used as a node identifier. API clients should use the returned UUID for all node-specific operations to ensure uniqueness and stability.'
      parameters:
      - name: cleanroomId
        in: path
        description: The Cleanroom ID to which the flow run belongs
        schema:
          type: string
        required: true
      - name: cleanroomFlowRunId
        in: path
        description: The Cleanroom Flow Run ID to fetch a single Cleanroom Flow Run's details
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successfully fetched Cleanroom Flow Run details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CleanroomFlowRunOutputNodes'
            application/xml:
              schema:
                $ref: '#/components/schemas/CleanroomFlowRunOutputNodes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
  /cleanrooms/{cleanroomId}/cleanroom-flow-runs/{cleanroomFlowRunId}/node/{nodeIdentifier}/download/{fileName}:
    get:
      summary: Download output file for a Cleanroom Flow Run node
      operationId: getCleanroomFlowRunNodeOutputFile
      description: This operation downloads an output file for a specific node in a cleanroom flow run
      parameters:
      - name: cleanroomId
        in: path
        description: The Cleanroom ID to which the flow run belongs
        schema:
          type: string
        required: true
      - name: cleanroomFlowRunId
        in: path
        description: The Cleanroom Flow Run ID
        schema:
          type: string
        required: true
      - name: nodeIdentifier
        in: path
        description: Identifier of the node in the flow. You can pass either the node’s UUID (recommended), or the node’s Question Display ID–based label (for example, Q-004368). If the same question is used multiple times as different nodes in the same flow, the label is suffixed with a number (for example, Q-004368_1, Q-004368_2). In those cases, using the UUID is the safest way to avoid ambiguity.
        schema:
          type: string
        required: true
      - name: fileName
        in: path
        description: The name of the output file to download
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successfully downloaded the output file
          content:
            application/json:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      tags:
      - Cleanroom Flow Runs
components:
  schemas:
    RunTableStats:
      type: object
      additionalProperties:
        type: string
    FlowRunMetadataParameter:
      type: object
      properties:
        nodeId:
          type: string
        nodeQuestionName:
          type: string
        parameterMetadataList:
          type: array
          items:
            $ref: '#/components/schemas/ParameterInfo'
    FieldMapping:
      type: object
      properties:
        questionFieldName:
          type: string
          description: Question field name in the node
        datasetFieldName:
          type: string
          description: Dataset field name to map to
    NodeParametersEntry:
      type: object
      properties:
        nodeIdentifier:
          type: string
          description: Node identifier
        parameters:
          type: object
          description: Parameters for this node
          additionalProperties:
            type: string
    GetCleanroomFlowRunStatusResponse:
      type: object
      properties:
        status:
          type: string
    FlowRunMetadata:
      description: Model containing the Cleanroom Flow Run Metadata
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        submittedAt:
          type: string
          format: date-time
        executedAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
        flowRunParameters:
          type: array
          items:
            $ref: '#/components/schemas/FlowRunParameter'
        runMessage:
          type: string
    UserAudit:
      type: object
      properties:
        createdBy:
          type: string
          description: Identifier of the user who created the object
        updatedBy:
          type: string
          description: Identifier of the user who last updated the object
    CleanroomFlowRunOutputNode:
      type: object
      properties:
        id:
          type: string
        flowId:
          type: string
        label:
          type: string
        nodeType:
          type: string
        referenceId:
          type: string
        positionX:
          type: integer
        positionY:
          type: integer
        timeAudit:
          $ref: '#/components/schemas/TimeAudit'
        userAudit:
          $ref: '#/components/schemas/UserAudit'
        level:
          type: integer
        title:
          type: string
        cleanroomQuestionId:
          type: string
    ReturnObject:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
      - code
      - message
    ResumeCleanroomFlowRunApiResponse:
      type: object
      properties:
        success:
          type: boolean
    FlowRunParameterValue:
      type: object
      properties:
        value:
          type: string
        parameterType:
          $ref: '#/components/schemas/ParameterType'
    PreviewFlowRunParametersInput:
      type: object
      description: Input for previewing flow run parameters
      properties:
        branches:
          type: string
          description: Branch names to filter flow execution (comma-separated)
        excludeNodesWithoutTags:
          type: boolean
          description: Exclude nodes without tags when branch filtering is enabled
        ignoreParentChildRule:
          type: boolean
          description: Ignore parent-child dependency rules
        includeMismatchingTaggedNodes:
          type: boolean
          description: Include unmatched nodes when branch filtering is enabled
        datasetAssignments:
          type: array
          description: Dataset assignments for each node (used to derive partition parameters)
          items:
            $ref: '#/components/schemas/NodeDatasetAssignment'
        parentFlowRunId:
          type: string
          description: When set, preview is treated as a replay of this parent flow run
    CleanroomFlowRunOutputNodes:
      type: array
      items:
        $ref: '#/components/schemas/GetCleanroomFlowRunOutputNodeResponseObject'
    DatasetAssignment:
      type: object
      properties:
        datasetName:
          type: string
          description: Dataset name (will be resolved to ID)
        datasetMacro:
          type: string
          description: Dataset macro/type
        organizationName:
          type: string
          description: Organization name from stakeholders list (will be resolved to ownership)
        fieldMappings:
          type: array
          description: Field mappings using field names
          items:
            $ref: '#/components/schemas/FieldMapping'
    TimeAudit:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
          description: Timestamp for when the object was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp for when the object was last updated
        deletedAt:
          type: string
          format: date-time
          description: Timestamp for when the object was deleted (if applicable)
    RunTableMetadata:
      type: object
      properties:
        fieldName:
          type: string
        dataType:
          type: string
        columnName:
          type: string
    NodeDatasetAssignment:
      type: object
      properties:
        nodeIdentifier:
          type: string
          description: Node display ID or name
        datasets:
          type: array
          description: Dataset assignments for this node
          items:
            $ref: '#/components/schemas/DatasetAssignment'
    CreateCleanroomFlowRunInput:
      type: object
      properties:
        name:
          type: string
          description: Name of the flow run
        pauseLevelID:
          type: string
          description: Optional pause level ID at which to pause execution
        nodes:
          type: array
          description: Nodes with parameters
          items:
            $ref: '#/components/schemas/NodeParametersEntry'
        branches:
          type: string
          description: Branch names to filter flow execution (comma-separated)
        excludeNodesWithoutTags:
          type: boolean
          description: Exclude nodes without tags when branch filtering is enabled
        ignoreParentChildRule:
          type: boolean
          description: Ignore parent-child dependency rules for normal flow runs
        includeMismatchingTaggedNodes:
          type: boolean
          description: Include unmatched nodes when branch filtering is enabled
        datasetAssignments:
          type: array
          description: Dataset assignments for each node
          items:
            $ref: '#/components/schemas/NodeDatasetAssignment'
    FlowNodeParameterPreview:
      type: object
      description: Per-node parameter preview containing question metadata and expected parameters
      properties:
        nodeId:
          type: string
          description: Internal node UUID
        nodeIdentifier:
          type: string
          description: Display label of the node
        questionName:
          type: string
          description: Title of the question associated with this node
        questionVersion:
          type: integer
          description: Version of the question
        nodeLevel:
          type: integer
          description: DAG depth of the node in the flow
        parameters:
          type: array
          description: Combined list of runtime and partition parameters
          items:
            $ref: '#/components/schemas/ParameterInfo'
    GetCleanroomFlowRunParametersResponse:
      type: object
      properties:
        flowRunParameters:
          type: array
          items:
            $ref: '#/components/schemas/FlowRunMetadataParameter'
    ReplayCleanroomFlowRunApiResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success indicator
        cleanRoomFlowRunID:
          type: string
          description: The new flow run ID created for the replay
    FlowRunParameter:
      type: object
      properties:
        nodeId:
          type: string
        parameters:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FlowRunParameterValue'
    ParameterType:
      type: string
      enum:
      - RUN_TIME_PARAMETER
      - PARTITION_PARAMETER
      - ARTIFACT_FILE_METADATA
      - PARAMETER_UNKNOWN
    GetCleanroomFlowRunOutputNodeResponseObject:
      type: object
      properties:
        node:
          $ref: '#/components/schemas/CleanroomFlowRunOutputNode'
        runStatus:
          type: string
        runID:
          type: string
    ResumeCleanroomFlowRunInput:
      type: object
      properties:
        pauseLevelID:
          type: string
          description: Optional pause level ID at which to pause execution
    PreviewFlowRunParametersResponse:
      type: object
      properties:
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/FlowNodeParameterPreview'
    QuestionRunResultData:
      description: Model containing the Cleanroom Question Run Result Data
      properties:
        metadata:
          type: array
          items:
            $ref: '#/components/schemas/RunTableMetadata'
        stats:
          type: array
          items:
            $ref: '#/components/schemas/RunTableStats'
        count:
          type: integer
        multipleOutputs:
          type: array
          items:
            type: string
    ReplayCleanroomFlowRunInput:
      type: object
      properties:
        startLevelID:
          type: string
          description: Start level ID for the replay
        pauseLevelID:
          type: string
          description: Optional pause level ID at which to pause execution
        nodes:
          type: array
          description: Nodes with parameters
          items:
            $ref: '#/components/schemas/NodeParametersEntry'
        branches:
          type: string
          description: Branch names to filter flow execution (comma-separated)
        excludeNodesWithoutTags:
          type: boolean
          description: Exclude nodes without tags when branch filtering is enabled
        includeMismatchingTaggedNodes:
          type: boolean
          description: Include unmatched nodes when branch filtering is enabled
        datasetAssignments:
          type: array
          description: Dataset assignments for each node
          items:
            $ref: '#/components/schemas/NodeDatasetAssignment'
        name:
          type: string
          description: Optional name for the replay
    UnhygienixFieldType:
      type: string
      enum:
      - FIELD_TYPE_UNKNOWN
      - INTEGER
      - STRING
      - DATE
      - TIMESTAMP
      - DOUBLE
      - BIGINT
      - BOOLEAN
      - DECIMAL
      - LONG
    ParameterInfo:
      type: object
      properties:
        Id:
          type: string
        name:
          type: string
        displayName:
          type: string
        index:
          type: integer
        fieldType:
          $ref: '#/components/schemas/UnhygienixFieldType'
        parameterType:
          $ref: '#/components/schemas/ParameterType'
    ListCleanroomFlowRunsResponse:
      type: object
      properties:
        cleanRoomFlowRuns:
          type: array
          items:
            $ref: '#/components/schemas/FlowRunMetadata'
        count:
          type: integer
          format: int32
  responses:
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReturnObject'
        application/xml:
          schema:
            $ref: '#/components/schemas/ReturnObject'
    Unauthorized:
      description: Authorization information was missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReturnObject'
        application/xml:
          schema:
            $ref: '#/components/schemas/ReturnObject'
    NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReturnObject'
        application/xml:
          schema:
            $ref: '#/components/schemas/ReturnObject'
    BadRequest:
      description: Bad Request - Incorrect syntax or request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ReturnObject'
        application/xml:
          schema:
            $ref: '#/components/schemas/ReturnObject'
  securitySchemes:
    application:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.habu.com/v1/oauth/token
          scopes: {}