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

# Get a workflow

> Returns one workflow including its designer steps, which the list endpoint omits because a
step array per row is expensive on a full page.
            
A deleted workflow still resolves here, with deleted set to true plus deletedAt
and deletedBy, so that the workflowId on an old execution never points at
nothing. Each step's configuration is opaque, connector-defined and outside the v1
compatibility guarantee - it can change shape without a new API version.



## OpenAPI

````yaml /developers/api-reference/openapi.json get /v1/workflows/{workflowId}
openapi: 3.0.0
info:
  title: Engini API
  version: v1
  description: The Engini public API.
servers:
  - url: https://api.engini.io
security:
  - Bearer: []
  - ApiKey: []
tags:
  - name: Auth
    description: Identify the caller a Developer API request is authenticated as.
  - name: On-prem agents
    description: >-
      Provision and manage agents that run Engini tasks inside a customer's
      network.
  - name: Applications
    description: >-
      Discover the applications (toolkits) available in Engini and their
      connection requirements.
  - name: Tools
    description: Browse and execute the tools exposed by Engini applications.
  - name: Toolsets
    description: Manage toolsets - named groupings of connections and tools.
  - name: McpServers
    description: >-
      Inspect and maintain MCP servers - the account-wide endpoints that expose
      Engini tools and workflows over the Model Context Protocol. Distinct from
      the MCPClient connection kind, which is Engini consuming a third-party MCP
      server.
  - name: Connections
    description: >-
      Manage connections to applications, including OAuth sign-in and
      default-connection selection.
  - name: Folders
    description: >-
      List the folders that organize workflows in each workspace and
      environment.
  - name: Workflows
    description: >-
      List workflows, and build them from a plan: search the catalog, read
      schemas and options, compile, create and update.
  - name: Executions
    description: >-
      Read execution history for workflows, table automations and app business
      rules, including per-step logs and recorded payloads.
  - name: Triggers
    description: >-
      Create triggers that fire when something changes in a connected app, and
      manage the destinations their events are delivered to.
paths:
  /v1/workflows/{workflowId}:
    get:
      tags:
        - Workflows
      summary: Get a workflow
      description: >-
        Returns one workflow including its designer steps, which the list
        endpoint omits because a

        step array per row is expensive on a full page.
                    
        A deleted workflow still resolves here, with deleted set to true plus
        deletedAt

        and deletedBy, so that the workflowId on an old execution never points
        at

        nothing. Each step's configuration is opaque, connector-defined and
        outside the v1

        compatibility guarantee - it can change shape without a new API version.
      operationId: Workflows_GetWorkflow
      parameters:
        - name: workflowId
          in: path
          required: true
          description: Identifier of the workflow to retrieve.
          schema:
            type: integer
            format: int32
          x-position: 1
      responses:
        '200':
          description: The workflow with its steps.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowDetailPublicDTO'
        '400':
          description: Bad request - malformed body or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid bearer token or API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - the caller lacks access to the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - the resource does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too many requests - rate limit exceeded.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error - an unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - Bearer: []
        - ApiKey: []
      x-codeSamples:
        - lang: python
          label: Python
          source: |-
            from engini import Engini

            client = Engini()  # reads ENGINI_API_KEY

            wf = client.workflows.get(1234)
            print(wf.name, wf.enabled, wf.steps_count)
        - lang: typescript
          label: TypeScript
          source: |-
            import { Engini } from "@engini/sdk";

            const client = new Engini(); // reads ENGINI_API_KEY

            const wf = await client.workflows.get(1234);
            console.log(wf.name, wf.enabled, wf.stepsCount);
        - lang: bash
          label: CLI
          source: engini workflows get 1234 --json
