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

# List Workflows

> List workflows



## OpenAPI

````yaml /deasy-openapi.yml post /workflows/list
openapi: 3.1.0
info:
  title: Collibra Unstructured API
  description: >
    REST API for Collibra Unstructured.


    ## Authentication


    Every endpoint accepts either HTTP Basic credentials, or a bearer token sent
    together with the

    `X-User-ID` header identifying the user the call runs as.


    ## Base URL


    Your Unstructured deployment, for example
    `https://unstructured.your-company.com/rest/unstructured`.
  version: 0.1.14
servers:
  - url: /rest/unstructured
security:
  - BasicAuth: []
  - BearerAuth: []
    UserIdAuth: []
tags:
  - name: Core
    description: Endpoints for core functionality
  - name: Data
    description: Endpoints for source data
  - name: Metadata
    description: Endpoints for metadata management
  - name: Tags
    description: Endpoints for tag management
  - name: Taxonomy
    description: Endpoints for taxonomy management
  - name: Dataslice
    description: Endpoints for dataslice management
  - name: Progress Tracker
    description: Endpoints for tracking progress
  - name: Classification
    description: Endpoints for classification
  - name: Ingestion
    description: Endpoints for document ingestion
  - name: Workflows
    description: Endpoints for workflow management
  - name: Deduplication
    description: Endpoints for deduplication
paths:
  /workflows/list:
    post:
      tags:
        - Workflows
      summary: List Workflows
      description: List workflows
      operationId: list_workflows_workflows_list_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListWorkflowRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkflowResponse'
        '403':
          description: Missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
      x-codeSamples:
        - lang: Python
          source: |
            # pip install deasy-sdk
            import os
            from deasy import DeasyClient

            client = DeasyClient(
                base_url=os.environ["UNSTRUCTURED_CLIENT_BASE_URL"],
                username=os.environ["UNSTRUCTURED_USERNAME"],
                password=os.environ["UNSTRUCTURED_PASSWORD"],
            )

            response = client.workflows.list()
            print(response.workflows)
