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

# Test Workflow

> Execute a workflow in a sandboxed test environment.

All outbound HTTP from ctx.http is intercepted — no real external calls.
Integration clients (Okta, Entra) are replaced with mock versions that
record calls without executing them. Returns the WorkflowResult and
captured log output.



## OpenAPI

````yaml POST /v1/workflows/{workflow_uuid}/test
openapi: 3.1.0
info:
  title: Calseta
  description: SOC data platform for security agent consumption
  version: dev
servers: []
security: []
paths:
  /v1/workflows/{workflow_uuid}/test:
    post:
      tags:
        - workflows
      summary: Test Workflow
      description: |-
        Execute a workflow in a sandboxed test environment.

        All outbound HTTP from ctx.http is intercepted — no real external calls.
        Integration clients (Okta, Entra) are replaced with mock versions that
        record calls without executing them. Returns the WorkflowResult and
        captured log output.
      operationId: test_workflow_v1_workflows__workflow_uuid__test_post
      parameters:
        - name: workflow_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workflow Uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowTestRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponse_WorkflowTestResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkflowTestRequest:
      properties:
        indicator_type:
          type: string
          title: Indicator Type
          default: ip
        indicator_value:
          type: string
          title: Indicator Value
          default: 1.2.3.4
        mock_http_responses:
          additionalProperties: true
          type: object
          title: Mock Http Responses
          default: {}
        live_http:
          type: boolean
          title: Live Http
          default: false
      type: object
      title: WorkflowTestRequest
      description: Request body for POST /v1/workflows/{uuid}/test.
    DataResponse_WorkflowTestResponse_:
      properties:
        data:
          $ref: '#/components/schemas/WorkflowTestResponse'
        meta:
          additionalProperties: true
          type: object
          title: Meta
      type: object
      required:
        - data
      title: DataResponse[WorkflowTestResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowTestResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        log_output:
          type: string
          title: Log Output
        duration_ms:
          type: integer
          title: Duration Ms
        result_data:
          additionalProperties: true
          type: object
          title: Result Data
      type: object
      required:
        - success
        - message
        - log_output
        - duration_ms
        - result_data
      title: WorkflowTestResponse
      description: Response for POST /v1/workflows/{uuid}/test.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````