> ## 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.

# Get Trigger

> Get a specific trigger by ID.

Args:
    trigger_id: The unique identifier of the trigger
    secret_manager: Injected secret manager (to resolve credential presence)
    user_context: Authentication context
    trigger_service: Injected trigger service

Returns:
    The trigger data

Raises:
    HTTPException: If trigger not found



## OpenAPI

````yaml /api-reference/openapi.json get /v1/triggers/{trigger_id}
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/{trigger_id}:
    get:
      tags:
        - v1
        - protected
        - triggers
      summary: Get Trigger
      description: |-
        Get a specific trigger by ID.

        Args:
            trigger_id: The unique identifier of the trigger
            secret_manager: Injected secret manager (to resolve credential presence)
            user_context: Authentication context
            trigger_service: Injected trigger service

        Returns:
            The trigger data

        Raises:
            HTTPException: If trigger not found
      operationId: get_trigger_v1_triggers__trigger_id__get
      parameters:
        - in: path
          name: trigger_id
          required: true
          schema:
            format: uuid
            title: Trigger Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriggerResponse'
          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

````