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

# Send A2Ui Action

> Send an A2UI user action to a running task workflow.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/agents/{agent_id}/tasks/{task_id}/a2ui/action
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/agents/{agent_id}/tasks/{task_id}/a2ui/action:
    post:
      tags:
        - v1
        - protected
        - agent-tasks
      summary: Send A2Ui Action
      description: Send an A2UI user action to a running task workflow.
      operationId: send_a2ui_action_v1_agents__agent_id__tasks__task_id__a2ui_action_post
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
        - in: path
          name: task_id
          required: true
          schema:
            format: uuid
            title: Task Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/A2UIActionPayload'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    A2UIActionPayload:
      additionalProperties: false
      description: Validated A2UI action payload from the frontend.
      properties:
        context:
          additionalProperties: true
          title: Context
          type: object
        name:
          maxLength: 128
          title: Name
          type: string
        source_component_id:
          default: ''
          maxLength: 128
          title: Source Component Id
          type: string
        surface_id:
          maxLength: 64
          title: Surface Id
          type: string
      required:
        - name
        - surface_id
      title: A2UIActionPayload
      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

````