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

> ## Agent Instructions
> Internal links on these pages omit the .md extension. Append .md to a docs page URL, or send an Accept: text/markdown header, to get that page as markdown.

# Get a coding session's open question

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Read the question or approval a session is waiting on, with its options. `input_request` is `null` when it isn't waiting. Answer it with Send a message to a coding session. Shares the read limit of 60 requests per minute per user.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/imported/sessions/{session_id}/input-request
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/imported/sessions/{session_id}/input-request:
    get:
      summary: Get a coding session's open question
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Read the question or approval a session is waiting on, with its options.
        `input_request` is `null` when it isn't waiting. Answer it with Send a
        message to a coding session. Shares the read limit of 60 requests per
        minute per user.
      operationId: >-
        get_session_input_request_api_apps__app_id__imported_sessions__session_id__input_request_get
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-f0-9]{24}$
            description: The session's identifier.
            examples:
              - 6820f3a4e7b91d003c45a1f2
            title: Session Id
          description: The session's identifier.
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            title: App Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InputRequestResponse'
        '401':
          description: '`unauthenticated`: Missing or invalid credentials.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '403':
          description: '`forbidden`: You don''t have write access to this app or repository.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '404':
          description: '`not_found`: The imported app or session was not found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '409':
          description: >-
            `idempotency_conflict` or `conflict`: The request conflicts with an
            earlier launch or current repository state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '422':
          description: '`invalid_request`: The input or Idempotency-Key is invalid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '429':
          description: '`rate_limited`: Retry after the number of seconds in Retry-After.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '500':
          description: >-
            `internal_error`: Unexpected failure. Retry a launch with the same
            Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
      security:
        - PersonalAccessTokenAuth:
            - full_access
components:
  schemas:
    InputRequestResponse:
      properties:
        input_request:
          anyOf:
            - $ref: '#/components/schemas/InputRequest'
            - type: 'null'
          description: >-
            The open question or approval, or `null` when the session isn't
            waiting.
      type: object
      title: InputRequestResponse
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    InputRequest:
      properties:
        input_request_id:
          type: string
          title: Input Request Id
          description: Send this back with the answer.
          examples:
            - ca00e880-1111-4444-aaaa-ccddeeff0011:toolu_01A
        kind:
          type: string
          enum:
            - questions
            - approval
          title: Kind
          description: >-
            `questions` for clarifying questions, `approval` for a step that
            needs a yes or no.
        questions:
          items:
            $ref: '#/components/schemas/InputQuestion'
          type: array
          title: Questions
          description: The questions, for `kind=questions`.
        approval:
          anyOf:
            - type: string
            - type: 'null'
          title: Approval
          description: What the session wants to do, for `kind=approval`.
      type: object
      required:
        - input_request_id
        - kind
      title: InputRequest
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
    InputQuestion:
      properties:
        question:
          type: string
          title: Question
          description: The question text.
          examples:
            - Redact both call sites, or only the retry path?
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Context for the question, or `null`.
        multi_select:
          type: boolean
          title: Multi Select
          description: Whether several options may be chosen.
          default: false
        options:
          items:
            $ref: '#/components/schemas/InputQuestionOption'
          type: array
          title: Options
          description: Suggested answers. A free-text answer is always accepted.
      type: object
      required:
        - question
      title: InputQuestion
    InputQuestionOption:
      properties:
        label:
          type: string
          title: Label
          description: The option's label; send it back as `selected_label`.
          examples:
            - Both call sites
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: More detail about the option, or `null`.
      type: object
      required:
        - label
      title: InputQuestionOption
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.