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

# List Triggers

> List triggers with optional filtering.

Returns a list of triggers that match the specified criteria. Supports
filtering by agent ID, trigger type, and active status.

Access Control:
    Returns all triggers within the current user's workspace (workspace isolation).
    All users in the same workspace can see all workspace triggers.

Args:
    secret_manager: Injected secret manager (to resolve credential presence)
    agent_id: Optional agent ID filter
    trigger_type: Optional trigger type filter
    active_only: Whether to only return active triggers
    limit: Maximum number of triggers to return
    user_context: Authentication context
    trigger_service: Injected trigger service

Returns:
    List of triggers matching the criteria



## OpenAPI

````yaml /api-reference/openapi.json get /v1/triggers/
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/triggers/:
    get:
      tags:
        - v1
        - protected
        - triggers
      summary: List Triggers
      description: |-
        List triggers with optional filtering.

        Returns a list of triggers that match the specified criteria. Supports
        filtering by agent ID, trigger type, and active status.

        Access Control:
            Returns all triggers within the current user's workspace (workspace isolation).
            All users in the same workspace can see all workspace triggers.

        Args:
            secret_manager: Injected secret manager (to resolve credential presence)
            agent_id: Optional agent ID filter
            trigger_type: Optional trigger type filter
            active_only: Whether to only return active triggers
            limit: Maximum number of triggers to return
            user_context: Authentication context
            trigger_service: Injected trigger service

        Returns:
            List of triggers matching the criteria
      operationId: list_triggers_v1_triggers__get
      parameters:
        - description: Filter by agent ID
          in: query
          name: agent_id
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            description: Filter by agent ID
            title: Agent Id
        - description: Filter by trigger type (cron, webhook)
          in: query
          name: trigger_type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by trigger type (cron, webhook)
            title: Trigger Type
        - description: Only return active triggers
          in: query
          name: active_only
          required: false
          schema:
            default: false
            description: Only return active triggers
            title: Active Only
            type: boolean
        - description: Maximum number of triggers to return
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: Maximum number of triggers to return
            maximum: 1000
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/TriggerResponse'
                title: Response List Triggers V1 Triggers  Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TriggerResponse:
      description: Response model for trigger data.
      properties:
        agent_id:
          format: uuid
          title: Agent Id
          type: string
        allowed_methods:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed Methods
        conditions:
          additionalProperties: true
          title: Conditions
          type: object
        consecutive_failures:
          title: Consecutive Failures
          type: integer
        created_at:
          title: Created At
          type: string
        created_by:
          title: Created By
          type: string
        cron_expression:
          anyOf:
            - type: string
            - type: 'null'
          title: Cron Expression
        data_extractor:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Extractor
        description:
          title: Description
          type: string
        event_types:
          items:
            type: string
          title: Event Types
          type: array
        failure_threshold:
          title: Failure Threshold
          type: integer
        has_channel_credentials:
          default: false
          title: Has Channel Credentials
          type: boolean
        id:
          format: uuid
          title: Id
          type: string
        is_active:
          title: Is Active
          type: boolean
        last_execution_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Execution At
        name:
          title: Name
          type: string
        next_run_time:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Run Time
        task_parameters:
          additionalProperties: true
          title: Task Parameters
          type: object
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
        trigger_type:
          title: Trigger Type
          type: string
        updated_at:
          title: Updated At
          type: string
        validation_rules:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Validation Rules
        webhook_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Webhook Config
        webhook_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Id
        webhook_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Type
      required:
        - id
        - name
        - description
        - agent_id
        - trigger_type
        - is_active
        - task_parameters
        - conditions
        - created_at
        - updated_at
        - created_by
        - failure_threshold
        - consecutive_failures
      title: TriggerResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````