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

# Submit Task Input

> Submit structured user input to a workflow waiting on request_user_input.

Secret values are written to the workspace secret manager at the API boundary.
Only secret refs are sent to Temporal/LLM context.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/agents/{agent_id}/tasks/{task_id}/input
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}/input:
    post:
      tags:
        - v1
        - protected
        - agent-tasks
      summary: Submit Task Input
      description: >-
        Submit structured user input to a workflow waiting on
        request_user_input.


        Secret values are written to the workspace secret manager at the API
        boundary.

        Only secret refs are sent to Temporal/LLM context.
      operationId: submit_task_input_v1_agents__agent_id__tasks__task_id__input_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/TaskInputSubmission'
        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:
    TaskInputSubmission:
      additionalProperties: false
      description: Structured user input submission for a pending workflow input request.
      properties:
        answers:
          additionalProperties: true
          title: Answers
          type: object
        input_request_id:
          maxLength: 128
          minLength: 1
          title: Input Request Id
          type: string
        secrets:
          additionalProperties:
            anyOf:
              - type: string
              - $ref: '#/components/schemas/InputSecretValue'
          title: Secrets
          type: object
      required:
        - input_request_id
      title: TaskInputSubmission
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    InputSecretValue:
      additionalProperties: false
      description: Secret value submitted through the protected input endpoint.
      properties:
        secret_name:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          title: Secret Name
        value:
          minLength: 1
          title: Value
          type: string
      required:
        - value
      title: InputSecretValue
      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

````