> ## 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 available pieces

> List available workflows pieces with their triggers and actions.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workflow/piece
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/workflow/piece:
    get:
      tags:
        - Workflows - Pieces
      summary: List available pieces
      description: List available workflows pieces with their triggers and actions.
      operationId: list_pieces_v1_workflow_piece_get
      parameters:
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Search
        - name: suggestion_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/SuggestionType'
              - type: 'null'
            title: Suggestion Type
        - name: categories
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  $ref: '#/components/schemas/PieceCategory'
                type: array
              - type: 'null'
            description: >-
              Filter pieces by one or more categories. Repeat the param to pass
              multiple values, e.g.
              ?categories=MARKETING&categories=SALES_AND_CRM.
            title: Categories
          description: >-
            Filter pieces by one or more categories. Repeat the param to pass
            multiple values, e.g.
            ?categories=MARKETING&categories=SALES_AND_CRM.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PieceSummaryResponse'
                title: Response List Pieces V1 Workflow Piece Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SuggestionType:
      type: string
      enum:
        - ACTION
        - TRIGGER
        - ACTION_AND_TRIGGER
      title: SuggestionType
      description: Filter pieces by what they offer.
    PieceCategory:
      type: string
      enum:
        - AI
        - COMMUNICATION
        - SALES_AND_CRM
        - MARKETING
        - PRODUCTIVITY
        - COMMERCE
        - DEVELOPMENT
      title: PieceCategory
      description: |-
        Diga's grouped piece categories. Each value collapses one or more
        upstream Activepieces categories — see ``_AP_TO_DIGA_CATEGORY`` in
        ``api/v1/routes/workflows/pieces.py`` for the mapping.
    PieceSummaryResponse:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Unique piece ID
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Package name, e.g. "@activepieces/piece-slack"
        displayName:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayname
        logoUrl:
          anyOf:
            - type: string
            - type: 'null'
          title: Logourl
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
        authors:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Authors
        categories:
          anyOf:
            - items:
                $ref: '#/components/schemas/PieceCategory'
              type: array
            - type: 'null'
          title: Categories
        auth:
          anyOf:
            - $ref: '#/components/schemas/PieceAuthProperty'
            - items:
                $ref: '#/components/schemas/PieceAuthProperty'
              type: array
            - type: 'null'
          title: Auth
        actions:
          anyOf:
            - type: integer
            - type: 'null'
          title: Actions
          description: Number of actions exposed by the piece
        triggers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Triggers
          description: Number of triggers exposed by the piece
        suggestedActions:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Suggestedactions
          description: Populated only when filtering by suggestion_type
        suggestedTriggers:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Suggestedtriggers
          description: Populated only when filtering by suggestion_type
        projectUsage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Projectusage
        pieceType:
          anyOf:
            - $ref: '#/components/schemas/PieceType'
            - type: 'null'
        packageType:
          anyOf:
            - $ref: '#/components/schemas/PackageType'
            - type: 'null'
        platformId:
          anyOf:
            - type: string
            - type: 'null'
          title: Platformid
        archiveId:
          anyOf:
            - type: string
            - type: 'null'
          title: Archiveid
        minimumSupportedRelease:
          anyOf:
            - type: string
            - type: 'null'
          title: Minimumsupportedrelease
        maximumSupportedRelease:
          anyOf:
            - type: string
            - type: 'null'
          title: Maximumsupportedrelease
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
        updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated
      additionalProperties: true
      type: object
      title: PieceSummaryResponse
      description: |-
        Piece metadata summary returned by the list endpoint. `actions` and
        `triggers` are counts here; use the detail endpoint to get their full
        definitions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PieceAuthProperty:
      properties:
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
          description: SECRET_TEXT | BASIC_AUTH | CUSTOM_AUTH | OAUTH2
        displayName:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayname
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        required:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Required
        props:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Props
          description: Nested property definitions for CUSTOM_AUTH
        authUrl:
          anyOf:
            - type: string
            - type: 'null'
          title: Authurl
        tokenUrl:
          anyOf:
            - type: string
            - type: 'null'
          title: Tokenurl
        scope:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Scope
        username:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Username
        password:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Password
      additionalProperties: true
      type: object
      title: PieceAuthProperty
      description: |-
        Auth metadata for a piece. Shape varies by `type` (SECRET_TEXT,
        BASIC_AUTH, CUSTOM_AUTH, OAUTH2, ...); nested CUSTOM_AUTH props are
        returned as-is under `props`.
    PieceType:
      type: string
      enum:
        - OFFICIAL
        - CUSTOM
      title: PieceType
      description: |-
        Origin of an Activepieces piece. Mirrors AP's own ``PieceType``
        (a closed, AP-validated set), so it is safe to enumerate here.
    PackageType:
      type: string
      enum:
        - REGISTRY
        - ARCHIVE
      title: PackageType
      description: |-
        How an Activepieces piece is packaged. Mirrors AP's own
        ``PackageType`` (a closed, AP-validated set).
    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

````