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

# What turning a flow on will do

> How many records match now, what the first run does, what each run sends or writes, the last full test, problems, and the token turning it on needs.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/automations/flows/{flow_id}/enable-preview
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/automations/flows/{flow_id}/enable-preview:
    get:
      tags:
        - automations
      summary: What turning a flow on will do
      description: >-
        How many records match now, what the first run does, what each run sends
        or writes, the last full test, problems, and the token turning it on
        needs.
      operationId: automations_enable_preview
      parameters:
        - in: path
          name: flow_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnablePreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    EnablePreview:
      properties:
        can_enable:
          title: Can Enable
          type: boolean
        examples:
          description: Up to 5 of the records that match now, by name
          items:
            type: string
          title: Examples
          type: array
        first_run:
          title: First Run
          type: string
        has_run_before:
          default: false
          description: >-
            It has run since its last reset: turning it on needs a choice, mode
            continue (keep the history) or fresh
          title: Has Run Before
          type: boolean
        is_on:
          default: false
          description: >-
            Already on: enabling again only restarts its run history (mode
            fresh)
          title: Is On
          type: boolean
        last_full_test:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Last Full Test
        last_run_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When it last ran
          title: Last Run At
        matching_records:
          description: Records the audience matches now; -1 when not countable ahead
          title: Matching Records
          type: integer
        per_run:
          items:
            type: string
          title: Per Run
          type: array
        preview_token:
          title: Preview Token
          type: string
        problems:
          items:
            type: string
          title: Problems
          type: array
        runs_so_far:
          default: 0
          description: Runs since its last reset
          title: Runs So Far
          type: integer
        trigger:
          title: Trigger
          type: string
        warnings:
          description: >-
            Worth a look before turning it on, but not refused: e.g. a template
            subject whose merge tags a send leaves as typed
          items:
            type: string
          title: Warnings
          type: array
      required:
        - can_enable
        - trigger
        - matching_records
        - first_run
        - per_run
        - last_full_test
        - problems
        - preview_token
      title: EnablePreview
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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