Cognite Workflow executions API

The Workflow executions API from Cognite — 5 operation(s) for workflow executions.

Operations 5

POST /workflows/{workflowExternalId}/versions/{version}/run Run a workflow #
POST /workflows/executions/list Filter workflow executions #
GET /workflows/executions/{executionId} Retrieve workflow execution details #
POST /workflows/executions/{executionId}/cancel Cancel a workflow execution #
POST /workflows/executions/{executionId}/retry Retry workflow execution #

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/cognite-workflow-executions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cognite-workflow-executions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cognite 3D Asset Mapping Workflow executions API
  description: "# Introduction\nThis is the reference documentation for the Cognite API with\nan overview of all the available methods.\n\n# Postman\nSelect the **Download** button to download our OpenAPI specification to get started.\n\nTo import your data into Postman, select **Import**, and the Import modal opens.\nYou can import items by dragging or dropping files or folders. You can choose how to import your API and manage the import settings in **View Import Settings**.\n\nIn the Import Settings, set the **Folder organization** to **Tags**, select\n**Enable optional parameters** to turn off the settings, and select **Always inherit authentication** to turn on the settings. Select **Import**.\n\nSet the Authorization to **Oauth2.0**. By default, the settings are for Open Industrial Data. Navigate to [Cognite Hub](https://hub.cognite.com/open-industrial-data-211) to understand how to get the credentials for use in Postman.\n\nFor more information, see [Getting Started with Postman](https://developer.cognite.com/dev/guides/postman/).\n\n# Pagination\nMost resource types can be paginated, indicated by the field `nextCursor` in the response.\nBy passing the value of `nextCursor` as the cursor you will get the next page of `limit` results.\nNote that all parameters except `cursor` has to stay the same.\n\n# Parallel retrieval\nAs general guidance, Parallel Retrieval is a technique that should be used when due to query complexity, retrieval of data in a single request is significantly slower than it would otherwise be for a simple request.  Parallel retrieval does not act as a speed multiplier on optimally running queries.  By parallelizing such requests, data retrieval performance can be tuned to meet the client application needs. \n\nCDF supports parallel retrieval through the `partition` parameter, which has the format `m/n` where `n` is the amount of partitions you would like to split the entire data set into.\nIf you want to download the entire data set by splitting it into 10 partitions, do the following in parallel with `m` running from 1 to 10:\n  - Make a request to `/events` with `partition=m/10`.\n  - Paginate through the response by following the cursor as explained above. Note that the `partition` parameter needs to be passed to all subqueries.\n\nProcessing of parallel retrieval requests is subject to concurrency quota availability. The request returns the `429` response upon exceeding concurrency limits. See the Request throttling chapter below.\n\nTo prevent unexpected problems and to maximize read throughput, you should at most use 10 partitions. \nSome CDF resources will automatically enforce a maximum of 10 partitions.\nFor more specific and detailed information, please read the ```partition``` attribute documentation for the CDF resource you're using.  \n\n# Requests throttling\nCognite Data Fusion (CDF) returns the HTTP `429` (too many requests) response status code when project capacity exceeds the limit.\n\nThe throttling can happen:\n  - If a user or a project sends too many (more than allocated) concurrent requests.\n  - If a user or a project sends a too high (more than allocated) rate of requests in a given amount of time.\n\nCognite recommends using a retry strategy based on truncated exponential backoff to handle sessions with HTTP response codes 429.\n\nCognite recommends using a reasonable number (up to 10) of  `Parallel retrieval` partitions.\n\nFollowing these strategies lets you slow down the request frequency to maximize productivity without having to re-submit/retry failing requests.\n\nSee more [here](https://docs.cognite.com/dev/concepts/resource_throttling).\n\n# API versions\n## Version headers\nThis API uses calendar versioning, and version names follow the `YYYYMMDD` format.\nYou can find the versions currently available by using the version selector at the top of this page.\n\nTo use a specific API version, you can pass the `cdf-version: $version` header along with your requests to the API.\n\n## Beta versions\nThe beta versions provide a preview of what the stable version will look like in the future.\nBeta versions contain functionality that is reasonably mature, and highly likely to become a part of the stable API.\n\nBeta versions are indicated by a `-beta` suffix after the version name. For example, the beta version header for the\n2023-01-01 version is then `cdf-version: 20230101-beta`.\n\n## Alpha versions\nAlpha versions contain functionality that is new and experimental, and not guaranteed to ever become a part of the stable API.\nThis functionality presents no guarantee of service, so its use is subject to caution.\n\nAlpha versions are indicated by an `-alpha` suffix after the version name. For example, the alpha version header for\nthe 2023-01-01 version is then `cdf-version: 20230101-alpha`."
  version: v1
  contact:
    name: Cognite Support
    url: https://support.cognite.com
    email: support@cognite.com
