> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel-docs-benchmark-writeup-and-tooling.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List response input items



## OpenAPI

````yaml /openapi.json get /v1/responses/{id}/input_items
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax, Xiaomi MiMo,
    OpenCode Go, Oracle, Ollama, Bailian). Drop-in OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /v1/responses/{id}/input_items:
    get:
      tags:
        - responses
      summary: List response input items
      parameters:
        - description: Response ID
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: Provider override for native lookups
          name: provider
          in: query
          schema:
            type: string
        - description: Pagination cursor
          name: after
          in: query
          schema:
            type: string
        - description: Fields to include in listed input items
          name: include
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: Fields to include in listed input items
          name: include[]
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: Maximum items to return (1-100, default 20)
          name: limit
          in: query
          schema:
            type: integer
        - description: 'Sort order: asc or desc'
          name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.ResponseInputItemListResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
        '501':
          description: Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
      security:
        - BearerAuth: []
components:
  schemas:
    core.ResponseInputItemListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/core.ResponsesInputElement'
        first_id:
          type: string
        has_more:
          type: boolean
        last_id:
          type: string
        object:
          type: string
    core.OpenAIErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/core.OpenAIErrorObject'
    core.ResponsesInputElement:
      type: object
      properties:
        arguments:
          type: string
        call_id:
          description: Function call fields (type="function_call")
          type: string
        content:
          description: Can be string or []ContentPart
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/core.ContentPart'
        name:
          type: string
        output:
          description: >-
            Function call output fields (type="function_call_output") - CallID
            shared above
          type: string
        role:
          description: Message fields (type="" or "message")
          type: string
        status:
          type: string
        type:
          description: '"message", "function_call", "function_call_output"'
          type: string
    core.OpenAIErrorObject:
      type: object
      required:
        - code
        - message
        - param
        - type
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        type:
          $ref: '#/components/schemas/core.ErrorType'
    core.ContentPart:
      type: object
      properties:
        image_url:
          $ref: '#/components/schemas/core.ImageURLContent'
        input_audio:
          $ref: '#/components/schemas/core.InputAudioContent'
        text:
          type: string
        type:
          type: string
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
    core.ImageURLContent:
      type: object
      properties:
        detail:
          type: string
        media_type:
          type: string
        url:
          type: string
    core.InputAudioContent:
      type: object
      properties:
        data:
          type: string
        format:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````