> ## 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 Flow Builder block availability

> Returns which blocks, gated actions, start events, per-inbox gates and bot handoff targets the account can use in Flow Builder, by the feature flags, license, integrations and Captain credits behind each one. Administrator access is required.



## OpenAPI

````yaml /openapi/application.json get /api/v1/accounts/{account_id}/flow_builder/block_availability
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_availability:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    get:
      tags:
        - Flow Builder
      summary: Get Flow Builder block availability
      description: >-
        Returns which blocks, gated actions, start events, per-inbox gates and
        bot handoff targets the account can use in Flow Builder, by the feature
        flags, license, integrations and Captain credits behind each one.
        Administrator access is required.
      operationId: get-flow-builder-block-availability
      responses:
        '200':
          description: Block availability of the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_block_availability'
              example:
                blocks:
                  trigger: true
                  message: true
                  kanban: false
                  ai_router: true
                  code: true
                block_reasons:
                  kanban:
                    reason_code: license_inactive
                    required_license: kanban
                    message: The Kanban license is not active
                  macro:
                    reason_code: feature_disabled
                    required_feature: macros
                    message: The macros feature is not enabled for this account
                actions:
                  add_sla: false
                events:
                  social_comment_received: true
                  kanban_item_updated: true
                inboxes:
                  '7':
                    captain: true
                    csat: false
                    video_call: true
                calendar:
                  google_sync: false
                bot_handoff:
                  typebot: true
                  dialogflow: false
                account_actions:
                  contacts_get:
                    available: true
                    path_params:
                      - id
        '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
      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_availability:
      type: object
      description: >-
        Which Flow Builder blocks, actions and start events the account can use,
        by the feature flags, license, integrations and Captain credits behind
        each one.
      required:
        - blocks
        - block_reasons
        - actions
        - events
        - inboxes
        - calendar
        - bot_handoff
        - account_actions
      properties:
        blocks:
          type: object
          description: Block type to availability.
          additionalProperties:
            type: boolean
          example:
            trigger: true
            message: true
            kanban: false
            ai_router: true
            code: true
        block_reasons:
          type: object
          description: >-
            Only the blocks that are `false` in `blocks`, each with why.
            `reason_code` is `feature_disabled` (with `required_feature`),
            `license_inactive` (with `required_license`), `integration_disabled`
            (with `required_integration`), `credits_exhausted`,
            `edition_unavailable`, `translation_service_mismatch` or
            `runtime_unavailable`; `message` is the text a run of the block logs
            as its step error. When several gates fail, the first in that order
            of checks is given.
          additionalProperties:
            type: object
            required:
              - reason_code
              - message
            properties:
              reason_code:
                type: string
                enum:
                  - feature_disabled
                  - license_inactive
                  - integration_disabled
                  - credits_exhausted
                  - edition_unavailable
                  - translation_service_mismatch
                  - runtime_unavailable
              required_feature:
                type: string
              required_license:
                type: string
              required_integration:
                type: string
              message:
                type: string
          example:
            kanban:
              reason_code: license_inactive
              required_license: kanban
              message: The Kanban license is not active
            macro:
              reason_code: feature_disabled
              required_feature: macros
              message: The macros feature is not enabled for this account
        actions:
          type: object
          description: Gated actions of the Actions block to availability.
          additionalProperties:
            type: boolean
          example:
            add_sla: false
        events:
          type: object
          description: Start events behind a feature flag.
          properties:
            social_comment_received:
              type: boolean
              example: true
            kanban_item_updated:
              type: boolean
              example: true
        inboxes:
          type: object
          description: Inbox ID to the per-inbox gates of some blocks.
          additionalProperties:
            type: object
            properties:
              captain:
                type: boolean
                description: The inbox has a Captain assistant.
              csat:
                type: boolean
                description: CSAT surveys are enabled in the inbox.
              video_call:
                type: boolean
                description: The inbox supports video call links.
          example:
            '7':
              captain: true
              csat: false
              video_call: true
        calendar:
          type: object
          properties:
            google_sync:
              type: boolean
              description: Calendar events created by flows are synced to Google Calendar.
              example: false
        bot_handoff:
          type: object
          description: Bots the Bot handoff block can hand the conversation to.
          additionalProperties:
            type: boolean
          example:
            typebot: true
            dialogflow: false
        account_actions:
          type: object
          description: >-
            Read-only catalog actions allowed in flows, with their availability
            and required path parameters.
          additionalProperties:
            type: object
            properties:
              available:
                type: boolean
              path_params:
                type: array
                items:
                  type: string
          example:
            contacts_get:
              available: true
              path_params:
                - id
    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.