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

# Run Agent Now Endpoint

> Trigger an immediate Mage pipeline run for an agent.

If the agent doesn't have a schedule trigger yet, one is created first
with a default @daily interval (inactive), then a run is triggered.



## OpenAPI

````yaml /api-reference/openapi.json post /api/adk/run_now
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/adk/run_now:
    post:
      tags:
        - adk
      summary: Run Agent Now Endpoint
      description: |-
        Trigger an immediate Mage pipeline run for an agent.

        If the agent doesn't have a schedule trigger yet, one is created first
        with a default @daily interval (inactive), then a run is triggered.
      operationId: run_agent_now_endpoint_api_adk_run_now_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunAgentNowRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RunAgentNowRequest:
      properties:
        agent_id:
          type: string
          title: Agent Id
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        message:
          type: string
          title: Message
          default: Run agent
      type: object
      required:
        - agent_id
      title: RunAgentNowRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Schedule Agent Run Endpoint](/api-reference/adk/schedule-agent-run-endpoint.md)
- [Run Agent From Jwt Endpoint](/api-reference/adk/run-agent-from-jwt-endpoint.md)
- [Run Agent From Refresh Token Endpoint](/api-reference/adk/run-agent-from-refresh-token-endpoint.md)
- [Sessions and runs](/concepts/sessions-and-runs.md)
- [Run Agent](/api-reference/adk/run-agent.md)