components:
  schemas:
    WorkflowDetailPublicDTO:
      allOf:
        - $ref: '#/components/schemas/WorkflowPublicDTO'
        - type: object
          description: >-
            Public shape of a workflow including its designer steps, as returned
            by

            GET /v1/workflows/{workflowId}. The list endpoint returns
            WorkflowPublicDTO

            without Steps, because a step array per row is ruinous on a 100-row
            page.
          additionalProperties: false
          properties:
            steps:
              type: array
              description: The workflow's designer steps, ordered by sort order.
              items:
                $ref: '#/components/schemas/WorkflowStepPublicDTO'
            webhookUrl:
              type: string
              description: >-
                The address an external system sends to in order to start this
                workflow, when its trigger is a

                webhook that Engini hands out (the URL the designer shows on the
                trigger). Omitted for every other

                trigger, and for a deleted workflow: a polling or app-subscribed
                trigger has no address to send to.

                The URL may end in a relative path with {name} placeholders,
                which the sender fills in; the

                filled values reach the workflow under urlparameters. Calls are
                answered 404 while the workflow is turned off -

                a workflow created through the API is always created off, so
                turn it on before sending to it. The

                token inside the URL is what authorizes a call to it, so treat
                the value like a credential: do not

                log it or share it beyond the system that sends to it.
              nullable: true
    ErrorResponse:
      type: object
      description: >-
        Unified machine-readable error envelope returned by every non-200
        Developer API response.
      additionalProperties: false
      required:
        - errorCode
        - message
        - requestId
        - timestamp
      properties:
        errorCode:
          type: string
          description: Machine-readable error code identifying the failure.
        message:
          type: string
          description: Human-readable error message.
        requestId:
          type: string
          description: Identifier of the request, for support/correlation.
        timestamp:
          type: string
          description: Timestamp when the error occurred (ISO 8601).
        details:
          type: array
          description: Per-field validation details, when applicable.
          nullable: true
          items:
            $ref: '#/components/schemas/ErrorDetail'
    WorkflowPublicDTO:
      type: object
      description: Public shape of a workflow, as returned by GET /v1/workflows.
      additionalProperties: false
      required:
        - workflowId
        - name
        - type
        - enabled
        - deleted
        - blocked
        - consecutiveFailures
        - maxConsecutiveFailures
        - createdAt
        - createdBy
        - historyRetentionDays
        - workflowConcurrency
        - applyConcurrencyLimitOnWaitingWorkflow
        - stepsCount
        - connections
      properties:
        workflowId:
          type: integer
          description: Identifier of the workflow.
          format: int32
        workspace:
          description: >-
            The workspace the workflow belongs to; omitted for a row that
            predates workspaces.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/WorkspaceRefPublicDTO'
        environment:
          description: >-
            The environment (of Workspace) the workflow belongs to; omitted for
            a row that predates workspaces.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/EnvironmentRefPublicDTO'
        slug:
          type: string
          description: >-
            Canonical slug of the workflow. This is the identifier the /v1/tools
            surface addresses a

            workflow-backed tool by, so it is what joins a tool back to its
            workflow. Omitted when the

            workflow has no slug (only workflow-backed MCP tools are assigned
            one).
          nullable: true
        name:
          type: string
          description: Display name of the workflow.
        folderName:
          type: string
          description: >-
            Name of the folder the workflow lives in; omitted when it is not in
            a folder.
          nullable: true
        folderId:
          type: integer
          description: >-
            Identifier of the folder the workflow lives in (see GET
            /v1/folders); omitted when it is not

            in a folder. Prefer it over FolderName for joins: names are unique
            only within

            one workspace + environment.
          format: int32
          nullable: true
        type:
          type: string
          description: >-
            Trigger type of the workflow. A type this API version does not
            publish is returned in the

            escape form "unknown:{id}" rather than being dropped, so a workflow
            created by a newer

            release is still identifiable rather than appearing to have no
            trigger.
        enabled:
          type: boolean
          description: Whether the workflow is enabled and will run when triggered.
        deleted:
          type: boolean
          description: >-
            Whether the workflow has been deleted. Deleted workflows are
            excluded from

            GET /v1/workflows by default and returned when the caller passes
            deleted=true.
        deletedAt:
          type: string
          description: >-
            When the workflow was deleted (UTC). Omitted entirely - not null -
            for a workflow that has

            not been deleted.
          format: date-time
          nullable: true
        deletedBy:
          description: >-
            The account user who deleted the workflow. Omitted entirely for a
            workflow that has not been

            deleted, and for a system delete.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/AccountUserRefPublicDTO'
        blocked:
          type: boolean
          description: Whether the workflow is blocked from running.
        blockReason:
          type: string
          description: >-
            Why the workflow is blocked: maxConsecutiveFailures, creditLimit or
            manualBlock.

            Omitted when the workflow is not blocked - never returned as "none".
          nullable: true
        blockedDate:
          type: string
          description: When the workflow was blocked (UTC); omitted when it is not blocked.
          format: date-time
          nullable: true
        consecutiveFailures:
          type: integer
          description: >-
            Number of consecutive failed runs so far. Together with
            MaxConsecutiveFailures

            this lets an integrator alert before a workflow is blocked rather
            than after.
          format: int32
        maxConsecutiveFailures:
          type: integer
          description: Number of consecutive failures after which the workflow is blocked.
          format: int32
        createdAt:
          type: string
          description: When the workflow was created (UTC).
          format: date-time
        createdBy:
          description: The account user who created the workflow.
          oneOf:
            - $ref: '#/components/schemas/AccountUserRefPublicDTO'
        updatedAt:
          type: string
          description: >-
            When the workflow was last updated (UTC); omitted when it has never
            been updated. Note that

            PUT /v1/workflows/{workflowId}/enabled counts as an update and moves
            this timestamp.
          format: date-time
          nullable: true
        updatedBy:
          description: >-
            The account user who last updated the workflow; omitted when the
            workflow has never been

            updated or the stored row has no valid updater.
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/AccountUserRefPublicDTO'
        lastRunAt:
          type: string
          description: When the workflow last ran (UTC); omitted when it has never run.
          format: date-time
          nullable: true
        nextRun:
          type: string
          description: >-
            Next scheduled run (UTC); omitted for workflows that are not
            scheduled.
          format: date-time
          nullable: true
        historyRetentionDays:
          type: integer
          description: Number of days execution history is retained for this workflow.
          format: int32
        workflowConcurrency:
          type: integer
          description: >-
            Maximum number of executions of this workflow allowed to run at the
            same time.

            Read together with ApplyConcurrencyLimitOnWaitingWorkflow, which
            changes what

            this limit counts.
          format: int32
        applyConcurrencyLimitOnWaitingWorkflow:
          type: boolean
          description: >-
            Whether executions that are waiting (for example on a delay) count
            towards

            WorkflowConcurrency.
        description:
          type: string
          description: >-
            Description of the workflow; omitted when not set. Read-only in v1 -
            it cannot be changed

            through the public API.
          nullable: true
        stepsCount:
          type: integer
          description: Number of designer steps in the workflow.
          format: int32
        connections:
          type: array
          description: Connections used by the workflow's steps, deduplicated.
          items:
            $ref: '#/components/schemas/WorkflowConnectionPublicDTO'
    WorkflowStepPublicDTO:
      type: object
      description: >-
        A single designer step of a workflow, as returned by GET
        /v1/workflows/{workflowId}.

        Steps are addressed by StepNo everywhere in the public API; no internal

        activity identifier is part of the contract.
      additionalProperties: false
      required:
        - stepNo
        - parentStepNo
        - name
        - jumpsTo
        - isSkipped
        - sortOrder
      properties:
        stepNo:
          type: integer
          description: >-
            Step number within the workflow. Unique per workflow and stable
            across runs.
          format: int32
        parentStepNo:
          type: integer
          description: >-
            Step number of the enclosing step (0 when the step is at the top
            level).
          format: int32
        name:
          type: string
          description: Display name of the step.
        description:
          type: string
          description: Free-text description of the step; omitted when not set.
          nullable: true
        activityName:
          type: string
          description: >-
            Name of the underlying activity the step runs; omitted when
            unresolvable.
          nullable: true
        applicationSlug:
          type: string
          description: >-
            Slug of the application the step's activity belongs to. Omitted when
            the application is

            outside the public catalog, which is the only case in which it has
            no slug.
          nullable: true
        applicationName:
          type: string
          description: Display name of the application the step's activity belongs to.
          nullable: true
        connectionId:
          type: integer
          description: >-
            Identifier of the connection the step uses; omitted when the step
            uses none.
          format: int32
          nullable: true
        connectionName:
          type: string
          description: >-
            Display name of the connection the step uses; omitted when the step
            uses none.
          nullable: true
        jumpsTo:
          type: array
          description: >-
            Step numbers this step can branch to. Holds step numbers, never
            internal jump identifiers.
          items:
            type: integer
            format: int32
        isSkipped:
          type: boolean
          description: Whether the step is configured to be skipped during execution.
        sortOrder:
          type: integer
          description: >-
            Designer sort order of the step. Provided so the array ordering is
            reproducible.
          format: int32
        configuration:
          description: >-
            Raw step configuration, as authored in the designer. Opaque and
            connector-defined: its shape

            is decided by each connector and is explicitly OUTSIDE the v1
            compatibility guarantee - it can

            change without a new API version. Omitted when the step has no
            stored configuration. When the

            stored configuration is not valid JSON it is returned verbatim as a
            JSON string.
          nullable: true
    ErrorDetail:
      type: object
      description: A single field-level error detail within an ErrorResponse.
      additionalProperties: false
      required:
        - field
        - issue
      properties:
        field:
          type: string
          description: Name of the field the issue relates to.
        issue:
          type: string
          description: Description of the issue with the field.
    WorkspaceRefPublicDTO:
      type: object
      description: >-
        The workspace a /v1 item belongs to, as it appears in the item's
        workspace member.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: string
          description: Identifier of the workspace.
          format: uuid
        name:
          type: string
          description: >-
            Display name of the workspace; null for an API key, for a workspace
            the caller cannot open, and when the name could not be read.
          nullable: true
    EnvironmentRefPublicDTO:
      type: object
      description: >-
        The environment a /v1 item belongs to, as it appears in the item's
        environment member. Same rules as

        WorkspaceRefPublicDTO: Name and Type are null whenever the name is.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: string
          description: Identifier of the environment.
          format: uuid
        name:
          type: string
          description: >-
            Display name of the environment; null when the caller cannot be
            shown it.
          nullable: true
        type:
          type: string
          description: >-
            Kind of environment: Production, Staging or Development; null when
            the name is.
          nullable: true
    AccountUserRefPublicDTO:
      type: object
      description: >-
        Reference to an account user. When present, emitted as an object rather
        than a bare identifier,

        so a consumer never has to make a second call to turn an id into
        something displayable.
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: integer
          description: Identifier of the account user.
          format: int32
        name:
          type: string
          description: >-
            Display name of the account user, or null when the name could not be
            resolved (for

            example while the user directory is unavailable). The object itself
            is never omitted.
          nullable: true
    WorkflowConnectionPublicDTO:
      type: object
      description: A connection used by one or more of a workflow's steps.
      additionalProperties: false
      required:
        - connectionId
        - connectionName
        - applicationName
      properties:
        connectionId:
          type: integer
          description: Identifier of the connection.
          format: int32
        connectionName:
          type: string
          description: Display name of the connection.
        applicationSlug:
          type: string
          description: >-
            Slug of the connection's application. Omitted when the application
            is outside the public

            catalog, which is the only case in which it has no slug - it never
            falls back to an

            internal application identifier.
          nullable: true
        applicationName:
          type: string
          description: Display name of the connection's application.
  securitySchemes:
    Bearer:
      type: http
      description: Enter your JWT token
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: >-
        Opaque Developer API key (prefix `eng_`). Authenticates as the key's
        owner and resolves the account automatically.
      name: x-api-key
      in: header

````

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