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

# List Workflows

> List workflows in your workspace.

Read only
Returns every workflow in your workspace, paginated and sorted by creation date (newest first). Each entry includes the workflow's `id`, `title`, `description`, current `status` (`draft`, `active`, `paused`, `completed` or `cancelled`), `fallback_variables`, `organization_id`, `is_deleted`, and the `createdAt` and `updatedAt` timestamps. The response carries the page in `data.data` and pagination in `data.meta`. Each entry also includes `lead_count`, the number of non-deleted leads attached to that workflow. If the count lookup cannot complete, it falls back to zero; inspect [List Workflow Leads](https://dialnexa.com/docs/api-reference/v1/workflow-leads/list.md) before treating a zero as confirmed empty enrollment. Use this to power a workflows overview dashboard, build automation that audits which sequences are running, or sync workflow state into your own data store.

## When to use this

* **Operations dashboards**: render a table of every workflow with status badges.
* **Compliance audits**: enumerate all active sequences so legal and compliance teams can confirm what outreach is currently running.
* **CI integration tests**: assert that newly created workflows show up in the list before chaining additional API calls.

To read one workflow by ID, call [Get Workflow Details](https://dialnexa.com/docs/api-reference/v1/workflows/get.md). The workflow endpoints do not return nodes, edges or node configuration; [Lead History](https://dialnexa.com/docs/api-reference/v1/workflow-leads/history.md) returns every node (with its configuration) and edge alongside one lead's path, and the DialNexa dashboard shows the full graph.

## Query parameters

| Parameter | Description |
| - | - |
| `page` | Page number, starting from 1. |
| `limit` | Results per page. Minimum `1`. Default: `10`. |
| `sortBy` | Field to sort by. One of `created_at`, `updated_at`, `createdAt`, `updatedAt`, `title`, `status`, `id`. Default: `created_at`. |
| `sortOrder` | Sort direction. One of `ASC`, `DESC`. Default: `DESC`. |

## Errors

* `400 Bad Request` is returned when `page` or `limit` is not a whole number of at least 1, or `sortBy` or `sortOrder` is not one of the listed values.
* `401 Unauthorized` is returned when the API key is missing or invalid.

## Related endpoints

* [Get Workflow Details](https://dialnexa.com/docs/api-reference/v1/workflows/get.md): fetch a single workflow's detail.
* [Update Workflow Status](https://dialnexa.com/docs/api-reference/v1/workflows/status.md): activate, pause, deactivate, or resume a workflow.
* [List Workflow Leads](https://dialnexa.com/docs/api-reference/v1/workflow-leads/list.md): inspect the leads enrolled in a workflow.
* [API pagination](https://dialnexa.com/docs/api-reference/api-fundamentals.md#paginate-dialnexa-list-responses): how DialNexa list endpoints paginate.


## OpenAPI

````yaml GET /v1/workflows
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/workflows:
    get:
      tags:
        - Workflows
      summary: List Workflows
      description: >-
        Returns workflows for the authenticated workspace in a data and meta
        pagination envelope.
      operationId: listWorkflows
      parameters:
        - name: page
          required: false
          in: query
          description: Page number, starting from 1.
          schema:
            minimum: 1
            default: 1
            type: number
        - name: limit
          required: false
          in: query
          description: Results per page.
          schema:
            minimum: 1
            default: 10
            type: number
        - name: sortBy
          required: false
          in: query
          description: Field to sort by.
          schema:
            default: created_at
            type: string
            enum:
              - created_at
              - updated_at
              - createdAt
              - updatedAt
              - title
              - status
              - id
        - name: sortOrder
          required: false
          in: query
          description: Sort direction.
          schema:
            default: DESC
            type: string
            enum:
              - ASC
              - DESC
      responses:
        '200':
          description: Workflows fetched successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                  - statusCode
                  - message
                  - data
                  - timestamp
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    type: boolean
                    enum:
                      - false
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Success
                  data:
                    type: object
                    properties:
                      statusCode:
                        type: number
                        example: 200
                      message:
                        type: string
                        example: Workflows fetched successfully
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: workflow_abc123
                            title:
                              type: string
                              maxLength: 100
                              example: Q3 Outreach Workflow
                            status:
                              type: string
                              enum:
                                - draft
                                - active
                                - paused
                                - completed
                                - cancelled
                              example: active
                            description:
                              type: string
                              nullable: true
                              example: Automated follow-up sequence
                            organization_id:
                              type: string
                              description: Owning organization (raw ID).
                              example: o14XKPP84rt22g
                            is_deleted:
                              type: boolean
                              example: false
                            fallback_variables:
                              type: array
                              nullable: true
                              items:
                                type: object
                                properties:
                                  key:
                                    type: string
                                  default_value:
                                    type: string
                              description: >-
                                Fallback values for lead variables missing from
                                an uploaded lead.
                            createdAt:
                              type: string
                              format: date-time
                            updatedAt:
                              type: string
                              format: date-time
                            lead_count:
                              type: integer
                              minimum: 0
                              description: >-
                                Number of non-deleted leads attached to this
                                workflow. A count lookup that cannot complete
                                uses zero.
                      meta:
                        type: object
                        properties:
                          totalItems:
                            type: number
                            example: 50
                          itemsPerPage:
                            example: 10
                            type: number
                          totalPages:
                            type: number
                            example: 3
                          currentPage:
                            example: 1
                            type: number
                  timestamp:
                    type: string
                    format: date-time
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    error: false
                    statusCode: 200
                    message: Success
                    data:
                      statusCode: 200
                      message: Workflows fetched successfully
                      data:
                        - id: workflow_abc123
                          title: Q3 Outreach Workflow
                          status: active
                          description: Automated follow-up sequence
                          organization_id: o14XKPP84rt22g
                          is_deleted: false
                          fallback_variables: []
                          createdAt: '2026-07-03T10:30:00.000Z'
                          updatedAt: '2026-07-03T10:45:00.000Z'
                          lead_count: 1
                      meta:
                        totalItems: 1
                        itemsPerPage: 10
                        totalPages: 1
                        currentPage: 1
                    timestamp: '2026-09-07T06:00:00.000Z'
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 400 Bad Request
                  value:
                    statusCode: 400
                    error: true
                    success: false
                    data: []
                    message: >-
                      sortBy must be one of the following values: created_at,
                      updated_at, createdAt, updatedAt, title, status, id
                    errors:
                      - >-
                        sortBy must be one of the following values: created_at,
                        updated_at, createdAt, updatedAt, title, status, id
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    statusCode: 401
                    error: true
                    success: false
                    data: []
                    message: Invalid API key
                    errors: []
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    statusCode: 500
                    error: true
                    success: false
                    data: []
                    message: 'Error fetching workflows: Internal server error'
                    errors: []
      security:
        - bearer: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error body on endpoints without response filtering.
      properties:
        statusCode:
          type: integer
          example: 404
        error:
          type: boolean
          enum:
            - true
        success:
          type: boolean
          enum:
            - false
        data:
          oneOf:
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable refusal code.
            - type: array
              items: {}
          description: >-
            For a coded refusal, an object with code and the details listed for
            that code. Otherwise an empty array.
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: Validation messages for a 400. Empty for other errors.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - statusCode
        - error
        - success
        - data
        - message
        - errors
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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