> ## 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 From Jwt Endpoint

> Execute an agent using JWT token (called by Mage AI).
Automatically rotates the token in the trigger after each successful run
so the jwt_token stored in Mage never expires (self-healing schedule).



## OpenAPI

````yaml /api-reference/openapi.json post /api/adk/run_from_jwt
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_from_jwt:
    post:
      tags:
        - adk
      summary: Run Agent From Jwt Endpoint
      description: |-
        Execute an agent using JWT token (called by Mage AI).
        Automatically rotates the token in the trigger after each successful run
        so the jwt_token stored in Mage never expires (self-healing schedule).
      operationId: run_agent_from_jwt_endpoint_api_adk_run_from_jwt_post
      parameters:
        - name: authorization
          in: header
          required: true
          schema:
            type: string
            description: Bearer JWT token
            title: Authorization
          description: Bearer JWT token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunFromJWTRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RunFromJWTRequest:
      properties:
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
      type: object
      title: RunFromJWTRequest
    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

````

## Related topics

- [Run Agent Now Endpoint](/api-reference/adk/run-agent-now-endpoint.md)
- [Schedule Agent Run Endpoint](/api-reference/adk/schedule-agent-run-endpoint.md)
- [Run Agent From Refresh Token Endpoint](/api-reference/adk/run-agent-from-refresh-token-endpoint.md)
- [Run Agent](/api-reference/adk/run-agent.md)
