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

# Get the Flow Builder block reference

> Returns the graph rules and, for each block type, what it does and its outputs. Pass `types` to also get the required and optional settings of those blocks and an example of their `data`. Administrator access is required.



## OpenAPI

````yaml /openapi/application.json get /api/v1/accounts/{account_id}/flow_builder/block_reference
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/flow_builder/block_reference:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    get:
      tags:
        - Flow Builder
      summary: Get the Flow Builder block reference
      description: >-
        Returns the graph rules and, for each block type, what it does and its
        outputs. Pass `types` to also get the required and optional settings of
        those blocks and an example of their `data`. Administrator access is
        required.
      operationId: get-flow-builder-block-reference
      parameters:
        - name: types
          in: query
          required: false
          description: Comma-separated block types to get in full.
          schema:
            type: string
          example: trigger,message
      responses:
        '200':
          description: Graph rules and blocks of the reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_block_reference'
              example:
                rules:
                  - Sample text
                blocks:
                  source: api
                  segment: enterprise
        '401':
          description: >-
            Unauthenticated, not a member of the account, or not an account
            administrator (Flow Builder is administrator-only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: You are not authorized to do this action
        '403':
          description: The Flow Builder feature is not enabled for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: Flow Builder is not enabled for this account
        '404':
          description: A requested block type does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: 'Unknown block types: reply'
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    flow_builder_block_reference:
      type: object
      description: >-
        How to build a Flow Builder graph. Without `types` each block has only
        `summary` and `outputs`.
      required:
        - rules
        - blocks
      properties:
        rules:
          type: array
          description: Rules the validator enforces on the whole graph.
          items:
            type: string
        blocks:
          type: object
          description: Block type to its reference.
          additionalProperties:
            type: object
            required:
              - summary
              - outputs
            properties:
              summary:
                type: string
                description: What the block does.
              outputs:
                type: object
                description: >-
                  Each `sourceHandle` of the block and when the flow leaves by
                  it.
                additionalProperties:
                  type: string
              required:
                type: object
                description: Settings the validator requires in `data`, with their meaning.
                additionalProperties:
                  type: string
              optional:
                type: object
                description: >-
                  Other settings the block reads from `data`, with their
                  meaning.
                additionalProperties:
                  type: string
              action_names:
                type: object
                description: >-
                  Only on `action` and `account_action`, each action the block
                  can run and the parameters it takes.
                additionalProperties:
                  type: string
              example:
                type: object
                description: A minimal `data` the validator accepts.
                additionalProperties: true
    flow_builder_error:
      type: object
      description: >-
        Error returned by Flow Builder endpoints when the feature is disabled,
        the user is not authorized or the resource is missing.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: Flow Builder is not enabled for this account
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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