components:
  schemas:
    ListWorkflowRequest:
      properties:
        workflow_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Workflow Ids
      type: object
      title: ListWorkflowRequest
    ListWorkflowResponse:
      properties:
        workflows:
          items:
            $ref: '#/components/schemas/WorkflowPydantic-Output'
          type: array
          title: Workflows
      type: object
      required:
        - workflows
      title: ListWorkflowResponse
    HTTPError:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowPydantic-Output:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          default: ''
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        raw_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Raw User Id
        raw_env_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Raw Env Id
        stages:
          items:
            $ref: '#/components/schemas/WorkflowStage'
          type: array
          title: Stages
        cadence:
          type: string
          title: Cadence
        timezone:
          type: string
          title: Timezone
          default: US/Eastern
        version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version
        latest_run:
          anyOf:
            - $ref: '#/components/schemas/WorkflowRunPydantic-Output'
            - type: 'null'
      type: object
      required:
        - name
        - stages
        - cadence
      title: WorkflowPydantic
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WorkflowStage:
      properties:
        jobs:
          items:
            $ref: '#/components/schemas/WorkflowJob'
          type: array
          title: Jobs
      type: object
      required:
        - jobs
      title: WorkflowStage
    WorkflowRunPydantic-Output:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        workflow_id:
          type: string
          title: Workflow Id
        user_id:
          type: string
          title: User Id
        status:
          $ref: '#/components/schemas/WorkflowStatus'
          default: pending
        triggered_by:
          type: string
          title: Triggered By
        errors:
          items:
            $ref: '#/components/schemas/WorkflowError-Output'
          type: array
          title: Errors
          default: []
        job_states:
          items:
            $ref: '#/components/schemas/WorkflowRunStageState'
          type: array
          title: Job States
        file_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: File Count
        files_processed:
          type: integer
          title: Files Processed
          default: 0
        files_failed:
          type: integer
          title: Files Failed
          default: 0
        connectors_used:
          items:
            $ref: '#/components/schemas/WorkflowRunConnector'
          type: array
          title: Connectors Used
          default: []
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
        jobs_detail:
          anyOf:
            - items:
                $ref: '#/components/schemas/WorkflowRunJobDetail'
              type: array
            - type: 'null'
          title: Jobs Detail
      type: object
      required:
        - workflow_id
        - user_id
        - triggered_by
        - job_states
      title: WorkflowRunPydantic
      description: One row in the workflow_runs table — one dispatch's lifetime.
    WorkflowJob:
      properties:
        endpoint:
          type: string
          title: Endpoint
        endpoint_request_body:
          additionalProperties: true
          type: object
          title: Endpoint Request Body
      type: object
      required:
        - endpoint
        - endpoint_request_body
      title: WorkflowJob
      description: One HTTP-call job in a workflow stage.
    WorkflowStatus:
      type: string
      enum:
        - pending
        - running
        - completed
        - failed
      title: WorkflowStatus
    WorkflowError-Output:
      properties:
        step:
          $ref: '#/components/schemas/WorkflowStep'
        severity:
          $ref: '#/components/schemas/WorkflowErrorSeverity'
          default: error
        stage_idx:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stage Idx
        job_idx:
          anyOf:
            - type: integer
            - type: 'null'
          title: Job Idx
        message:
          type: string
          title: Message
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        operation:
          anyOf:
            - type: string
            - type: 'null'
          title: Operation
        entity:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity
        timestamp:
          anyOf:
            - type: string
            - type: 'null'
          title: Timestamp
      type: object
      required:
        - step
        - message
      title: WorkflowError
      description: Typed orchestration error stored on workflow_runs.errors.
    WorkflowRunStageState:
      properties:
        jobs:
          items:
            $ref: '#/components/schemas/WorkflowRunJobState'
          type: array
          title: Jobs
        status:
          $ref: '#/components/schemas/WorkflowStatus'
      type: object
      required:
        - jobs
        - status
      title: WorkflowRunStageState
    WorkflowRunConnector:
      properties:
        vdb_profile_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Vdb Profile Name
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        data_source_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Source Id
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
      type: object
      title: WorkflowRunConnector
      description: >-
        A data connector touched by a run — captured at dispatch from the

        WorkflowConfiguration. Stored on workflow_runs.connectors_used (JSONB)

        so the runs UI can render connector chips without re-resolving the

        workflow definition.


        `data_source_id` identifies the connector. `display_name` is its name
        when

        the run was recorded, so the run's history keeps the name it ran under

        after a rename. `vdb_profile_name` is set only on runs recorded before

        workflow steps named their connector by id.
    WorkflowRunJobDetail:
      properties:
        tracker_id:
          type: string
          title: Tracker Id
        task_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Type
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        start_time:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Time
        end_time:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Time
        data_connector_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Connector Name
        total_files:
          type: integer
          title: Total Files
          default: 0
        completed_files:
          type: integer
          title: Completed Files
          default: 0
        failed_files:
          type: integer
          title: Failed Files
          default: 0
        errors:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Errors
          default: []
      type: object
      required:
        - tracker_id
      title: WorkflowRunJobDetail
      description: >-
        Per-job enrichment surfaced on the run detail endpoint only.


        Pulled from `progresstrackers` + `progress_tracker_errors` at read time
        so

        list endpoints stay light. Mirrors the canonical run job state by

        tracker_id and adds wall-clock timing, per-file progress, and the actual

        error rows that fired during this job's execution. The list endpoints

        leave `WorkflowRunPydantic.jobs_detail` null; only `GET /runs/{id}`

        populates it.
    WorkflowStep:
      type: string
      enum:
        - workflow_lookup
        - user_resolution
        - auth_resolution
        - dispatch
        - run_persistence
        - stage_transition
        - job_http_call
        - tracker_poll
        - unknown
      title: WorkflowStep
      description: Orchestration step a failure was attributed to.
    WorkflowErrorSeverity:
      type: string
      enum:
        - error
        - warning
      title: WorkflowErrorSeverity
    WorkflowRunJobState:
      properties:
        status:
          $ref: '#/components/schemas/WorkflowStatus'
        progress_tracker_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Progress Tracker Id
      type: object
      required:
        - status
      title: WorkflowRunJobState
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
    UserIdAuth:
      type: apiKey
      in: header
      name: X-User-ID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.