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

# Run Trigger Now

> Fire a trigger once, now, because a person asked for it.

Distinct from ``/execute``, which replays a real event: this carries no event
data and records the caller in ``fired_by``, so the run is visibly a manual
one and the task it creates belongs to the caller rather than to whoever
created the trigger.

The run is otherwise faithful to a real one -- the trigger's conditions are
still evaluated, and a run they reject comes back ``skipped`` with the reason
rather than being forced through. A trigger that is switched off still runs:
``is_active`` governs the schedule, not a person asking for one run.

Returns:
    The execution, and the task id to watch when one was created.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/triggers/{trigger_id}/run
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}/run:
    post:
      tags:
        - v1
        - protected
        - triggers
      summary: Run Trigger Now
      description: >-
        Fire a trigger once, now, because a person asked for it.


        Distinct from ``/execute``, which replays a real event: this carries no
        event

        data and records the caller in ``fired_by``, so the run is visibly a
        manual

        one and the task it creates belongs to the caller rather than to whoever

        created the trigger.


        The run is otherwise faithful to a real one -- the trigger's conditions
        are

        still evaluated, and a run they reject comes back ``skipped`` with the
        reason

        rather than being forced through. A trigger that is switched off still
        runs:

        ``is_active`` governs the schedule, not a person asking for one run.


        Returns:
            The execution, and the task id to watch when one was created.
      operationId: run_trigger_now_v1_triggers__trigger_id__run_post
      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/TriggerRunResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TriggerRunResponse:
      description: Result of firing a trigger once by hand.
      properties:
        execution_id:
          format: uuid
          title: Execution Id
          type: string
        reason:
          anyOf:
            - type: string
            - type: 'null'
          description: Why the run was skipped, when it was.
          title: Reason
        status:
          description: >-
            'started' when a task was created and is now running. 'skipped' when
            the trigger's own conditions rejected the run -- a real answer about
            the trigger, not an error.
          enum:
            - started
            - skipped
          title: Status
          type: string
        task_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: The task to watch. Absent when the run was skipped.
          title: Task Id
        trigger_id:
          format: uuid
          title: Trigger Id
          type: string
      required:
        - status
        - trigger_id
        - execution_id
      title: TriggerRunResponse
      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

````