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

# Get all assessment items referenced by an assessment test

> Retrieve all assessment items (questions) that are referenced by an assessment test, along with their structural context (test part and section). This endpoint aggregates items from all sections across all test parts, providing both the item references and the actual assessment item data from the assessment-items collection.



## OpenAPI

````yaml /openapi/beyond-ai/qti-api.yaml get /assessment-tests/{identifier}/questions
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 QTI compliant XSD files. XSD version
      supported is 3.0.0 (3p0)
  - 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-tests/{identifier}/questions:
    get:
      tags:
        - Assessment Test Management
      summary: Get all assessment items referenced by an assessment test
      description: >-
        Retrieve all assessment items (questions) that are referenced by an
        assessment test, along with their structural context (test part and
        section). This endpoint aggregates items from all sections across all
        test parts, providing both the item references and the actual assessment
        item data from the assessment-items collection.
      operationId: getAllQuestions
      parameters:
        - name: identifier
          description: The unique identifier of the assessment test
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved all questions
          content:
            application/json:
              schema:
                type: object
                properties:
                  assessmentTest:
                    type: string
                    description: Identifier of the assessment test
                  title:
                    type: string
                    description: Title of the assessment test
                  totalQuestions:
                    type: number
                    description: Total number of questions in the assessment test
                  questions:
                    type: array
                    items:
                      type: object
                      properties:
                        reference:
                          type: object
                          properties:
                            identifier:
                              type: string
                              description: >-
                                Unique identifier for the entity on the service
                                provider.
                            href:
                              type: string
                              description: URL reference to the assessment item
                            testPart:
                              type: string
                              description: Test part identifier where this item is located
                            section:
                              type: string
                              description: Section identifier where this item is located
                          required:
                            - identifier
                            - href
                            - testPart
                            - section
                          description: >-
                            Reference information about where this assessment
                            item is located in the test structure
                        question:
                          type: object
                          properties:
                            identifier:
                              type: string
                              description: >-
                                Unique identifier for the entity on the service
                                provider.
                            title:
                              type: string
                              description: >-
                                Human-readable title of the entity on the
                                service provider.
                            type:
                              type: string
                              enum:
                                - choice
                                - text-entry
                                - extended-text
                                - inline-choice
                                - match
                                - order
                                - associate
                                - select-point
                                - graphic-order
                                - graphic-associate
                                - graphic-gap-match
                                - hotspot
                                - hottext
                                - slider
                                - drawing
                                - media
                                - upload
                              description: >-
                                Assessment item interaction types that are
                                supported by the service provider.
                            customInteractionTypeIdentifier:
                              type: string
                              description: >-
                                For portable-custom interactions, the
                                custom-interaction-type-identifier attribute
                                from the QTI XML element.
                            qtiVersion:
                              type: string
                              default: '3.0'
                              description: QTI version of the assessment item
                            timeDependent:
                              type: boolean
                              default: false
                              description: >-
                                Indicates whether the candidate's response time
                                affects the scoring or outcome of this
                                assessment item. When true, timing data is used
                                in response processing calculations.
                            adaptive:
                              type: boolean
                              default: false
                              description: >-
                                Indicates whether this assessment item adapts
                                its presentation or behavior based on the
                                candidate's responses. Adaptive items can modify
                                their content, difficulty, or available options
                                during the assessment session.
                            responseDeclarations:
                              type: array
                              items:
                                type: object
                                properties:
                                  identifier:
                                    type: string
                                    description: >-
                                      Unique identifier for this response
                                      variable within the item; must be distinct
                                      from other item variables and cannot use
                                      reserved names (completionStatus,
                                      numAttempts, duration).
                                  cardinality:
                                    type: string
                                    enum:
                                      - single
                                      - multiple
                                      - ordered
                                      - record
                                    description: >-
                                      Specifies how many values the response
                                      variable can hold and whether order
                                      matters.
                                  baseType:
                                    type: string
                                    enum:
                                      - identifier
                                      - boolean
                                      - integer
                                      - float
                                      - string
                                      - point
                                      - pair
                                      - directedPair
                                      - duration
                                      - file
                                      - uri
                                    description: >-
                                      Primitive data type for each answer stored
                                      in the variable (e.g., integer, string,
                                      boolean). Omit when cardinality is
                                      'record', because each field in a record
                                      may have its own type.
                                  correctResponse:
                                    type: object
                                    properties:
                                      value:
                                        type: array
                                        items:
                                          type: string
                                    required:
                                      - value
                                    description: >-
                                      Optional model answer; must conform to the
                                      variable's cardinality (single = one
                                      value, multiple/ordered = ordered or
                                      unordered list); omit when no optimal
                                      answer exists (e.g., essays); delivery
                                      engines may display it as the solution in
                                      review mode.
                                required:
                                  - identifier
                                  - cardinality
                                  - correctResponse
                            outcomeDeclarations:
                              type: array
                              items:
                                type: object
                                properties:
                                  identifier:
                                    type: string
                                    description: >-
                                      Unique identifier for this response
                                      variable within the item; must be distinct
                                      from other item variables and cannot use
                                      reserved names (completionStatus,
                                      numAttempts, duration).
                                  cardinality:
                                    type: string
                                    enum:
                                      - single
                                      - multiple
                                      - ordered
                                      - record
                                    description: >-
                                      Specifies how many values the response
                                      variable can hold and whether order
                                      matters.
                                  baseType:
                                    type: string
                                    enum:
                                      - identifier
                                      - boolean
                                      - integer
                                      - float
                                      - string
                                      - point
                                      - pair
                                      - directedPair
                                      - duration
                                      - file
                                      - uri
                                    description: >-
                                      Primitive data type for each answer stored
                                      in the variable (e.g., integer, string,
                                      boolean). Omit when cardinality is
                                      'record', because each field in a record
                                      may have its own type.
                                required:
                                  - identifier
                                  - cardinality
                            responseProcessing:
                              type: object
                              properties:
                                templateType:
                                  type: string
                                  enum:
                                    - match_correct
                                    - map_response
                                  description: >-
                                    Response processing template type.
                                    'match_correct' compares the candidate's
                                    response directly against the correct
                                    response and assigns binary feedback.
                                    'map_response' uses mapping rules to assign
                                    scores and feedback based on response
                                    values.
                                responseDeclarationIdentifier:
                                  type: string
                                  description: >-
                                    Identifier of the response declaration that
                                    this response processing rule applies to.
                                    Must match an existing responseDeclaration
                                    identifier within the same assessment item.
                                outcomeIdentifier:
                                  type: string
                                  description: >-
                                    Identifier of the outcome variable that will
                                    be set by this response processing rule.
                                    Common values include 'SCORE' for numeric
                                    scoring or 'FEEDBACK' for feedback
                                    identifiers.
                                correctResponseIdentifier:
                                  type: string
                                  description: >-
                                    Identifier value assigned to the outcome
                                    variable when the candidate's response is
                                    evaluated as correct. Used primarily with
                                    match_correct template type.
                                incorrectResponseIdentifier:
                                  type: string
                                  description: >-
                                    Identifier value assigned to the outcome
                                    variable when the candidate's response is
                                    evaluated as incorrect. Used primarily with
                                    match_correct template type.
                                inlineFeedback:
                                  type: object
                                  properties:
                                    outcomeIdentifier:
                                      type: string
                                      description: >-
                                        Identifier of the outcome variable to be
                                        set with the inline feedback value.
                                    variableIdentifier:
                                      type: string
                                      description: >-
                                        Identifier of the variable whose value
                                        will be assigned to the outcome variable
                                        during response processing.
                                  required:
                                    - outcomeIdentifier
                                    - variableIdentifier
                                  description: >-
                                    Optional inline feedback configuration that
                                    sets an outcome variable based on another
                                    variable's value during response processing.
                              required:
                                - templateType
                                - responseDeclarationIdentifier
                                - outcomeIdentifier
                                - correctResponseIdentifier
                                - incorrectResponseIdentifier
                              description: >-
                                Response processing is the process by which the
                                Delivery Engine assigns outcomes based on the
                                candidate's responses. The outcomes may be used
                                to provide feedback to the candidate. Response
                                processing must only take place in direct
                                response to a user action or in response to some
                                expected event, such as the end of a test.
                            metadata:
                              type: object
                              properties:
                                subject:
                                  type: string
                                  description: Subject area for the assessment item
                                  example: Math
                                grade:
                                  type: string
                                  enum:
                                    - '-1'
                                    - '0'
                                    - '1'
                                    - '2'
                                    - '3'
                                    - '4'
                                    - '5'
                                    - '6'
                                    - '7'
                                    - '8'
                                    - '9'
                                    - '10'
                                    - '11'
                                    - '12'
                                    - '13'
                                  description: >-
                                    Grade level for the assessment item. Must
                                    use a value from K-12
                                  example: '10'
                                difficulty:
                                  type: string
                                  enum:
                                    - easy
                                    - medium
                                    - hard
                                  description: Difficulty level of the assessment item
                                  example: easy
                                learningObjectiveSet:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      source:
                                        type: string
                                        description: >-
                                          The source of the learning objective set
                                          or learning standards.
                                        example: CASE
                                      learningObjectiveIds:
                                        type: array
                                        items:
                                          type: string
                                        description: >-
                                          Array of learning objective identifiers.
                                          If source is 'CASE', these can be the
                                          CFItem sourcedIds or CFItem's Human
                                          Coding Schema.
                                        example:
                                          - D1.5.6-8
                                          - C2.6.7-8
                                          - E3.1.2-3
                                    required:
                                      - source
                                      - learningObjectiveIds
                                  description: >-
                                    Learning objectives associated with this
                                    assessment item
                                  example:
                                    - source: CASE
                                      learningObjectiveIds:
                                        - id-123
                                        - id-456
                                        - id-789
                              additionalProperties: true
                              description: >-
                                Additional custom metadata for assessment items
                                with validation for specific fields used by
                                external applications
                            rawXml:
                              type: string
                              description: >-
                                Raw XML representation of the entity,
                                automatically generated from the JSON or XML
                                sent when creating entities on the service
                                provider. The rawxml field will contain all
                                content sent when creating the entity on the
                                service provider. This field is stable and
                                should be used when working within this QTI API.
                            content:
                              type: object
                              properties:
                                qti-assessment-item:
                                  type: object
                                  properties:
                                    _attributes:
                                      type: object
                                      properties:
                                        xmlns:
                                          type: string
                                        xmlns:xsi:
                                          type: string
                                        xsi:schemaLocation:
                                          type: string
                                        identifier:
                                          type: string
                                        title:
                                          type: string
                                        adaptive:
                                          type: string
                                        time-dependent:
                                          type: string
                                      required:
                                        - xmlns
                                        - xmlns:xsi
                                        - xsi:schemaLocation
                                        - identifier
                                        - title
                                        - adaptive
                                        - time-dependent
                                    qti-response-declaration:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          _attributes:
                                            type: object
                                            properties:
                                              identifier:
                                                type: string
                                              cardinality:
                                                type: string
                                              baseType:
                                                type: string
                                            required:
                                              - identifier
                                              - cardinality
                                              - baseType
                                          qti-correct-response:
                                            type: object
                                            properties:
                                              qti-value:
                                                type: array
                                                items:
                                                  type: string
                                            required:
                                              - qti-value
                                        required:
                                          - _attributes
                                          - qti-correct-response
                                    qti-outcome-declaration:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          _attributes:
                                            type: object
                                            properties:
                                              identifier:
                                                type: string
                                              cardinality:
                                                type: string
                                              baseType:
                                                type: string
                                            required:
                                              - identifier
                                              - cardinality
                                              - baseType
                                        required:
                                          - _attributes
                                    qti-assessment-stimulus-ref:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          _attributes:
                                            type: object
                                            properties:
                                              identifier:
                                                type: string
                                              href:
                                                type: string
                                              title:
                                                type: string
                                            required:
                                              - identifier
                                              - href
                                              - title
                                        required:
                                          - _attributes
                                    qti-item-body: {}
                                    qti-response-processing: {}
                                  required:
                                    - _attributes
                                    - qti-response-declaration
                                    - qti-outcome-declaration
                              required:
                                - qti-assessment-item
                              description: >-
                                Parsed XML content generated by the service
                                provider. For production use, rawXml is
                                recommended over this parsed structure.
                            modalFeedback:
                              type: array
                              items:
                                type: object
                                properties:
                                  outcomeIdentifier:
                                    type: string
                                    description: >-
                                      Identifier of the outcome variable that
                                      controls when this feedback is displayed.
                                      The feedback is shown or hidden based on
                                      the value of this outcome variable after
                                      response processing.
                                  identifier:
                                    type: string
                                    description: >-
                                      Unique identifier for this specific
                                      feedback element within the assessment
                                      item. Used to reference and control this
                                      particular piece of feedback.
                                  showHide:
                                    type: string
                                    enum:
                                      - show
                                      - hide
                                    description: >-
                                      Determines the feedback visibility
                                      behavior. 'show' displays the feedback
                                      when the outcome variable matches the
                                      identifier, 'hide' conceals it when the
                                      outcome variable matches.
                                  content:
                                    type: string
                                    description: >-
                                      The HTML or text content to be displayed
                                      as feedback to the candidate.
                                  title:
                                    type: string
                                    description: >-
                                      Optional title displayed in the modal
                                      feedback dialog header. Only used with
                                      modal feedback presentations.
                                required:
                                  - outcomeIdentifier
                                  - identifier
                                  - showHide
                                  - content
                                  - title
                              description: >-
                                Modal feedback shown to candidates in popup
                                dialogs immediately following response
                                processing. Cannot contain interaction elements
                                and is displayed based on outcome variable
                                values.
                            feedbackInline:
                              type: array
                              items:
                                type: object
                                properties:
                                  outcomeIdentifier:
                                    type: string
                                    description: >-
                                      Identifier of the outcome variable that
                                      controls when this feedback is displayed.
                                      The feedback is shown or hidden based on
                                      the value of this outcome variable after
                                      response processing.
                                  identifier:
                                    type: string
                                    description: >-
                                      Unique identifier for this specific
                                      feedback element within the assessment
                                      item. Used to reference and control this
                                      particular piece of feedback.
                                  showHide:
                                    type: string
                                    enum:
                                      - show
                                      - hide
                                    description: >-
                                      Determines the feedback visibility
                                      behavior. 'show' displays the feedback
                                      when the outcome variable matches the
                                      identifier, 'hide' conceals it when the
                                      outcome variable matches.
                                  content:
                                    type: string
                                    description: >-
                                      The HTML or text content to be displayed
                                      as feedback to the candidate.
                                  class:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      CSS class names applied to the feedback
                                      element for styling purposes. Multiple
                                      classes can be specified for flexible
                                      presentation control.
                                required:
                                  - outcomeIdentifier
                                  - identifier
                                  - showHide
                                  - content
                                  - class
                              description: >-
                                Inline feedback embedded within interaction
                                elements, displayed alongside choices or input
                                areas. Provides contextual feedback.
                            feedbackBlock:
                              type: array
                              items:
                                type: object
                                properties:
                                  outcomeIdentifier:
                                    type: string
                                    description: >-
                                      Identifier of the outcome variable that
                                      controls when this feedback is displayed.
                                      The feedback is shown or hidden based on
                                      the value of this outcome variable after
                                      response processing.
                                  identifier:
                                    type: string
                                    description: >-
                                      Unique identifier for this specific
                                      feedback element within the assessment
                                      item. Used to reference and control this
                                      particular piece of feedback.
                                  showHide:
                                    type: string
                                    enum:
                                      - show
                                      - hide
                                    description: >-
                                      Determines the feedback visibility
                                      behavior. 'show' displays the feedback
                                      when the outcome variable matches the
                                      identifier, 'hide' conceals it when the
                                      outcome variable matches.
                                  content:
                                    type: string
                                    description: >-
                                      The HTML or text content to be displayed
                                      as feedback to the candidate.
                                  class:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      CSS class names applied to the feedback
                                      element for styling purposes. Multiple
                                      classes can be specified for flexible
                                      presentation control.
                                required:
                                  - outcomeIdentifier
                                  - identifier
                                  - showHide
                                  - content
                                  - class
                              description: >-
                                Inline feedback embedded within interaction
                                elements, displayed alongside choices or input
                                areas. Provides contextual feedback.
                            createdAt:
                              type: string
                              format: date-time
                              description: ISO 8601 timestamp when the entity was created
                            updatedAt:
                              type: string
                              format: date-time
                              description: >-
                                ISO 8601 timestamp when the entity was last
                                updated
                            __v:
                              type: number
                              description: >-
                                MongoDB version key for optimistic concurrency
                                control
                          required:
                            - identifier
                            - title
                            - type
                            - qtiVersion
                            - timeDependent
                            - adaptive
                            - rawXml
                            - content
                            - createdAt
                            - updatedAt
                      required:
                        - reference
                        - question
                    description: >-
                      Array of questions with their reference information and
                      complete item data
                required:
                  - assessmentTest
                  - title
                  - totalQuestions
                  - questions
                description: >-
                  All questions from the assessment test with their complete
                  data and reference context
        '404':
          description: Assessment test not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error type identifier
                  message:
                    type: string
                    description: Human-readable error message
                  eventId:
                    type: string
                    description: Sentry event ID for error tracking
                  details:
                    type: string
                    description: Stack trace or additional error details
                required:
                  - error
                  - message
                  - details
                description: Internal server error response
components:
  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

````