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

# Dry Run Automation

> Dry-run a contact through the automation's published graph.

Executes the SAME node-dispatch logic as the real executor, but with
side-effect adapters STUBBED.  No enrollment is persisted; no email is
sent; no tag is applied; no webhook fires.

Branch nodes still evaluate real ``is_member`` so routing is realistic.
Wait nodes return the computed delay without sleeping.

Returns a step trace ordered by execution order.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/teams/{team_id}/hubs/{hub_id}/automations/{automation_id}/test
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/automations/{automation_id}/test:
    post:
      tags:
        - automations
      summary: Dry Run Automation
      description: |-
        Dry-run a contact through the automation's published graph.

        Executes the SAME node-dispatch logic as the real executor, but with
        side-effect adapters STUBBED.  No enrollment is persisted; no email is
        sent; no tag is applied; no webhook fires.

        Branch nodes still evaluate real ``is_member`` so routing is realistic.
        Wait nodes return the computed delay without sleeping.

        Returns a step trace ordered by execution order.
      operationId: >-
        automations.post_automations_post_teams_by_team_id_hubs_by_hub_id_automations_by_automation_id_test
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: automation_id
          required: true
          schema:
            title: Automation Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/DryRunBody'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/DryRunResponse'
          description: Successful Response
        '400':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Bad request
        '401':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not authenticated
        '403':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Forbidden
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not found
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Status conflict
        '415':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Unsupported media type (requires application/vnd.api+json)
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Graph validation error
      security:
        - HTTPBearer: []
components:
  schemas:
    DryRunBody:
      additionalProperties: false
      description: Body for POST /automations/{id}/test — dry-run executor.
      properties:
        team_contact_id:
          title: Team Contact Id
          type: string
      required:
        - team_contact_id
      title: DryRunBody
      type: object
    DryRunResponse:
      additionalProperties: false
      description: Response envelope for the dry-run endpoint.
      properties:
        meta:
          additionalProperties: true
          title: Meta
          type: object
        trace:
          items:
            $ref: '#/components/schemas/DryRunStepTrace'
          title: Trace
          type: array
      required:
        - meta
        - trace
      title: DryRunResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    DryRunStepTrace:
      additionalProperties: false
      description: One recorded step from a dry-run execution.
      properties:
        node_id:
          title: Node Id
          type: string
        node_type:
          title: Node Type
          type: string
        result:
          anyOf:
            - type: string
            - type: 'null'
          title: Result
        skip_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Skip Reason
        skipped:
          default: false
          title: Skipped
          type: boolean
        would_add_tag:
          anyOf:
            - type: string
            - type: 'null'
          title: Would Add Tag
        would_enroll_in_sequence:
          anyOf:
            - type: string
            - type: 'null'
          title: Would Enroll In Sequence
        would_fire_webhook:
          anyOf:
            - type: string
            - type: 'null'
          title: Would Fire Webhook
        would_remove_tag:
          anyOf:
            - type: string
            - type: 'null'
          title: Would Remove Tag
        would_send_email:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Would Send Email
      required:
        - node_id
        - node_type
      title: DryRunStepTrace
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````