> ## 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.

# Get Workflow Details

> Fetch one workflow by ID.

Read only
Returns the stored record for a single workflow: its `id`, `title`, `description`, current `status` (`draft`, `active`, `paused`, `completed` or `cancelled`), `fallback_variables`, `organization_id`, `is_deleted`, and the `createdAt` and `updatedAt` timestamps. It does not return the node and edge definitions, counts of them, or the number of enrolled leads. Open the workflow in the dashboard when you need the full graph structure, and use [List Workflow Leads](https://dialnexa.com/docs/api-reference/v1/workflow-leads/list.md) for the leads.

## When to use this

* **Workflow dashboards**: render the workflow's header summary (title, status) before lazy-loading the graph.
* **Pre-update checks**: confirm the workflow status is `draft` or `paused` before applying structural edits in the dashboard.
* **Reporting**: combine this record with [List Workflow Leads](https://dialnexa.com/docs/api-reference/v1/workflow-leads/list.md) for lead counts and compare them with [Call History](https://dialnexa.com/docs/monitoring/call-history.md).

To enumerate every workflow on the workspace, use [List Workflows](https://dialnexa.com/docs/api-reference/v1/workflows/list.md).

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The workflow ID, for example `workflow_m3v7zb9rk2px4q`. |

## Errors

* `404 Not Found` is returned when the workflow does not exist in this workspace or has been deleted. A workflow that belongs to another workspace is reported the same way.
* `401 Unauthorized` is returned when the API key is missing or invalid.

## Related endpoints

* [Update Workflow Status](https://dialnexa.com/docs/api-reference/v1/workflows/status.md): activate, pause, deactivate, or resume the workflow.
* [List Workflow Leads](https://dialnexa.com/docs/api-reference/v1/workflow-leads/list.md): see which leads are enrolled.


## OpenAPI

````yaml GET /v1/workflows/{id}
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/{id}:
    get:
      tags:
        - Workflows
      summary: Get Workflow Details
      description: Returns one workflow and its current lifecycle state.
      operationId: getWorkflow
      parameters:
        - name: id
          required: true
          in: path
          description: Workflow ID
          schema:
            type: string
            example: workflow_abc123
      responses:
        '200':
          description: Workflow 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: Workflow fetched successfully
                      data:
                        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
                  timestamp:
                    type: string
                    format: date-time
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    error: false
                    statusCode: 200
                    message: Success
                    data:
                      statusCode: 200
                      message: Workflow 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'
                    timestamp: '2026-09-07T06:00:00.000Z'
        '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: []
        '404':
          description: Workflow not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    statusCode: 404
                    error: true
                    success: false
                    data: []
                    message: Workflow with ID Hk3pW9zQe1LmRt not found
                    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: 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.