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

# List workflows

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns the app's workflows.

Archived workflows are left out unless you set `include_archived`. Use `limit` and `offset` to page through the results.

Passing `file_keys` switches this to a lookup by file name and ignores `limit` and `offset` entirely, returning every match. That is the only way to fetch more than 200 workflows in one call, and it is meant for resolving names you already hold rather than for paging.

The response omits each workflow's definition. Get a single workflow with [Get workflow](/api-reference/get-workflow) when you need the definition.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/workflows
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/workflows:
    get:
      summary: List workflows
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns the app's workflows.


        Archived workflows are left out unless you set `include_archived`. Use
        `limit` and `offset` to page through the results.


        Passing `file_keys` switches this to a lookup by file name and ignores
        `limit` and `offset` entirely, returning every match. That is the only
        way to fetch more than 200 workflows in one call, and it is meant for
        resolving names you already hold rather than for paging.


        The response omits each workflow's definition. Get a single workflow
        with [Get workflow](/api-reference/get-workflow) when you need the
        definition.


        <Warning>The response includes fields beyond the ones documented here.
        Don't rely on undocumented response fields, as they can change at any
        time.</Warning>
      operationId: list_workflows_api_apps__app_id__workflows_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose workflows you want to work with.
            title: App Id
          description: ID of the app whose workflows you want to work with.
          example: 6820f3a4e7b91d003c45a1f2
        - name: include_archived
          in: query
          required: false
          schema:
            type: boolean
            description: Include archived workflows in the results.
            default: false
            title: Include Archived
          description: Include archived workflows in the results.
          example: false
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: Most workflows to return.
            default: 30
            title: Limit
          description: Most workflows to return.
          example: 30
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: How many workflows to skip, for paging.
            default: 0
            title: Offset
          description: How many workflows to skip, for paging.
          example: 0
        - name: file_keys
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: >-
              Look workflows up by their file name instead of paging. Repeat the
              parameter for several. At most 50, each at most 256 characters and
              free of path separators.
            title: File Keys
          description: >-
            Look workflows up by their file name instead of paging. Repeat the
            parameter for several. At most 50, each at most 256 characters and
            free of path separators.
          example:
            - email-me-new-signups
      responses:
        '200':
          description: The app's workflows.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkflowListItem'
                title: Workflows
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app, the app does not exist, or the
            app still runs the older automations engine instead of workflows. A
            missing app and an app you cannot reach are deliberately the same
            answer.
        '422':
          description: >-
            `file_keys` has more than 50 entries, or one is longer than 256
            characters or contains a path separator.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 60 requests per minute. See
            [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    WorkflowListItem:
      properties:
        run_accounting_available:
          type: boolean
          title: Run Accounting Available
          description: >-
            Whether definition-level run counters and last-run fields are
            available. False for hooks: numeric counters are placeholders (0),
            last-run fields are null; use run history instead.
          default: true
        social_post:
          anyOf:
            - $ref: '#/components/schemas/WorkflowSocialPost'
            - type: 'null'
          description: >-
            Current post content for a social publishing workflow, or `null`
            when no linked post is available.
        id:
          type: string
          title: Id
          description: ID of the workflow.
          example: 68b1c0d4e7b91d003c45a1f2
        app_id:
          type: string
          title: App Id
          description: ID of the app the workflow belongs to.
          example: 6820f3a4e7b91d003c45a1f2
        file_key:
          anyOf:
            - type: string
            - type: 'null'
          title: File Key
          description: Name of the workflow's file in the app's code.
          example: email-me-new-signups
        name:
          type: string
          title: Name
          description: Name of the workflow.
          example: Email me new signups
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: What the workflow is for.
          example: Sends an email whenever a User record is created.
        status:
          type: string
          title: Status
          description: >-
            Whether the workflow runs: `active`, `inactive`, or `archived`. See
            [Workflow
            status](/developers/references/apps-api/sections/workflows#workflow-status)
            for what each means and how it changes.
          example: active
        status_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Reason
          description: >-
            Why Base44 changed the workflow's status on its own, as one of
            `consecutive_failures`, `end_condition_reached`,
            `migration_activation_failed`, `workflows_not_available`,
            `app_blocked`, `connector_disconnected`, or `ownership_transferred`.
            This is `null` when you changed the status yourself. See [Workflow
            status](/developers/references/apps-api/sections/workflows#workflow-status)
            for what each code means.
          example: consecutive_failures
        trigger:
          additionalProperties: true
          type: object
          title: Trigger
          description: >-
            What starts the workflow. The trigger sits under `config`, keyed by
            `trigger_type`.
          example:
            config:
              cron_expression: 0 9 * * *
              timezone: UTC
              trigger_type: scheduled
        total_runs:
          type: integer
          title: Total Runs
          description: >-
            Runs the workflow has started, ever. Unavailable when
            `run_accounting_available` is false; the placeholder is 0.
          default: 0
          example: 48
        consecutive_failures:
          type: integer
          title: Consecutive Failures
          description: >-
            Runs that have failed in a row. Unavailable when
            `run_accounting_available` is false; the placeholder is 0.
          default: 0
          example: 0
        last_run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Run At
          description: >-
            When the workflow last started running, as an ISO 8601 UTC
            timestamp. This is `null` before its first run or for hooks; use run
            history for hooks.
          example: '2026-08-25T09:12:44Z'
        last_run_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Run Status
          description: >-
            How the workflow's most recent run ended: `success`, `failed`, or
            `cancelled`. This is `null` before the first run or for hooks; use
            run history for hooks. See [Workflow
            status](/developers/references/apps-api/sections/workflows#workflow-status)
            for how this compares to a run's own `status`.
          example: success
        created_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created Date
          description: When the workflow was created, as an ISO 8601 UTC timestamp.
          example: '2026-07-02T11:04:00Z'
      type: object
      required:
        - id
        - app_id
        - name
        - status
      title: WorkflowListItem
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    WorkflowSocialPost:
      properties:
        platform:
          type: string
          title: Platform
          description: Social network the post will be published to.
          example: linkedin
        title:
          type: string
          title: Title
          description: Title of the scheduled post.
          example: Meet our new app
        body:
          type: string
          title: Body
          description: Current text of the scheduled post, before its hashtags.
          example: Our new app is ready to try.
        hashtags:
          items:
            type: string
          type: array
          title: Hashtags
          description: Hashtags appended when publishing the post.
          example:
            - launch
      type: object
      required:
        - platform
        - title
        - body
        - hashtags
      title: WorkflowSocialPost
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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