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

# List workflow triggers

> Retrieve all triggers configured for a workflow. Triggers define when and how a workflow should automatically execute.

Use this endpoint to:
- Review configured triggers for a workflow
- Audit which phone numbers trigger this workflow
- Check trigger active status




## OpenAPI

````yaml /api/platform/v1/openapi-workflows.yaml get /workflows/{workflow_id}/triggers
openapi: 3.1.0
info:
  title: Kapso Platform API – Advanced Resources
  version: 0.1.0
  description: >
    Build WhatsApp automation workflows and serverless functions. Create
    multi-step conversation flows, inspect executions, and deploy custom logic.
servers:
  - url: https://api.kapso.ai/platform/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Workflows
    description: Create and manage conversation workflows and executions
  - name: Workflow Triggers
    description: Configure workflow triggers to automate execution
  - name: Functions
    description: Manage serverless functions, deployments, and secrets
  - name: WhatsApp Conversations
    description: Query WhatsApp conversation data and related resources
paths:
  /workflows/{workflow_id}/triggers:
    parameters:
      - name: workflow_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Workflow identifier
    get:
      tags:
        - Workflow Triggers
      summary: List workflow triggers
      description: >
        Retrieve all triggers configured for a workflow. Triggers define when
        and how a workflow should automatically execute.


        Use this endpoint to:

        - Review configured triggers for a workflow

        - Audit which phone numbers trigger this workflow

        - Check trigger active status
      operationId: listWorkflowTriggers
      responses:
        '200':
          description: Triggers retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowTriggerListResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    WorkflowTriggerListResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowTrigger'
      description: List of workflow triggers
    WorkflowTrigger:
      type: object
      required:
        - id
        - workflow_id
        - trigger_type
        - active
      properties:
        id:
          type: string
          format: uuid
          description: Unique trigger identifier
        workflow_id:
          type: string
          format: uuid
          description: ID of the workflow this trigger belongs to
        trigger_type:
          type: string
          enum:
            - inbound_message
            - api_call
            - whatsapp_event
          description: >
            Trigger activation mechanism:

            - `inbound_message`: Triggered by incoming WhatsApp messages to a
            specific phone number

            - `api_call`: Triggered by POST /workflows/{id}/executions API calls

            - `whatsapp_event`: Triggered by WhatsApp events (message and
            conversation lifecycle)
        active:
          type: boolean
          description: >
            Whether this trigger is enabled. Inactive triggers will not start
            workflow executions even when their conditions are met. Use this to
            temporarily disable a trigger without deleting it.
        display_name:
          type:
            - string
            - 'null'
          description: |
            Human-readable trigger name. Format varies by type:
            - Inbound message: "WhatsApp: [phone number display name]"
            - API call: "API Call Trigger"
        created_at:
          type: string
          format: date-time
          description: Trigger creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last modification timestamp
        triggerable:
          type: object
          description: >
            Type-specific trigger configuration. Structure varies by
            trigger_type:

            - For `inbound_message`: Contains phone_number_id

            - For `api_call`: Empty object

            - For `whatsapp_event`: Contains event and optional phone_number_id
          oneOf:
            - type: object
              description: Inbound message trigger configuration
              required:
                - phone_number_id
              properties:
                phone_number_id:
                  type: string
                  description: >-
                    WhatsApp Business phone number ID that will trigger the
                    workflow
            - type: object
              description: API call trigger configuration (no additional fields)
              additionalProperties: false
            - type: object
              description: WhatsApp event trigger configuration
              required:
                - event
              properties:
                event:
                  type: string
                  enum:
                    - whatsapp.message.received
                    - whatsapp.message.sent
                    - whatsapp.message.failed
                    - whatsapp.conversation.created
                    - whatsapp.conversation.ended
                  description: WhatsApp event type that will trigger the workflow
                phone_number_id:
                  type: string
                  description: >-
                    Optional WhatsApp Business phone number ID to scope trigger
                    to specific number
      description: Workflow trigger defining when and how a workflow execution should start
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message
  responses:
    UnauthorizedError:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````