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

# List Flow Templates

> List available workflow templates.

Templates are pre-configured workflow examples that users can browse
to find starting points for their own workflows. Templates are global
(not per-company).

Supports filtering by:
- digaTriggerType: Filter by Diga trigger type (call_finished, function_call)
- usesMakeCallAction: Filter by whether template uses makeCall action

Args:
    params: Query parameters including pagination and filters
    auth: Authentication context
    session: Database session

Returns:
    Paginated list of flow templates



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workflow/templates
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/workflow/templates:
    get:
      tags:
        - Workflows
      summary: List Flow Templates
      description: >-
        List available workflow templates.


        Templates are pre-configured workflow examples that users can browse

        to find starting points for their own workflows. Templates are global

        (not per-company).


        Supports filtering by:

        - digaTriggerType: Filter by Diga trigger type (call_finished,
        function_call)

        - usesMakeCallAction: Filter by whether template uses makeCall action


        Args:
            params: Query parameters including pagination and filters
            auth: Authentication context
            session: Database session

        Returns:
            Paginated list of flow templates
      operationId: list_flow_templates_v1_workflow_templates_get
      parameters:
        - name: after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: After
        - name: before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Before
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: order
          in: query
          required: false
          schema:
            enum:
              - asc
              - desc
            type: string
            default: desc
            title: Order
        - name: flow_category
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/FlowCategory'
              - type: 'null'
            title: Flow Category
        - name: language
          in: query
          required: false
          schema:
            type: string
            default: es
            title: Language
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_FlowTemplateResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - CustomHTTPBearer: []
components:
  schemas:
    FlowCategory:
      type: string
      enum:
        - post_call
        - during_call
        - pre_call
        - empty
      title: FlowCategory
    PaginatedResponse_FlowTemplateResponse_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/FlowTemplateResponse'
          type: array
          title: Data
        first_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: First Id
        last_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Last Id
        has_more:
          type: boolean
          title: Has More
        current_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Current Page
        total_pages:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Pages
      type: object
      required:
        - data
        - has_more
      title: PaginatedResponse[FlowTemplateResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FlowTemplateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Template unique identifier
        name:
          type: string
          title: Name
          description: Template name
        language:
          type: string
          title: Language
          description: Language code (e.g. 'es', 'en')
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Template description
        flow_category:
          anyOf:
            - $ref: '#/components/schemas/FlowCategory'
            - type: 'null'
        setup_guide_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Setup Guide Url
          description: URL to documentation or setup guide
        template:
          additionalProperties: true
          type: object
          title: Template
          description: Flow template JSON
        connections:
          anyOf:
            - items:
                $ref: '#/components/schemas/TemplateConnectionInfo'
              type: array
            - type: 'null'
          title: Connections
          description: Connections required by this template
        variables:
          items:
            type: string
          type: array
          title: Variables
          description: List of <<variable>> placeholders found in the template
      type: object
      required:
        - id
        - name
        - language
        - template
      title: FlowTemplateResponse
      description: Response model for flow templates.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TemplateConnectionInfo:
      properties:
        key:
          type: string
          title: Key
          description: Unique key for this connection
        name:
          type: string
          title: Name
          description: Display name for the connection
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Help text for the user
        piece_name:
          type: string
          title: Piece Name
          description: Piece name for the connection
        auth_type:
          type: string
          title: Auth Type
          description: Authentication type (e.g., SECRET_TEXT)
      type: object
      required:
        - key
        - name
        - piece_name
        - auth_type
      title: TemplateConnectionInfo
      description: Information about a connection required by a template.
  securitySchemes:
    CustomHTTPBearer:
      type: http
      scheme: bearer

````