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

# Get any flow as a spec, including one built in the editor

> The saved spec and version: start every edit from it.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/automations/flows/{flow_id}/spec
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}/spec:
    get:
      tags:
        - automations
      summary: Get any flow as a spec, including one built in the editor
      description: 'The saved spec and version: start every edit from it.'
      operationId: automations_get_flow_spec
      parameters:
        - in: path
          name: flow_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowSpec'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    FlowSpec:
      properties:
        edited_in_editor:
          description: >-
            The flow was built, or last changed, in the editor: this spec is
            read from its graph
          title: Edited In Editor
          type: boolean
        editor_url:
          description: The flow in Agent Studio
          title: Editor Url
          type: string
        enabled:
          title: Enabled
          type: boolean
        flow_id:
          title: Flow Id
          type: string
        graph_hash:
          description: >-
            Send it back with PUT: a change made in the editor after you read
            this is refused
          title: Graph Hash
          type: string
        name:
          title: Name
          type: string
        read_only:
          description: >-
            Why this flow can't be changed through the API (a step whose
            component the API doesn't offer); empty: it can
          items:
            additionalProperties: true
            type: object
          title: Read Only
          type: array
        spec:
          additionalProperties: true
          title: Spec
          type: object
        tested_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tested Version
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When the flow was last saved, here or in the editor
          title: Updated At
        version:
          title: Version
          type: integer
      required:
        - flow_id
        - name
        - version
        - tested_version
        - enabled
        - spec
        - edited_in_editor
        - graph_hash
        - editor_url
      title: FlowSpec
      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.