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

# Process a response for an assessment item

> Score a submitted response against the item's authored response processing and return the result with its feedback identifier and value. The body is either a single response (`identifier` and `response`) or a map of responses keyed by identifier. The v1 query parameter is not accepted.



## OpenAPI

````yaml /openapi/beyond-ai/qti-api.yaml post /assessment-items/{identifier}/process-response
openapi: 3.1.0
info:
  title: QTI API
  version: 1.0.0
  description: >-
    A robust assessment engine implementing the QTI 3.0 specification, designed
    for creating, managing, and delivering educational assessments.
servers:
  - url: https://qti.alpha-1edtech.ai/api
    description: Main Server
security:
  - OAuth2: []
  - MCP: []
tags:
  - name: Validation
    description: Validate XML strings against the QTI 3.0.1 schema
  - name: Feedback
    description: Feedback for questions and lessons
  - name: Assessment Test Management
    description: >-
      Enables the management of Assessment Tests. Assessment Tests are the main
      entities that contain Assessment Test Parts, Sections, and Assessment
      Items.
  - name: Test Part Management
    description: >-
      Enables the management of Test Parts. Assessment Test Parts are used to
      group sections inside of an Assessment Test.
  - name: Section Management
    description: >-
      Enables the management of Sections. Assessment Sections are used to group
      Assessment Items.
  - name: Assessment Item Management
    description: >-
      Enables the management of Assessment ITems. Assessment Items are made up
      of QTI Interactions (e.g. questions, multiple choice, etc.).
  - name: Stimulus Management
    description: >-
      Enables the management of Stimuli. Stimuli are shared content pieces
      (text, images, audio, video) that provide context for assessment items and
      can be referenced by multiple questions.
paths:
  /assessment-items/{identifier}/process-response:
    post:
      tags:
        - Assessment Item Management
      summary: Process a response for an assessment item
      description: >-
        Score a submitted response against the item's authored response
        processing and return the result with its feedback identifier and value.
        The body is either a single response (`identifier` and `response`) or a
        map of responses keyed by identifier. The v1 query parameter is not
        accepted.
      operationId: processResponse
      parameters:
        - name: identifier
          description: Assessment item identifier
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties:
                    identifier:
                      type: string
                      description: >-
                        Unique identifier for the entity on the service
                        provider.
                    response:
                      anyOf:
                        - type: string
                        - type: array
                          items:
                            type: string
                      description: >-
                        The response to the assessment item for Free Response
                        Question grading using AI
                  required:
                    - identifier
                    - response
                - type: object
                  properties:
                    responses:
                      type: object
                      additionalProperties:
                        anyOf:
                          - type: string
                          - type: array
                            items:
                              type: string
                      description: >-
                        Object containing response identifiers as keys and their
                        corresponding values as strings or arrays of strings
                  required:
                    - responses
              description: >-
                A single response (identifier and response) or a map of
                responses keyed by response identifier
              example:
                responses:
                  RESPONSE_11: '5'
                  RESPONSE_14: '9'
      responses:
        '200':
          description: Response processed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  score:
                    type:
                      - number
                      - 'null'
                    description: >-
                      The SCORE outcome computed by the item's authored response
                      processing: commonly 1 for correct and 0 for incorrect,
                      but any authored value, or a 0-1 decimal for AI-graded
                      extended text. Null when the question requires async
                      grading (requiresAsyncGrading=true).
                  isCorrect:
                    type:
                      - boolean
                      - 'null'
                    description: >-
                      Whether the response is correct. Null when the question
                      requires async grading.
                  feedback:
                    type: object
                    properties:
                      identifier:
                        type: string
                        description: >-
                          Feedback classification identifier. Typically
                          'correct' or 'incorrect' for standard questions,
                          'async-pending' for async-graded questions, or custom
                          identifiers for more complex feedback scenarios.
                      value:
                        type: string
                        description: >-
                          Human-readable feedback message. For standard
                          questions: 'Correct' or 'Incorrect'. For AI-graded
                          responses: may include detailed rationale or
                          explanation.
                    required:
                      - identifier
                      - value
                    description: >-
                      Structured feedback information containing both
                      machine-readable identifier and human-readable message.
                  requiresAsyncGrading:
                    type: boolean
                    description: >-
                      When true, the response has been submitted for
                      asynchronous AI grading. Score and isCorrect will be null
                      until grading completes.
                  graderUrl:
                    type: string
                    description: >-
                      The URL of the external grader service. Only present when
                      requiresAsyncGrading is true.
                required:
                  - score
                  - feedback
                description: >-
                  Response processing result containing the calculated score and
                  feedback for a candidate's response to an assessment item.
        '400':
          description: Invalid response body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '401':
          description: No bearer token, or an invalid one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: >-
            The token lacks the required scope, or the caller does not own the
            resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: Assessment item not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '410':
          description: The v1 query parameter is not accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '413':
          description: The request body is larger than 50 MB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '503':
          description: Database unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    ErrorBody:
      type: object
      properties:
        error:
          type: string
          description: The problem in one sentence (same as detail)
        code:
          type: string
          description: >-
            The reason phrase with the spaces removed, for every error:
            BadRequest, Unauthorized, Forbidden, NotFound, Conflict, Gone,
            ContentTooLarge, UnsupportedMediaType, UnprocessableContent,
            InternalServerError, ServiceUnavailable
        details:
          type: string
          description: The individual errors joined into one line, when there are any
        title:
          type: string
          description: The HTTP reason phrase (RFC 9457)
        status:
          type: integer
          description: The HTTP status code (RFC 9457)
        detail:
          type: string
          description: >-
            The problem in one sentence (RFC 9457); on a 500 it is the phrase
            and nothing more
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              pointer:
                type: string
                description: JSON Pointer to the offending part of the request
            required:
              - detail
          description: Individual problems, for validation failures
        traceId:
          type: string
          pattern: ^[0-9a-f]{32}$
          description: W3C trace id of the request; absent when no trace was active
      required:
        - error
        - code
        - title
        - status
        - detail
      description: Error response
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
          scopes:
            https://purl.imsglobal.org/spec/qti/v3/scope/readonly: Read access to QTI
            https://purl.imsglobal.org/spec/qti/v3/scope/createput: Create and update access to QTI
            https://purl.imsglobal.org/spec/qti/v3/scope/delete: Delete access to QTI
          tokenUrl: >-
            https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com/oauth2/token
    MCP:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com/oauth2/authorize
          tokenUrl: >-
            https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com/oauth2/token
          scopes:
            https://purl.imsglobal.org/spec/qti/v3/scope/readonly: Read access to QTI

````