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

# Test an action step

> Execute a single action step in isolation. Uses stored sample data from prior steps as mock inputs. The response includes the step's input, output, and any console output. This is a synchronous call — the server polls until the step completes (up to 90 seconds).



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workflow/{flow_id}/steps/{step_name}/test
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/workflow/{flow_id}/steps/{step_name}/test:
    post:
      tags:
        - Workflows - Testing
      summary: Test an action step
      description: >-
        Execute a single action step in isolation. Uses stored sample data from
        prior steps as mock inputs. The response includes the step's input,
        output, and any console output. This is a synchronous call — the server
        polls until the step completes (up to 90 seconds).
      operationId: test_step_v1_workflow__flow_id__steps__step_name__test_post
      parameters:
        - name: flow_id
          in: path
          required: true
          schema:
            type: string
            title: Flow Id
        - name: step_name
          in: path
          required: true
          schema:
            type: string
            title: Step Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StepTestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - CustomHTTPBearer: []
components:
  schemas:
    StepTestResponse:
      properties:
        success:
          type: boolean
          title: Success
        input:
          anyOf:
            - {}
            - type: 'null'
          title: Input
        output:
          anyOf:
            - {}
            - type: 'null'
          title: Output
        standardError:
          type: string
          title: Standarderror
          default: ''
        standardOutput:
          type: string
          title: Standardoutput
          default: ''
      type: object
      required:
        - success
      title: StepTestResponse
      description: Result of testing a single step.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    CustomHTTPBearer:
      type: http
      scheme: bearer

````