servers:
- url: https://{cluster}.cognitedata.com/api/v1/projects/{project}
  description: The URL for the CDF cluster to connect to
  variables:
    cluster:
      enum:
      - api
      - az-tyo-gp-001
      - az-eastus-1
      - az-power-no-northeurope
      - westeurope-1
      - asia-northeast1-1
      - gc-dsm-gp-001
      default: api
      description: The CDF cluster to connect to
    project:
      default: publicdata
      description: The CDF project name.
security:
- oidc-token:
  - https://{cluster}.cognitedata.com/.default
- oauth2-client-credentials:
  - https://{cluster}.cognitedata.com/.default
- oauth2-open-industrial-data:
  - https://api.cognitedata.com/.default
- oauth2-auth-code:
  - https://{cluster}.cognitedata.com/.default
tags:
- name: Workflow executions
paths:
  /workflows/{workflowExternalId}/versions/{version}/run:
    parameters:
    - name: workflowExternalId
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/WorkflowExternalId'
    - name: version
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/Version'
    post:
      operationId: TriggerRunOfSpecificVersionOfWorkflow
      summary: Run a workflow
      description: '


        > **Required capabilities:** `workflowOrchestrationACL:WRITE`


        Start an execution of a specific version of a workflow.'
      tags:
      - Workflow executions
      x-capability:
      - workflowOrchestrationACL:WRITE
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                authentication:
                  $ref: '#/components/schemas/Authentication'
                input:
                  $ref: '#/components/schemas/ExecutionInput'
                metadata:
                  $ref: '#/components/schemas/metadata'
              required:
              - authentication
      responses:
        '202':
          description: Information about the workflow execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionResponse'
      x-code-samples:
      - lang: Python
        label: Python SDK
        source: "from cognite.client.data_classes import WorkflowTask, FunctionTaskParameters\ntask = WorkflowTask(\n    external_id=\"my_workflow-task1\",\n    parameters=FunctionTaskParameters(\n        external_id=\"cdf_deployed_function:my_function\",\n        data={\"workflow_data\": \"${workflow.input}\"}))\n\nres = client.workflows.executions.run(\"foo\", \"1\")\n\nres = client.workflows.executions.run(\"foo\", \"1\", input={\"a\": 1, \"b\": 2})\n\nimport os\nfrom cognite.client.data_classes import ClientCredentials\ncredentials = ClientCredentials(\"my-client-id\", os.environ[\"MY_CLIENT_SECRET\"])\nres = client.workflows.executions.run(\"foo\", \"1\", client_credentials=credentials)\n"
  /workflows/executions/list:
    post:
      operationId: ListWorkflowExecutions
      summary: Filter workflow executions
      description: '


        > **Required capabilities:** `workflowOrchestrationACL:READ`


        List workflow executions matching a given filter.'
      tags:
      - Workflow executions
      x-capability:
      - workflowOrchestrationACL:READ
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListExecutionsQuery'
      responses:
        '200':
          description: Filtered list of workflow executions
          content:
            application/json:
              schema:
                properties:
                  items:
                    type: array
                    maxItems: 1000
                    items:
                      $ref: '#/components/schemas/WorkflowExecutionResponse'
                  nextCursor:
                    $ref: '#/components/schemas/nextCursor'
                required:
                - items
      x-code-samples:
      - lang: Python
        label: Python SDK
        source: "res = client.workflows.executions.list((\"my_workflow\", \"1\"))\n\nfrom cognite.client.utils import timestamp_to_ms\nres = client.workflows.executions.list(\n    created_time_start=timestamp_to_ms(\"1d-ago\"))\n"
  /workflows/executions/{executionId}:
    parameters:
    - name: executionId
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/WorkflowExecutionId'
    get:
      operationId: ExecutionOfSpecificRunOfWorkflow
      summary: Retrieve workflow execution details
      description: '


        > **Required capabilities:** `workflowOrchestrationACL:READ`


        Retrieve detailed information about a specific workflow execution.'
      tags:
      - Workflow executions
      x-capability:
      - workflowOrchestrationACL:READ
      responses:
        '200':
          description: Details of a workflow execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecution'
      x-code-samples:
      - lang: Python
        label: Python SDK
        source: 'res = client.workflows.executions.retrieve_detailed("000560bc-9080-4286-b242-a27bb4819253")


          res = client.workflows.executions.list()

          res = client.workflows.executions.retrieve_detailed(res[0].id)

          '
  /workflows/executions/{executionId}/cancel:
    post:
      operationId: WorkflowExecutionCancellation
      summary: Cancel a workflow execution
      description: '


        > **Required capabilities:** `workflowOrchestrationACL:WRITE`


        Stops the specified execution from starting new workflow tasks and sets the workflow execution status to `TERMINATED`. Already running tasks will be marked as CANCELED. Note that the actions taken by the canceled tasks won''t be stopped, and these need to be canceled separately if desired. For example, to cancel a running transformation, use the [/transformations/cancel](#/Transformations/postApiV1ProjectsProjectTransformationsCancel) endpoint.'
      tags:
      - Workflow executions
      x-capability:
      - workflowOrchestrationACL:WRITE
      parameters:
      - name: executionId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/WorkflowExecutionId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelExecution'
      responses:
        '200':
          description: Updated workflow execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionResponse'
        '404':
          $ref: '#/components/responses/ErrorResponse'
      x-code-samples:
      - lang: Python
        label: Python SDK
        source: 'res = client.workflows.executions.run("foo", "1")

          client.workflows.executions.cancel(id="foo", reason="test cancellation")

          '
  /workflows/executions/{executionId}/retry:
    post:
      operationId: WorkflowExecutionRetry
      summary: Retry workflow execution
      description: '


        > **Required capabilities:** `workflowOrchestrationACL:WRITE`


        This endpoint restarts a previously failed, timed out, or terminated workflow execution by retrying tasks that did not complete successfully. It aims to resume execution activity from the point(s) of failure.


        Behavior of the retry operation:

        - Targeted Task Retry: Only retries tasks that have stopped in a terminal state such as `CANCELED`, `FAILED`, `FAILED_WITH_TERMINAL_ERROR`, and `TIMED_OUT`. Optional tasks are not retried.

        - Subworkflows and Dynamic Tasks: When a failure occurs within a subworkflow or as part of a dynamic task, only the individual nested tasks that failed are retried. The subworkflow or dynamic task container itself is not retried.

        - Retry Limits: Tasks that have reached or exceeded their designated retry limits will not have their retry counts reset to zero. Instead, each retry request permits these tasks a single additional retry.

        '
      tags:
      - Workflow executions
      x-capability:
      - workflowOrchestrationACL:WRITE
      parameters:
      - name: executionId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/WorkflowExecutionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetryExecution'
      responses:
        '200':
          description: Updated workflow execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionResponse'
        '404':
          $ref: '#/components/responses/ErrorResponse'
components:
  schemas:
    Version:
      type: string
      description: Identifier for a version. Must be unique for the workflow. No trailing or leading whitespace and no null characters allowed.
      maxLength: 255
    TransformationTaskOutput:
      title: Transformation Task Output
      type: object
      properties:
        jobId:
          type: integer
          format: int64
          description: Job ID of the Transformation called.
    nextCursor:
      description: Cursor to get the next page of results. If not present, no more results are available.
      type: string
      example: 4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo
    SubworkflowTaskParameters:
      title: Subworkflow Task Parameters
      type: object
      properties:
        subworkflow:
          oneOf:
          - type: object
            properties:
              tasks:
                description: 'A list of tasks with their inputs and interdependencies. Similar to the way tasks are defined in a workflow definition.

                  Note: subworkflows cannot contain dynamic tasks or nested subworkflows

                  '
                type: array
                items:
                  $ref: '#/components/schemas/TaskDefinition'
                maxItems: 100
                minItems: 1
            required:
            - tasks
          - type: object
            description: 'Run another workflow embedded as a subworkflow. The tasks within the subworkflow will count towards the limit on total number of tasks in a workflow.


              Note: the referenced subworkflow cannot contain dynamic tasks or nested subworkflows

              '
            properties:
              workflowExternalId:
                type: string
                description: External ID of the referenced workflow
              version:
                type: string
                description: Version of the referenced workflow
            required:
            - workflowExternalId
            - version
    Reference:
      type: string
      description: 'A Reference is an expression that allows dynamically injecting input to a task during execution. References can be used to reference the input of the Workflow, the output of a previous task in the Workflow, or the input of a previous task in the Workflow. Note that the injected value must be valid in the context of the property it is injected into.

        Example Task reference: ${myTaskExternalId.output.someKey} Example Workflow input reference: ${workflow.input.myKey}'
    TaskExternalId:
      type: string
      description: Identifier for the task. Must be unique within the version. No trailing or leading whitespace and no null characters allowed. Task external IDs cannot be exactly 'workflow' or start with '__' (double underscore) as these are reserved.
      maxLength: 255
    EngineExecutionId:
      type: string
      format: uuid
      description: Additional UUIDv4 identifier for an execution. Useful for Cognite support to diagnose issues.
      minLength: 36
      maxLength: 36
    SimulatorInputsUnit:
      type: object
      properties:
        name:
          type: string
          description: Name of the unit.
    TransformationTaskParameters:
      title: Transformation Task Parameters
      type: object
      properties:
        transformation:
          type: object
          description: Parameters for the CDF Transformation task type.
          properties:
            externalId:
              description: The external id of the Transformation in the project.
              oneOf:
              - $ref: '#/components/schemas/CogniteExternalId'
              - $ref: '#/components/schemas/Reference'
            concurrencyPolicy:
              type: string
              enum:
              - fail
              - waitForCurrent
              - restartAfterCurrent
              default: fail
              description: 'Determines the behavior of the task if the Transformation is already running.

                - fail: The task fails if another instance of the Transformation is currently running.

                - waitForCurrent: The task will pause and wait for the already running Transformation to complete. Once completed, the task is completed. This mode is useful for preventing redundant Transformation runs.

                - restartAfterCurrent: The task waits for the ongoing Transformation to finish. After completion, the task restarts the Transformation. This mode ensures that the most recent data can be used by following tasks.

                '
            useTransformationCredentials:
              type: boolean
              default: false
              description: 'If set to `true`, the transformation will run using the client credentials configured on the transformation.

                If set to `false`, the transformation will run using the client credentials used to trigger the workflow.

                '
          required:
          - externalId
    cursor:
      type: string
      example: 4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo
      description: Cursor to use for paging through results. This cursor is returned in the response of a previous request as `nextCursor`. If not specified, start from the first page of results.
    TaskDefinition:
      title: Task Definition
      type: object
      properties:
        externalId:
          $ref: '#/components/schemas/TaskExternalId'
        type:
          $ref: '#/components/schemas/TaskType'
        name:
          type: string
          maxLength: 255
          description: Readable name meant for use in UIs
        description:
          type: string
          maxLength: 500
          description: Description of the intention of the task
        parameters:
          oneOf:
          - $ref: '#/components/schemas/FunctionTaskParameters'
          - $ref: '#/components/schemas/TransformationTaskParameters'
          - $ref: '#/components/schemas/CdfTaskParameters'
          - $ref: '#/components/schemas/DynamicTaskParameters'
          - $ref: '#/components/schemas/SubworkflowTaskParameters'
          - $ref: '#/components/schemas/SimulatorTaskParameters'
        retries:
          type: number
          default: 3
          minimum: 0
          maximum: 10
          description: Number of times to retry the task if it fails. If set to 0, the task will not be retried. The behavior for timeouts and retries is defined by the `onFailure` parameter, refer to it for more information.
        timeout:
          type: number
          default: 3600
          minimum: 100
          maximum: 43200
          description: Timeout in seconds. After this time, the task will be marked as `TIMED_OUT`. By default, the task won't be retried upon timeout. Use the `onFailure` parameter to change this behavior.
        onFailure:
          type: string
          enum:
          - abortWorkflow
          - skipTask
          default: abortWorkflow
          description: "Defines the policy to handle failures and timeouts.\n- `skipTask`: For both failures and timeouts, it will retry until the retries are exhausted. After that, the Task is marked as COMPLETED_WITH_ERRORS and the subsequent tasks are executed.\n- `abortWorkflow`:\n  - In case of failures, retries will be performed until exhausted, after which the task is marked as FAILED and the Workflow is marked the same.\n  - In the event of a timeout, no retries are undertaken; the task is marked as TIMED_OUT and the Workflow is marked as FAILED.\n"
        dependsOn:
          type: array
          items:
            $ref: '#/components/schemas/TaskDepends'
          minItems: 0
          maxItems: 100
          description: The tasks that must be completed before this task can be executed.
      required:
      - externalId
      - type
      - parameters
    EpochTimestamp:
      description: The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
      type: integer
      minimum: 0
      format: int64
      example: 1730204346000
    TaskDepends:
      type: object
      properties:
        externalId:
          $ref: '#/components/schemas/CogniteExternalId'
      required:
      - externalId
    ReasonForIncompletion:
      type: string
      description: Human-readable reason for terminal failure of a workflow task.
    WorkflowExecutionResponse:
      title: Workflow Execution Response
      type: object
      properties:
        id:
          $ref: '#/components/schemas/WorkflowExecutionId'
        workflowExternalId:
          $ref: '#/components/schemas/WorkflowExternalId'
        version:
          $ref: '#/components/schemas/Version'
        status:
          $ref: '#/components/schemas/WorkflowStatus'
        engineExecutionId:
          $ref: '#/components/schemas/EngineExecutionId'
        createdTime:
          $ref: '#/components/schemas/EpochTimestamp'
        startTime:
          $ref: '#/components/schemas/EpochTimestamp'
        endTime:
          $ref: '#/components/schemas/EpochTimestamp'
        reasonForIncompletion:
          $ref: '#/components/schemas/ReasonForIncompletion'
        metadata:
          $ref: '#/components/schemas/metadata'
      required:
      - id
      - workflowExternalId
      - status
      - engineExecutionId
      - createdTime
      - metadata
    WorkflowExecution:
      title: Workflow Execution
      type: object
      properties:
        id:
          $ref: '#/components/schemas/WorkflowExecutionId'
        workflowExternalId:
          $ref: '#/components/schemas/WorkflowExternalId'
        workflowDefinition:
          $ref: '#/components/schemas/WorkflowDefinitionResponse'
        version:
          $ref: '#/components/schemas/Version'
        status:
          $ref: '#/components/schemas/WorkflowStatus'
        engineExecutionId:
          $ref: '#/components/schemas/EngineExecutionId'
        executedTasks:
          type: array
          items:
            $ref: '#/components/schemas/TaskExecution'
        input:
          $ref: '#/components/schemas/ExecutionInput'
        metadata:
          $ref: '#/components/schemas/metadata'
        createdTime:
          $ref: '#/components/schemas/EpochTimestamp'
        startTime:
          $ref: '#/components/schemas/EpochTimestamp'
        endTime:
          $ref: '#/components/schemas/EpochTimestamp'
        reasonForIncompletion:
          $ref: '#/components/schemas/ReasonForIncompletion'
      required:
      - id
      - workflowExternalId
      - workflowDefinition
      - status
      - engineExecutionId
      - createdTime
      - executedTasks
      - metadata
    CdfTaskParameters:
      title: CDF Task Parameters
      type: object
      description: Parameters for the CDF Request task type, which can be used to make a request to any CDF API.
      properties:
        cdfRequest:
          type: object
          properties:
            resourcePath:
              description: 'The path of the request. The path should be prefixed by `{cluster}.cognitedata.com/api/v1/project/{project}` based on the relevant cluster and project.


                Example: to list TimeSeries, the resourcePath would be `{cluster}.cognitedata.com/api/v1/project/{project}/timeseries/list`.

                '
              oneOf:
              - type: string
                maxLength: 128
              - $ref: '#/components/schemas/Reference'
            queryParameters:
              oneOf:
              - type: object
                additionalProperties:
                  type: string
                  maxLength: 50
                maxItems: 5
              - $ref: '#/components/schemas/Reference'
            method:
              oneOf:
              - type: string
                enum:
                - POST
                - GET
                - PUT
              - $ref: '#/components/schemas/Reference'
            body:
              description: The body of the request. Limited to 100KB in size.
              oneOf:
              - type: object
                maxLength: 100000
              - $ref: '#/components/schemas/Reference'
            requestTimeoutInMillis:
              oneOf:
              - type: number
                default: 10000
                minimum: 100
              - $ref: '#/components/schemas/Reference'
            cdfVersionHeader:
              description: 'Optional CDF API version header. Set to `alpha` or `beta` to access alpha or beta CDF API endpoints.

                '
              type: string
              enum:
              - alpha
              - beta
          required:
          - resourcePath
          - method
    TaskType:
      type: string
      enum:
      - function
      - transformation
      - cdf
      - dynamic
      - subworkflow
      - simulation
    ExecutionInput:
      type: object
      example:
        key1: value1
        key2: value2
      description: Input data to the workflow. The content of the input data can be used as input to the workflow tasks using references. The input data should be in JSON format, and is limited to 100KB in size.
    ListExecutionsFilter:
      title: List Executions Filter
      type: object
      properties:
        workflowFilters:
          type: array
          description: Allows filtering executions by their workflows (and optionally version identifiers). If no workflowFilters are specified, all executions for all workflows will be included, ordered by createdTime.
          items:
            $ref: '#/components/schemas/WorkflowFilter'
          minItems: 1
          maxItems: 100
        createdTimeStart:
          type: integer
          minimum: 0
          description: epoch timestamp in milliseconds
        createdTimeEnd:
          type: integer
          minimum: 0
          description: epoch timestamp in milliseconds
        status:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowStatus'
          description: workflow execution status
          uniqueItems: true
    WorkflowFilter:
      type: object
      description: If the version is not specified, all versions for the workflow will be included, ordered by createdTime.
      properties:
        externalId:
          $ref: '#/components/schemas/WorkflowExternalId'
        version:
          $ref: '#/components/schemas/Version'
      required:
      - externalId
    limit:
      type: integer
      minimum: 1
      maximum: 1000
      default: 100
      description: The maximum number of results to return.
    SimulatorInput:
      type: object
      properties:
        referenceId:
          type: string
          description: Reference id of the value to override
        value:
          anyOf:
          - type: string
            maxLength: 1024
            minLength: 1
          - type: number
          - items:
              type: string
            type: array
            maxItems: 200
            minItems: 1
          - items:
              type: number
            type: array
            maxItems: 200
            minItems: 1
          title: Value
          description: Override the value used for a simulation run
        unit:
          description: Override the unit of the value
          anyOf:
          - $ref: '#/components/schemas/SimulatorInputsUnit'
          - type: 'null'
      required:
      - referenceId
      - value
    ListExecutionsQuery:
      type: object
      properties:
        filter:
          $ref: '#/components/schemas/ListExecutionsFilter'
        limit:
          $ref: '#/components/schemas/limit'
        cursor:
          $ref: '#/components/schemas/cursor'
    CdfTaskOutput:
      title: CDF Task Output
      type: object
      properties:
        response:
          oneOf:
          - type: string
          - type: object
          description: The body of the response. Will be a a JSON object if content-type is application/json, otherwise it will be a string.
        statusCode:
          type: integer
          description: The HTTP status code of the response.
    WorkflowStatus:
      type: string
      enum:
      - RUNNING
      - COMPLETED
      - FAILED
      - TIMED_OUT
      - TERMINATED
    FunctionTaskOutput:
      title: Function Task Output
      type: object
      properties:
        callId:
          type: integer
          format: int64
          description: The callId of the Cognite Function call instance.
        functionId:
          type: integer
          format: int64
          description: The functionId of the Cognite Function called.
        response:
          type: object
          description: The response of the function call. Limited to 100KB in size.
    CancelExecution:
      title: Workflow cancellation request
      type: object
      properties:
        reason:
          type: string
          description: Human-readable reason for the cancellation.
          default: cancelled
          maxLength: 500
    WorkflowDefinitionResponse:
      title: Workflow Definition
      type: object
      properties:
        hash:
          type: string
        description:
          type: string
          maxLength: 500
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/TaskDefinition'
      required:
      - hash
      - tasks
    SimulatorTaskOutput:
      title: Simulator Task Output
      description: Simulation run execution results.
      type: object
      properties:
        runId:
          type: integer
          format: int64
          description: The ID of the simulation run instance.
        logId:
          type: integer
          format: int64
          description: The log ID of the simulation run.
        statusMessage:
          type: string
          description: The status message of the simulation run instance.
    WorkflowExecutionId:
      type: string
      format: uuid
      description: UUIDv4 identifier for a workflow execution.
      maxLength: 36
      minLength: 36
      example: 059edaa4-a17a-4102-910e-2c3591500cce
    WorkflowExternalId:
      type: string
      description: Identifier for a workflow. Must be unique for the project. No trailing or leading whitespace and no null characters allowed.
      maxLength: 255
    DynamicTaskOutput:
      title: Dynamic Task Output
      type: object
      properties:
        dynamicTasks:
          type: array
          items:
            $ref: '#/components/schemas/TaskDefinition'
          minItems: 0
          maxItems: 100
    metadata:
      type: object
      maxProperties: 10
      additionalProperties:
        type: string
        maxLength: 255
      description: 'Custom, application-specific metadata

# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/cognite/refs/heads/main/openapi/cognite-workflow-executions-api-openapi.yml