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

> Get trigger status and schedule information.

Returns detailed status information about the trigger, including execution
status, rate limiting, and schedule information for cron triggers.

Args:
    trigger_id: The unique identifier of the trigger
    user_context: Authentication context
    trigger_service: Injected trigger service

Returns:
    Trigger status information

Raises:
    HTTPException: If trigger not found



## OpenAPI

````yaml /api-reference/openapi.json get /v1/triggers/{trigger_id}/status
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}/status:
    get:
      tags:
        - v1
        - protected
        - triggers
      summary: Get Trigger Status
      description: >-
        Get trigger status and schedule information.


        Returns detailed status information about the trigger, including
        execution

        status, rate limiting, and schedule information for cron triggers.


        Args:
            trigger_id: The unique identifier of the trigger
            user_context: Authentication context
            trigger_service: Injected trigger service

        Returns:
            Trigger status information

        Raises:
            HTTPException: If trigger not found
      operationId: get_trigger_status_v1_triggers__trigger_id__status_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/TriggerStatusResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TriggerStatusResponse:
      description: Response model for trigger status information.
      properties:
        consecutive_failures:
          title: Consecutive Failures
          type: integer
        is_active:
          title: Is Active
          type: boolean
        last_execution_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Execution At
        schedule_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Schedule Info
        should_disable_due_to_failures:
          title: Should Disable Due To Failures
          type: boolean
        trigger_id:
          format: uuid
          title: Trigger Id
          type: string
      required:
        - trigger_id
        - is_active
        - consecutive_failures
        - should_disable_due_to_failures
      title: TriggerStatusResponse
      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

````