AlphaTest Assessment Creation Guide

This guide teaches you everything you need to create, manage, and deliver digital assessments on the AlphaTest platform. Whether you're building a simple multiple-choice quiz or a timed fluency test with AI-graded essays, this documentation covers every step.

What Is AlphaTest?

AlphaTest is a platform for creating, managing, and delivering digital assessments to students. It uses the QTI 3.0 standard (Question and Test Interoperability) to store questions and tests in a structured, portable format.

You don't need to understand the deep technical details of QTI. All you need to know is that there are two building blocks:

The Playlist Analogy

Think of building a test like creating a music playlist:

Songs = Questions
Each question is created and stored individually in the system, like uploading a song to a music library.
Playlist = Test
A test is a container that references which questions to include and in what order, just like a playlist references songs.

You upload the songs (questions) first, then assemble the playlist (test).

Platform Architecture

QTI API
qti.alpha-1edtech.ai
Stores questions & tests
↔
AlphaTest Backend
API Services
Grading, TTS, assignment
↔
Admin Interface
admin.alphatest.alpha.school
Manage & configure tests
↔
Student Player
Test delivery
Students take tests here

Key URLs

ResourceURLPurpose
QTI API Basehttps://qti.alpha-1edtech.ai/apiCreate/manage questions & tests
API Documentation (Swagger)https://qti.alpha-1edtech.ai/docs/Interactive API explorer
API Reference (Scalar)https://qti.alpha-1edtech.ai/scalarModern API reference
AlphaTest Adminhttps://admin.alphatest.alpha.schoolTest management dashboard
Dashboardhttps://admin.alphatest.alpha.school/dashboardMain admin landing page
Test Inventoryhttps://admin.alphatest.alpha.school/tests/inventoryBrowse & manage tests
Test Assignmenthttps://admin.alphatest.alpha.school/tests/assignmentAssign tests to students
Custom Tests (Builder)https://admin.alphatest.alpha.school/builder/testBuild & edit tests
Question Builderhttps://admin.alphatest.alpha.school/question-builderCreate & edit questions
Passages Libraryhttps://admin.alphatest.alpha.school/passagesManage reading passages
Resultshttps://admin.alphatest.alpha.school/resultsView test results & reporting
Timelinehttps://admin.alphatest.alpha.school/timelineOne student's progress over time

Prerequisites — What You Need Before Starting

Before you create your first test, make sure you have the following:

1
An AlphaTest Admin Account

You need an account on the admin platform at admin.alphatest.alpha.school with the right permissions (at minimum: ability to assign tests). If you don't have one, contact your school's AlphaTest administrator or the platform team to request access.

2
API Credentials (for creating content via Claude Code)

To create new questions and tests, you need a client ID and client secret for the QTI API. Contact the AlphaTest platform team and ask: "I need API credentials (client ID and secret) to create assessments via the QTI API." They will provide you with two text strings that look like random characters.

3
Access to Claude Code

Claude Code is a command-line AI assistant. To use it, open a terminal (on Mac: search for "Terminal" in Spotlight; on Windows: search for "Command Prompt" or "PowerShell"). Then type claude to start a session. Claude Code will handle the technical API calls for you — you just describe what you want in plain English.

4
Your Assessment Content

Prepare your questions in a spreadsheet or document. For each question you'll need: the question text, answer choices (if applicable), the correct answer, the subject (e.g., Math, Reading), the grade level, and the question type (e.g., multiple choice, short answer).

Tutorial: Create Your First Quiz (Step by Step)

Before you start
Make sure you've completed the Prerequisites above. You'll need your API credentials (client ID and client secret) and access to Claude Code. If you don't have credentials yet, contact the platform team first.

This walkthrough takes you from zero to a working quiz assigned to a student. Follow along exactly and you'll have a completed assessment in about 15 minutes.

What we'll build
A 3-question multiple-choice Math quiz for Grade 5 about fractions. We'll create it using Claude Code, import it into AlphaTest, and assign it.

Part 1: Create the Questions with Claude Code

Open your terminal and type claude to start Claude Code. Then have a conversation like this:

You
I need to create 3 multiple-choice Math questions for Grade 5 about adding fractions. Each should have 4 answer choices. Here are my questions:

1. What is 1/4 + 1/4? (Answer: 2/4 or 1/2)
2. What is 1/3 + 1/6? (Answer: 1/2)
3. What is 3/8 + 1/8? (Answer: 4/8 or 1/2)

Please create these as QTI assessment items and upload them to the API at https://qti.alpha-1edtech.ai/api. My client_id is [YOUR_ID] and client_secret is [YOUR_SECRET].
Claude
I'll create these 3 fraction questions for you. Let me first authenticate with the API, then create each question.

Authenticating... Got the token.

Creating Question 1: "What is 1/4 + 1/4?"
Created successfully! Item ID: _a1b2c3d4-e5f6-7890-abcd-ef1234567890

Creating Question 2: "What is 1/3 + 1/6?"
Created successfully! Item ID: _b2c3d4e5-f6a7-8901-bcde-f12345678901

Creating Question 3: "What is 3/8 + 1/8?"
Created successfully! Item ID: _c3d4e5f6-a7b8-9012-cdef-123456789012

All 3 questions created. Save these IDs — you'll need them to assemble the test.

Part 2: Assemble the Test

You
Great! Now create a standard (untimed) test called "G5 Math Fractions Quiz v1" for Math Grade 5 using those 3 question IDs.
Claude
Creating test...

Test created successfully!
Test ID: _d4e5f6a7-b8c9-0123-defa-234567890123

Copy this Test ID. You'll paste it into the AlphaTest admin platform to import the test.
Save your Test ID
Copy the Test ID that Claude Code gives you (it looks like _d4e5f6a7-b8c9-0123-defa-234567890123). You will paste this in the next step.

Part 3: Import into AlphaTest

  1. Open your browser and go to admin.alphatest.alpha.school/tests/inventory
  2. Log in with your admin account
  3. Click the "Add Test from QTI" button (top-right corner)
  4. Fill in the form:
    • QTI Test ID: Paste the Test ID from Claude Code
    • Name: G5 Math Fractions Quiz v1
    • Subject: Select "Math" (or "Math-notQCed" if Math isn't available yet)
    • Grade: Select "Fifth Grade"
  5. Click "Add Test", wait for the AI review (if it finds only warnings, choose Import anyway or Don't import; a question marked Loses the point must be fixed in the original test first), then click "Close"
If a red panel appears instead of "Test added successfully"
The test's time limit is set up in a way that would not reach students, and AlphaTest will not import it until that is fixed. The panel lists exactly what is wrong and what to change; nothing was added, so fix the test and add it again. See "A time limit set only on this admin screen never reaches the student" below for what the platform will and will not fix on its own.

Part 4: Preview Your Test

  1. Go to Custom Tests in the left menu
  2. Search for your Test ID or "G5 Math Fractions"
  3. Click "Open" to see the questions listed
  4. Click "Preview Test" to see exactly what students will see
  5. Verify: Do the questions display correctly? Are the fractions rendering properly? Is the correct answer marked?

Part 5: Assign It to Yourself (Self-Test)

  1. Go to Test Assignment in the left menu
  2. In the "OR provide Timeback ID" field, paste your Test ID
  3. Enter your own email address in the Student Email field
  4. Click "Assign"
  5. Click the generated link to take the test yourself
Congratulations!
You've created a complete assessment! Once you're happy with the preview, you can assign it to students using the same Test Assignment page — just enter the student's email instead of yours.
Next: Full Workflow Overview →

Glossary

Key terms used in this documentation, explained in plain language.

API
Application Programming Interface. A way for software to talk to other software. Think of it as a waiter taking your order to the kitchen — you tell the API what you want, and it brings back the result. Claude Code uses the API to create questions and tests for you.
QTI 3.0
Question and Test Interoperability, version 3.0. An international standard for storing digital test questions. It's the format AlphaTest uses behind the scenes. You don't need to understand QTI directly — Claude Code handles it.
XML
A text format used to structure data (like questions and answers) in a way computers can read. It looks like code with angle brackets (< >). Claude Code writes XML for you automatically.
JSON
Another text format for data, commonly used when sending information to APIs. It uses curly braces { } and is easier to read than XML.
UUID
Universally Unique Identifier. A long string of letters and numbers (like _a1b2c3d4-e5f6-7890-abcd-ef1234567890) that uniquely identifies a question or test. Every question and test gets its own UUID.
Test ID
The unique identifier for a test (a UUID). You receive this when a test is created via the API. Also sometimes called a "Timeback ID" in the admin interface — they are the same thing.
Timeback ID
Another name for Test ID used in the AlphaTest admin interface. It's the same UUID you get when creating a test. The terms are interchangeable.
Assessment Item
The technical name for a single question. Each question is stored as an "assessment item" in the system.
Assessment Test
The technical name for a test (a collection of questions grouped together with settings like time limits).
Bearer Token
A temporary password that proves you're allowed to use the API. It's generated from your client ID and secret. Claude Code handles this automatically.
Endpoint
A specific URL that the API listens to. For example, the "create question" endpoint is where you send new questions. Think of it as a specific desk at a service counter.
LaTeX
A system for writing math equations in text form. For example, \frac{3}{4} displays as the fraction ¾. The AlphaTest player automatically renders LaTeX as visual math.
Stimulus
A reading passage, image, or shared context that appears alongside questions. Multiple questions can reference the same stimulus (e.g., 5 questions about one reading passage).
TTS
Text-to-Speech. A feature that reads question text aloud to students. Useful for younger students or as an accessibility accommodation.
Rubric
A set of criteria and point values used to evaluate written responses. For AI-graded essays, the rubric tells the AI how to score the student's answer.
Metadata
Extra information about a question or test, like its subject, grade level, difficulty, and topic. This data helps organize and search for content.
Active time
The time a student spends working on a question, excluding time away and extended inactivity. It is reported to Timeback separately from the lifecycle duration used in existing time-on-task analytics. See Active Time Tracking.
Idle freeze
After 5 minutes with no interaction — or the instant the tab is hidden or the window loses focus — active time stops counting. The test stays open. Interaction resumes counting after an idle freeze; returning to the visible, focused test before the pause-warning threshold resumes counting automatically. Time away is not added back. See Idle & Auto-Pause.
Auto-pause
After 30 minutes with no interaction, the student gets a 10-second warning and then the test is auto-saved and paused. They are returned to the Dashboard's Paused tab with a Last paused badge on that test so they can resume it.
notQCed
Stands for "not Quality Checked." When you first import a test, it's assigned a "-notQCed" subject (like "Math-notQCed") to indicate it hasn't been reviewed for production use yet. Once reviewed, you change it to the final subject (like "Math").

End-to-End Workflow

Here's the complete process from start to finish. Every step is covered in detail later in this guide.

1. Prepare Questions → 2. Create via API → 3. Assemble Test → 4. Import to AlphaTest → 5. Add Media/TTS → 6. Preview → 7. Assign & Test
StepWhereWhat You Do
1. PrepareYour notes / spreadsheetWrite question text, answer choices, correct answers, subject, grade, and type.
2. Create questionsClaude Code / APIGenerate the questions. Collect the returned question IDs.
3. Assemble testClaude Code / APIBundle questions into a test. Get the Test ID.
4. Import testAdmin PlatformGo to Test Inventory → Add Test from QTI. Enter Test ID, name, subject, grade. An AI review runs before the test is added.
5. Add mediaClaude Code / AdminNarration (read-aloud) with the AlphaTest Authoring skill in Claude Code, or in the Question Builder; passages and images through Claude Code.
6. PreviewAdmin PlatformGo to Custom Tests, find your test, click Preview Test.
7. Self-testAdmin PlatformAssign the test to yourself via Test Assignment. Complete it as a student.
8. AssignAdmin PlatformAssign the test to students using their email addresses.
Tip
Steps 1-3 happen via the API (using Claude Code or direct API calls). Steps 4-8 happen in the AlphaTest web interface.

Working with Claude Code

Claude Code is an AI assistant that can interact with the AlphaTest APIs for you. Instead of writing XML and making API calls yourself, you can describe what you want in plain English.

Watch: step-by-step walkthrough

Check the video below to see, step by step, how to create and publish a test with Claude Code.

Example Prompts

Creating questions
"Create 5 multiple-choice Math questions for Grade 5 about fractions. Include 4 answer options each."
Creating a test
"Create a standard test with these 10 question IDs: [paste IDs here]."
Timed test
"Create a timed test with a 30-minute time limit using these question IDs: [paste IDs]."
Finding existing questions
"Find 3 existing multiple-choice Science questions for Grade 6 about ecosystems."

What to Provide Claude Code

InputDescriptionExample
Question textThe prompt the student will see"What is 3/4 + 1/8?"
Answer choices / expected answerThe options or the correct answerA) 5/8 B) 7/8 C) 1 D) 3/8
Correct answerWhich option is rightB) 7/8
SubjectMust match allowed subject exactlyMath, Reading, Language, Science
GradeGrade level as string"5" (fifth grade), "0" (K), "-1" (PreK)
Question typeThe formatchoice, text-entry, extended-text, etc.
Standard (optional)Learning standard or topic"Number Operations"
Tip
Search before you create! If you need a Grade 3 Math question about fractions, there's probably one already in the system. Searching, copying, and modifying is faster than creating from scratch.

Download the AlphaTest Authoring Skill

We package everything on this page into a ready-made Claude Code skill. Once installed, you just describe the test you want — for example, "Help me make a 10-question Grade 5 fractions test" — and Claude walks you through the whole process in plain English: planning the test (the blueprint), drafting the questions, generating a preview for you to review, publishing to QTI, and importing into AlphaTest. You never touch XML or commands.

1. Download & unzip
Download the skill (.zip) (sign in with an AlphaTest account that has Test Builder access), then unzip it. You'll get a folder called alphatest-authoring.
2. Install it
Move the alphatest-authoring folder into your Claude Code skills folder: ~/.claude/skills/alphatest-authoring (create the skills folder if it isn't there).
3. Add your login
Open Claude Code and ask it to create a test. The first time, it makes a .env file and asks you to paste the Client ID and Client Secret from your AlphaTest contact. They stay on your computer.
What you need
Claude Code and Python 3 (already on most computers). Nothing is ever published until you review it and say go.

Creating Variants with Claude Code

A variant is a new question that measures exactly the same skill as a question you already trust. The standard, the difficulty and the kind of thinking stay the same. Only the surface changes: the names, the numbers, the story.

Variants let you reuse a good question without showing students the same words twice. They are useful for retakes, for practice before a test, and for giving two classes the same test with different questions.

What the Variants Skill Does

You give Claude a test. For every question in it, Claude writes three variants, checks them, and shows them to you next to the original. You decide which ones to keep. Then Claude delivers them in one of two ways, and it always asks you which one you want.

A brand new test
The variants you approved go into a new test of their own. Your original test is not involved at all.
A new version of a test you choose
You tell Claude which test. The new version keeps every question that test has today and adds the variants at the end. Claude never picks a test for you, and before preparing the new version it asks you to check in Tests that the version it found is the one listed there.
Your existing tests are safe
The skill only adds new questions and new tests. It never changes or deletes a question, a passage or a test that already exists, even if you ask it to. When a test gets a new version, the version students are using today stays exactly as it is, so nobody in the middle of a test is affected.

Download the AlphaTest Variants Skill

1. Download & unzip
Download the skill (.zip) (sign in with an AlphaTest account that has Test Builder access), then unzip it. You will get a folder called alphatest-variants.
2. Install it
Move the alphatest-variants folder into your Claude Code skills folder: ~/.claude/skills/alphatest-variants (create the skills folder if it is not there).
3. Add your login
Open Claude Code in any folder on your computer and ask it for variants. Claude keeps its working files there. The first time, it makes a .env file in that folder and asks you to paste the Client ID and Client Secret from your AlphaTest contact. They stay on your computer. If you already use the Authoring skill in that folder, your login is already there.
What you need
Claude Code and Python 3. Many computers have Python already, but Windows usually does not. Claude Code tells you if it is missing. Nothing is ever published until you review it and say go.

What to Ask For

A whole test
"Make variants of every question in the test [Test ID]."
Some questions
"Make variants of questions 2, 5 and 7 of the test [Test ID]."
One question
"Make variants of the question [Question ID]."
A test you only know by name
"Find my Grade 5 fractions test and make variants of it."

What Happens, Step by Step

1
Claude writes a short plan

It tells you what it is going to do and waits for you to say yes.

2
Claude asks where the variants should go

A brand new test, or a new version of a test you name. It asks every time and never decides for you.

3
Claude reads what each question measures

The standard, the skill, the level of thinking it requires, and the mistake behind each wrong answer. If a question does not say which standard it covers, Claude suggests one and asks you to confirm it.

4
Claude writes three variants of each question and checks them

Each variant must have the same structure as the original, must display correctly, and must be accepted by the platform. It is then solved a second time without looking at the marked answer, to confirm that the answer is right and that the question still measures the same skill at the same level. A variant that fails is rewritten. After three failed tries it is dropped.

5
You review them

Claude gives you a page to open in your browser. Each question shows the original on the left and its variants beside it, with the right answer highlighted. For multiple choice questions, the page also shows the mistake each wrong answer is meant to catch, so you can confirm the variants catch the same ones. You say which ones to keep, which to drop, and what to change.

6
Claude publishes what you approved

Only after you say go. Then it gives you a Test ID and walks you through adding it in AlphaTest.

Adding the Result to AlphaTest

For a brand new test: open Tests in the sidebar, click Add test from QTI, paste the Test ID Claude gave you, give the test a name, pick the same subject and grade as the original questions, and click Add Test.

For a new version of a test you chose: open Tests in the sidebar, click Add test from QTI, paste the Test ID Claude gave you, turn on Make this a new version of an existing test, select your test, and click Add Test. The name and the settings come from your test. When you are done, tell Claude and it will confirm that every question arrived.

Students who already started the old version finish it normally. New assignments go to the new version.

What the Skill Leaves Out

When a faithful variant is not possible, Claude skips that question and tells you which one and why. It does not make something up. This happens with:

Questions based on a reading passage are supported. Their variants ask something new about the same passage.

Finding Your Variants Later

Open Variants in the sidebar. The page lists the original questions that have variants. Click one to see the variants that came from it. If the Created by me button is switched on, switch it off, because variants made with this skill are not filed under your name. If yours are not there yet, they are still in your test and work normally. Ask your AlphaTest contact to check.

If the variants went into a new version of one of your tests, that version holds AlphaTest's own copies of them. The Variants page shows the variants Claude published, not those copies, so editing a variant from the Variants page does not change your test.

Question Types Reference

AlphaTest supports a wide range of question formats through the QTI 3.0 standard. Each type uses a specific XML interaction element.

TypeAPI NameWhat the Student DoesBest For
Multiple ChoicechoicePicks one answer from a listKnowledge checks, quick recall
Multiple SelectchoicePicks several answers ("select all that apply")Questions with more than one right answer
Text Entrytext-entryTypes a short answer (number, word)Math answers, fill-in-the-blank
Extended Textextended-textWrites a longer response (paragraph)Essays, open-ended explanations
Inline Choiceinline-choiceSelects from dropdown menu in a sentenceGrammar, cloze exercises
Gap Matchgap-matchDrags words into blanksVocabulary, sentence completion
Hot TexthottextClicks on correct word(s) in a passageIdentifying key terms
OrderorderArranges items in correct sequenceChronological events, process steps
MatchmatchSorts items into categoriesClassification exercises
HotspothotspotPlaces points on a number lineLine plots, plotting values
Graphic Gap Matchgraphic-gap-matchClick to place points on a coordinate grid (names optional), or a number lineNumber lines, coordinate plotting
Plot a Lineplot-lineClick two points to draw lines on a coordinate grid (names optional)Slope & linear functions (8.EE / 8.F), segments
Box Plotbox-plotPlace the five-number summary (min, Q1, median, Q3, max) on a number line; the box & whiskers draw automaticallyBox-and-whisker plots (6.SP), spread & quartiles
Select a Pointselect-pointClick a tick to plot a point or an inequality on a number line (open/closed endpoint + shaded ray; compound “between”)Inequalities (6.EE), plotting points, bounded ranges
SlidersliderDrag one handle along a track to a single numeric value (optional step snapping; horizontal or vertical)Estimation, reading a value off a scale, “set the slider to …”
Portable Custom (PCI)portable-customInteracts with specialized widgetFraction editors, histograms
UploaduploadUploads a file as responseaudio (phonics)
Composite (Multi-part)(several in one)Answers two or more parts in a single questionRead a figure, then answer related blanks
Note
API type names are always kebab-case (e.g., text-entry, not textEntry). Use these exact strings when searching the API or specifying question types.

What each type looks like

A quick visual reference of how each question type appears to students.

Multiple choice example
Multiple Choice (choice)
Multiple select example
Multiple Select (choice, multiple)
Text entry example
Text Entry (text-entry)
Extended text example
Extended Text (extended-text)
Inline choice example
Inline Choice (inline-choice)
Match / true-false table example
Match / True-False table (match)
Order example
Order (order)
Gap match example
Gap Match (gap-match)
Hot text example
Hot Text (hottext)
Coordinate grid example
Graphic Gap Match — coordinate grid (graphic-gap-match)
Number line example
Graphic Gap Match — number line
Histogram example
Portable Custom — histogram (portable-custom)
Dot plot / line plot example
Portable Custom — line/dot plot
Composite multi-part example
Composite / Multi-part
Upload example
Upload (upload)

Test Types Reference

Test TypeHow It WorksWhen to Use It
Standard
Default
No time pressure. Students navigate freely and submit at their own pace. Regular quizzes, practice tests, homework assignments.
Timed
Clock
A countdown clock is displayed. The test auto-submits when time runs out. Students can still navigate freely between questions. Exams, standardized test practice.
Fluency
Speed
A special timed test measuring speed. Students answer as many questions as possible before time runs out. They cannot go back to previous questions. Scored by correct answers per minute. Math fact drills, speed reading checks.

Configuration Comparison

Technical detail — Claude Code uses this automatically
<qti-time-limits> on the test
the only one that counts
time-dependent on the testfluency in metadata
Standard(omit)(set for you)(omit)
Timedmax-time="PT40M"(set for you)(omit)
Fluencymax-time="PT2M" fluency="true"(set for you)"true"

Only the first column reaches the student. time-dependent on the test is set automatically when the time-limits element is present (and time-dependent on a question is always "false", even inside a fluency test — it does not make anything timed). The fluency metadata entry only affects how the test is listed; the player takes the flag from the fluency attribute of <qti-time-limits>.

A time limit set only on this admin screen never reaches the student
The Time limit box and Fluency checkbox on a test are stored beside the test, and the player never reads them — it reads <qti-time-limits> inside the test itself. A test can therefore look completely correct here (marked fluency, 1 minute) and still be handed to students untimed: no countdown, no warm-up, the full tool toolbar (calculator, scratchpad, zoom) visible, and free navigation and review. Fix it with the authoring skill — ask Claude Code to "make this a 1-minute fluency test" (set_test_time_limit.py --test-id <id> --minutes 1 --fluency) — or set it in the Test Builder.
AlphaTest now refuses to import a test whose time limit is set up wrongly

Adding a test checks its timing first, and answers one of three ways:

  • Nothing claims it is timed — imported as usual. Nothing is invented for it.
  • A length is stated but not stored inside the test — imported, and the missing part is written for it. The length was already there, so nothing is guessed.
  • Anything that would change what a student experiences — refused, with an explanation of what to fix, and nothing is added to the inventory.

The refused cases are: marked as fluency with no time limit anywhere (a fluency test is its window — nobody can guess how fast a student should have to be); the settings and the stored limit disagreeing about how long; marked as fluency while the stored limit is an ordinary timed one (making it fluency would hide the tools, stop students going back, and switch the score to facts per minute); and a length that reads as text but means nothing, like PT0M.

All of them are fixed the same way — ask Claude Code to set the time limit (set_test_time_limit.py), or set it in the Test Builder, then import again. Asking Claude Code to "render-check the test" first tells you the same thing before you get to the import screen.

The same check applies when you edit a test in the Test Builder that hasn't been added to AlphaTest yet: the save is refused, with the same explanation, and nothing is changed. The Time limit box is in that same dialog — set it there and save again. A test that is already in the Test Inventory is not affected; you can keep editing it as normal.

Important
Fluency tests have special rules: students can never navigate backwards, the tool toolbar is hidden, there is a 5-second "Get ready" warm-up, and the score is based on correct answers per minute. These tests typically use short text-entry math problems.

Time Format (ISO 8601 Duration)

DurationFormat
60 secondsPT60S
2 minutesPT2M
30 minutesPT30M
1 hourPT1H
1 hour 30 minutesPT1H30M

Allowed Values

Subjects

The following subject names are accepted by AlphaTest. Use exactly as written — they are case-sensitive.

Core Subjects
ELA • Math • Reading • Language • Science • Social Studies • Writing • Vocabulary
Special
FastMath • Phonetic
Variants (Special Programs)
These are used for specific test programs. Most educators should use the Core Subjects above.
Athena variants (e.g., Math-athena) = Athena program assessments
ISEE variants (e.g., Math-ISEE) = ISEE prep assessments. Note that ISEE also has section names that are not built from a Core Subject — use Quant-ISEE for the Quantitative Reasoning section.
Unit variants (e.g., Math-unit) = Unit-level assessments (tests covering a single instructional unit rather than a full course)

Grades

LevelValue
Pre-Kindergarten"-1"
Kindergarten"0"
1st through 12th Grade"1" through "12"
Note
Grade values are always strings in the JSON payload, even though they look like numbers.

Authentication

Technical — Claude Code handles this for you

All QTI API endpoints require authentication using a security token. If you're using Claude Code, just provide your client ID and client secret and it handles the rest. The details below are for reference.

Getting a Token

cURL
curl -X POST https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com/oauth2/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&client_id=<your-client-id>&client_secret=<your-client-secret>"

Using the Interactive Docs

  1. Navigate to https://qti.alpha-1edtech.ai/docs/
  2. Click Authorize
  3. Enter your client_id and client_secret
  4. Click Authorize to generate your Bearer token
Note
Contact the platform team to obtain a client ID and client secret for your application. The IDP server for production is:
https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com

Creating Questions (Assessment Items)

What to tell Claude Code
"Create [number] [type] [subject] questions for Grade [X] about [topic]. Here are the questions: [list your questions, answer choices, and correct answers]."

Claude Code will handle all the XML and API calls. The sections below explain the underlying details if you want more control.

Two Approaches

Option A: Copy & Modify (Recommended)
Search for an existing question of the same type, copy it, modify the text and answers, and save as new. This is faster and avoids XML mistakes.
Option B: Write from Scratch
Write the QTI XML yourself following the templates in this guide, validate it, and submit via API. More control but requires careful XML construction.

Step 1: Fetch a Real Example

Always start by fetching an existing question of the type you need:

HTTP
GET https://qti.alpha-1edtech.ai/api/assessment-items?type=choice&subject=Math&grade=5&limit=1

Replace type with the question type you need: choice, text-entry, extended-text, inline-choice, match, order, gap-match, hottext, graphic-gap-match, plot-line, box-plot, select-point, slider, or upload.

Heads-up: hotspot & PCI
Number line (hotspot) items and Portable Custom (portable-custom) items are stored by the API with type: "unknown", so ?type=hotspot and ?type=portable-custom will not return them. Filter with ?type=unknown, or search the rawXml for numberLinePlot / qti-portable-custom-interaction instead.

From the response, use only the rawXml field.

Step 2: Modify the XML

From the fetched rawXml, change:

Keep everything else: namespace declarations, schema locations, outcome declarations, response processing.

Step 3: Upload the Question

Build the JSON payload in Python (never in shell — shell heredocs corrupt LaTeX backslashes):

Python
import json

xml_string = '''<qti-assessment-item ...>...</qti-assessment-item>'''

payload = {
    "format": "xml",
    "xml": xml_string,
    "metadata": {
        "subject": "Math",
        "grade": "5"
    }
}

with open("payload.json", "w") as f:
    json.dump(payload, f)

Then POST to the API:

HTTP
POST https://qti.alpha-1edtech.ai/api/assessment-items
Content-Type: application/json
Authorization: Bearer {your_token}
Body: contents of payload.json

Response (201): returns the item with its identifier. Save this identifier — you'll need it to assemble the test.

Metadata Fields

FieldRequiredNotes
subjectRequiredExact match required (e.g., "Math", "Reading"). Case sensitive.
gradeRequiredString: "5", "0" (Kindergarten), "-1" (PreK).
standardOptionalLearning standard or topic (e.g., "Number Operations").
lessonOptionalSpecific lesson name.
difficultyOptional"easy", "medium", or "hard".
Warning
Never build JSON in shell. Shell heredocs corrupt LaTeX backslashes. Always use Python, Node.js, or another programming language with proper JSON serialization.

Mandatory XML Headers

Every question must include these exact namespace headers. Missing or modified values will cause the platform to reject the question.

XML
<qti-assessment-item
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqtiasi_v3p0
        https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_itemv3p0p1_v1p0.xsd"
    identifier="_YOUR-UUID-HERE"
    title="multiple-choice"
    time-dependent="false">

    <!-- question content -->

</qti-assessment-item>

Setting Min/Max Points Per Question

Add normal-maximum and normal-minimum to the outcome declaration:

XML
<qti-outcome-declaration identifier="SCORE" cardinality="single"
    base-type="float" normal-maximum="20" normal-minimum="0">
  <qti-default-value>
    <qti-value>0</qti-value>
  </qti-default-value>
</qti-outcome-declaration>

XML Templates by Question Type

Technical Reference — Used by Claude Code automatically

These XML templates are used by Claude Code (or other API tools) when creating questions. Educators do not need to read or understand these templates — they are here for reference and for AI assistants to use. If you're using Claude Code, simply describe your questions in plain English.

Always prefer fetching a real example from the API over using these templates.

Tables in statement, options, match labels, etc

Many question fields accept HTML, not just plain text. You can embed tables in the statement (<qti-prompt>), answer options (<qti-simple-choice>), match row and column labels (<qti-simple-associable-choice>), gap text (<qti-gap-text>), and other rich-content elements. Wrap block content in <p> and <div> as needed.

You can also use the Question Builder

You do not have to hand-write table HTML. In the Question Builder, click Insert Table in the statement editor toolbar, then fill in cells (including math via the Σ button). For multiple-choice questions, each answer option is a rich editor—tables you add via XML (or import) display there and can be edited in the builder.

When authoring XML directly (for example via Claude Code or the API), use standard HTML table markup. Math in cells uses <span class="input__math" data-latex="x"></span> (see Math & LaTeX).

XML — table in the statement
<qti-prompt>
  <p>Use the table below to answer the question.</p>
  <table>
    <thead><tr>
      <th>Input</th>
      <th>Output</th>
    </tr></thead>
    <tbody>
      <tr><td>2</td><td>4</td></tr>
      <tr><td>3</td><td>9</td></tr>
    </tbody>
  </table>
</qti-prompt>

Multiple Choice (choice)

XML
<qti-assessment-item
  xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqtiasi_v3p0
      https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_itemv3p0p1_v1p0.xsd"
  identifier="_UNIQUE-UUID-HERE"
  title="multiple-choice"
  time-dependent="false">

  <qti-response-declaration identifier="RESPONSE"
      cardinality="single" base-type="identifier">
    <qti-correct-response>
      <qti-value>CORRECT-CHOICE-UUID</qti-value>
    </qti-correct-response>
  </qti-response-declaration>

  <qti-outcome-declaration identifier="SCORE"
      cardinality="single" base-type="float">
    <qti-default-value><qti-value>0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-item-body>
    <qti-choice-interaction response-identifier="RESPONSE"
        max-choices="1">
      <qti-prompt>Question text goes here</qti-prompt>
      <qti-simple-choice identifier="CHOICE-UUID-1">Answer A</qti-simple-choice>
      <qti-simple-choice identifier="CHOICE-UUID-2">Answer B</qti-simple-choice>
      <qti-simple-choice identifier="CHOICE-UUID-3">Answer C</qti-simple-choice>
      <qti-simple-choice identifier="CHOICE-UUID-4">Answer D</qti-simple-choice>
    </qti-choice-interaction>
  </qti-item-body>

  <qti-response-processing
    template="https://purl.imsglobal.org/spec/qti/v3p0/rptemplates/match_correct"/>
</qti-assessment-item>

Answer choices can include tables when each option needs its own data set (for example, “which table shows…” questions). Wrap the label and table in a <div> inside <qti-simple-choice>:

XML — table in an answer choice
<qti-simple-choice identifier="_option_A"><div>
  <p><strong>Table A</strong></p>
  <table>
    <thead><tr>
      <th><span class="input__math" data-latex="x"></span></th>
      <th><span class="input__math" data-latex="y"></span></th>
    </tr></thead>
    <tbody>
      <tr><td>1</td><td>3</td></tr>
      <tr><td>2</td><td>6</td></tr>
    </tbody>
  </table>
</div></qti-simple-choice>

Multiple Select (choice, multiple answers)

Same as Multiple Choice, but the student may pick more than one option ("select all that apply"). The only differences from the template above:

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="multiple" base-type="identifier">
  <qti-correct-response>
    <qti-value>CHOICE-UUID-1</qti-value>
    <qti-value>CHOICE-UUID-3</qti-value>
  </qti-correct-response>
</qti-response-declaration>
<!-- ...item body... -->
<qti-choice-interaction response-identifier="RESPONSE" max-choices="2">
  <qti-prompt>Select all that apply.</qti-prompt>
  <!-- qti-simple-choice options as usual -->
</qti-choice-interaction>
Scoring
With the match_correct template the student must select the exact correct set for full credit. For partial credit per checkbox, copy a real example that uses a map_response template.

Text Entry (text-entry)

XML
<!-- Inside qti-assessment-item with standard headers -->

<qti-response-declaration identifier="RESPONSE"
    cardinality="single" base-type="string">
  <qti-correct-response>
    <qti-value>42</qti-value>
  </qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <p>What is 6 &times; 7?</p>
  <qti-text-entry-interaction response-identifier="RESPONSE"
      expected-length="20"/>
</qti-item-body>

<qti-response-processing
  template="https://purl.imsglobal.org/spec/qti/v3p0/rptemplates/match_correct"/>

Blanks Inside a Maths Expression

When the input box must sit inside a fraction, root, or equation, keep two linked representations per blank with the same id:

  1. <qti-text-entry-interaction response-identifier="…"> — delivery and scoring
  2. {text_entry:…} inside the sibling data-latex attribute — visual position in the formula

Canonical reference: item _69feaa39-d3e8-41aa-8dc2-9bfd6dcc25ba (three embedded blanks). Expected answers in <qti-correct-response> are plain strings (6, 81, 16) — what students type, not LaTeX. For these blanks, set expected-length to the exact character length of the longest acceptable answer for that blank (trimmed) — not the plain-blank default of 20.

XML — three embedded blanks (excerpt)
<ol>
  <li>
    <qti-text-entry-interaction response-identifier="_te_1" expected-length="1"/>
    <span class="input__math"
          data-latex="\frac{{text_entry:_te_1}}{8}=\frac34"></span>
  </li>
  <li>
    <qti-text-entry-interaction response-identifier="_te_2" expected-length="2"/>
    <span class="input__math"
          data-latex="\sqrt{{text_entry:_te_2}}=9"></span>
  </li>
  <li>
    <qti-text-entry-interaction response-identifier="_te_3" expected-length="2"/>
    <span class="input__math"
          data-latex="\frac{\sqrt{64}}{\sqrt{{text_entry:_te_3}}}=2"></span>
  </li>
</ol>
Rules
  • Inside \frac{}{}, wrap the token in an extra group: \frac{{text_entry:_te_1}}{8}
  • Each blank needs its own <qti-response-declaration> with matching identifier
  • In the Question Builder, [[input:…]] before the maths span must use the same id
  • Interaction alone → blank beside the formula; {text_entry:…} alone → empty slot with no input
  • expected-length for LaTeX-embedded blanks = longest trimmed acceptable-answer length (e.g. 6→1, 81→2) — not 20, and not 2× / min-8

Extended Text (extended-text) — AI Auto-Graded

See the AI Auto-Grading section for full details on rubric design.

Put the stem in <qti-prompt> (or it renders blank)
The question stem must go inside a <qti-prompt> inside the <qti-extended-text-interaction> — not in a bare <p>. The player reads the stem from <qti-prompt>; a bare <p> passes XML validation but the student sees "Question content is missing." The <qti-rubric-block> also needs a use attribute (e.g. use="scoring").
XML
<!-- Inside qti-assessment-item with standard headers -->

<qti-response-declaration identifier="RESPONSE"
    cardinality="single" base-type="string"/>

<qti-outcome-declaration identifier="SCORE"
    cardinality="single" base-type="float">
  <qti-default-value><qti-value>0</qti-value></qti-default-value>
</qti-outcome-declaration>
<qti-outcome-declaration identifier="completionStatus"
    cardinality="single" base-type="identifier"/>

<qti-item-body>
  <qti-rubric-block use="scoring" view="scorer">
    <qti-content-body>
      Evaluate the student's response based on the following criteria:
      1. Content accuracy (0-3 points): Does the response demonstrate
         understanding of the topic?
      2. Use of evidence (0-3 points): Does the response cite specific
         details from the passage?
      3. Organization and clarity (0-2 points): Is the response well
         structured?
      4. Grammar and mechanics (0-2 points): Is the writing clear
         and free of errors?
      Total: 10 points.
    </qti-content-body>
  </qti-rubric-block>
  <qti-extended-text-interaction response-identifier="RESPONSE">
    <qti-prompt>Based on the passage, explain how the water cycle affects weather patterns.
       Use at least two specific details from the text.</qti-prompt>
  </qti-extended-text-interaction>
</qti-item-body>

<qti-response-processing>
  <qti-response-condition>
    <qti-response-if>
      <qti-not>
        <qti-is-null>
          <qti-variable identifier="RESPONSE"/>
        </qti-is-null>
      </qti-not>
      <qti-set-outcome-value identifier="SCORE">
        <qti-base-value base-type="float">1</qti-base-value>
      </qti-set-outcome-value>
      <qti-set-outcome-value identifier="completionStatus">
        <qti-base-value base-type="identifier">completed</qti-base-value>
      </qti-set-outcome-value>
    </qti-response-if>
  </qti-response-condition>
</qti-response-processing>

Inline Choice (inline-choice)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="single" base-type="identifier">
  <qti-correct-response><qti-value>CORRECT-UUID</qti-value></qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <p>The capital of France is
    <qti-inline-choice-interaction response-identifier="RESPONSE">
      <qti-inline-choice identifier="CHOICE-1">London</qti-inline-choice>
      <qti-inline-choice identifier="CHOICE-2">Paris</qti-inline-choice>
      <qti-inline-choice identifier="CHOICE-3">Berlin</qti-inline-choice>
    </qti-inline-choice-interaction>.
  </p>
</qti-item-body>

Match (match)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="multiple" base-type="directedPair">
  <qti-correct-response>
    <qti-value>source1 target1</qti-value>
    <qti-value>source2 target2</qti-value>
  </qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <qti-match-interaction response-identifier="RESPONSE">
    <qti-prompt>Match each item to its category.</qti-prompt>
    <qti-simple-match-set>
      <qti-simple-associable-choice identifier="source1" match-max="1">Solar</qti-simple-associable-choice>
      <qti-simple-associable-choice identifier="source2" match-max="1">Coal</qti-simple-associable-choice>
    </qti-simple-match-set>
    <qti-simple-match-set>
      <qti-simple-associable-choice identifier="target1" match-max="2">Renewable</qti-simple-associable-choice>
      <qti-simple-associable-choice identifier="target2" match-max="2">Non-Renewable</qti-simple-associable-choice>
    </qti-simple-match-set>
  </qti-match-interaction>
</qti-item-body>
Typical match-max values
  • True/false table: each row match-max="1"; each column match-max = number of rows (many rows may select TRUE or FALSE).
  • Gaps, one item per zone: each draggable item and each drop zone match-max="1".
  • Gaps, multiple items in one zone: raise the zone’s match-max (e.g. 2 when two items may land in the same drop zone).
Scoring — all-or-nothing (default)

Match items award full credit or zero (SCORE = 1 or 0). The student must satisfy every directed pair in <qti-correct-response> — one wrong, missing, or substituted pairing scores 0. match-max limits placement; it does not enable partial credit.

Shape A — match_correct template (class="qti-match-tabular" only):

<qti-response-processing template="https://purl.imsglobal.org/spec/qti/v3p0/rptemplates/match_correct"/>

Use this one-liner for true/false tables and other tabular match grids.

Shape B — inline block (gaps layout — required): gaps match (no qti-match-tabular class) must not use the match_correct template. Use inline <qti-response-processing> with one <qti-match> per required pair inside <qti-and>, wrapped in <qti-or> as on live items. Canonical example: _669c0dca-27c8-4b0a-a561-9f570df60683 (“Drag coins into the purse to make 30¢”).

XML — Shape B (gaps all-or-nothing)
<qti-response-processing>
  <qti-response-condition>
    <qti-response-if>
      <qti-or>
        <qti-and>
          <qti-match>
            <qti-base-value base-type="directedPair">_28f7c0d8b76be77a69 _308f9d99141156241c</qti-base-value>
          </qti-match>
          <qti-match>
            <qti-base-value base-type="directedPair">_3d55ae04135610908a _308f9d99141156241c</qti-base-value>
          </qti-match>
          <qti-match>
            <qti-base-value base-type="directedPair">_7eaf3d642284cdb5eb _308f9d99141156241c</qti-base-value>
          </qti-match>
        </qti-and>
        <qti-and>
          <!-- duplicate branch as emitted by the platform -->
        </qti-and>
      </qti-or>
      <qti-set-outcome-value identifier="SCORE">
        <qti-base-value base-type="float">1</qti-base-value>
      </qti-set-outcome-value>
    </qti-response-if>
    <qti-response-else>
      <qti-set-outcome-value identifier="SCORE">
        <qti-base-value base-type="float">0</qti-base-value>
      </qti-set-outcome-value>
    </qti-response-else>
  </qti-response-condition>
</qti-response-processing>
  • Multi-item drop zones (three 10¢ coins in one purse) are still all-or-nothing — fetch rawXml from _669c0dca-27c8-4b0a-a561-9f570df60683 before cloning.
  • Review mode may colour individual pairings green/red, but scoring is still all-or-nothing.
  • For partial credit per row or pair, copy a real item that uses the map_response template (gap-match often does; see Gap Match).

Order (order)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="ordered" base-type="identifier">
  <qti-correct-response>
    <qti-value>step1</qti-value>
    <qti-value>step2</qti-value>
    <qti-value>step3</qti-value>
  </qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <qti-order-interaction response-identifier="RESPONSE">
    <qti-prompt>Put these events in chronological order.</qti-prompt>
    <qti-simple-choice identifier="step1">Declaration of Independence</qti-simple-choice>
    <qti-simple-choice identifier="step2">Constitution ratified</qti-simple-choice>
    <qti-simple-choice identifier="step3">Bill of Rights</qti-simple-choice>
  </qti-order-interaction>
</qti-item-body>

Gap Match (gap-match)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="multiple" base-type="directedPair">
  <qti-correct-response>
    <qti-value>word1 gap1</qti-value>
    <qti-value>word2 gap2</qti-value>
  </qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <qti-gap-match-interaction response-identifier="RESPONSE">
    <qti-prompt>Drag each process into the blank that correctly completes the sentence.</qti-prompt>
    <qti-gap-text identifier="word1" match-max="1">evaporation</qti-gap-text>
    <qti-gap-text identifier="word2" match-max="1">condensation</qti-gap-text>
    <p>Water rises through <qti-gap identifier="gap1"/>
       and forms clouds through <qti-gap identifier="gap2"/>.</p>
  </qti-gap-match-interaction>
</qti-item-body>

Gaps Inside a Maths Expression

A drag target can sit inside a formula (e.g. a fraction denominator). You need both:

  1. An empty \htmlData{gapslot=<gap-id>}{} token in data-latex
  2. A matching <qti-gap identifier="<gap-id>"/> inside the same <span class="input__math">

Correct pairs are still <gap-text-id> <gap-id>. Draggable options may be plain text or LaTeX spans inside <qti-gap-text>.

XML — gap in a fraction denominator (excerpt)
<qti-correct-response>
  <qti-value>_gt_8 _gap_denom</qti-value>
</qti-correct-response>
…
<qti-gap-text identifier="_gt_8" match-max="1">8</qti-gap-text>
<p>
  <span class="input__math"
        data-latex="\frac{4}{\htmlData{gapslot=_gap_denom}{}}=\frac12">
    <qti-gap identifier="_gap_denom"/>
  </span>
</p>
Rules
  • The \htmlData{gapslot=…}{} braces must be empty
  • The maths span and its <qti-gap> elements must stay inside <qti-gap-match-interaction>
  • LaTeX draggables: <qti-gap-text><span class="input__math" data-latex="\frac{1}{2}"></span></qti-gap-text>

Image-Based Draggable Options

In addition to plain-text draggables, Gap Match answer options can include uploaded images (with optional text). The interaction structure, response type (directedPair), and scoring rules are the same as for text-only items described above—only the body of each <qti-gap-text> differs.

Creating Image Draggables in Question Builder

Image draggables are authored in the Question Builder’s Gap Match interaction block, under Answer options (not via the statement toolbar).

  1. Create or edit a Gap Match question and open the Interactive Editor tab.
  2. In the Answer options list at the bottom of the editor, hover an option row and click the image icon (Upload image).
  3. Select an image file from your device. The admin uploads it to the asset bucket (same upload flow as Adding Images — Option A) and inserts it into that option.
  4. Click the image thumbnail in the option row to select it, then drag a corner handle to resize. Aspect ratio is preserved while resizing.
  5. Optionally type text in the same row; an option can contain text only, image only, or both.
  6. Assign correct answers using the settings icon on each gap in the statement, as for any Gap Match item.
  7. Use the Preview tab to confirm draggables and gaps; the embedded player renders option images at the saved dimensions.

Image dimensions are stored as inline style="width: …px; height: …px;" on the <img> tag inside the option content. They persist through save, reload, import, and export. Legacy options that used a pasted image URL (without dimensions) continue to load; authors can resize them after opening the question.

QTI Representation

When the question is published, each draggable option becomes a <qti-gap-text> element. Image content is embedded as HTML inside the element body (see also Tables in Rich Content — <qti-gap-text> accepts rich HTML).

XML — image draggables (excerpt)
<qti-gap-text identifier="b2d395f5-f4b3-4e01-a60f-82a2904174cf" match-max="1">
  Test
  <img
    src="https://..."
    alt="Screenshot_20251006_103837_Slack.jpg"
    style="width: 85px; height: 86px;"
  />
</qti-gap-text>

<qti-gap-text identifier="5bdac6e5-75f9-42ac-afd5-edb69ddd2cfb" match-max="1">
  <img
    src="https://..."
    alt="image.png"
    style="width: 67px; height: 83px;"
  />
</qti-gap-text>
Response Mapping

Image-based draggables use the same directed-pair response model as text draggables: each <qti-value> pairs a <qti-gap-text> identifier with a gap identifier. Scoring does not treat image options differently.

XML — correct response (excerpt)
<qti-correct-response>
  <qti-value>b2d395f5-f4b3-4e01-a60f-82a2904174cf 6d398c0f-a956-4934-8018-276568ad856d</qti-value>
  <qti-value>5bdac6e5-75f9-42ac-afd5-edb69ddd2cfb 485fce48-88f5-4a33-9117-55b6aca35244</qti-value>
</qti-correct-response>

The first token in each pair is the draggable (qti-gap-text) identifier; the second is the target gap identifier—identical to the text-only example above.

Image tokens gap match — drag each shape into the drop zone that names it
Image tokens — drag each shape into the drop zone that names it
Image tokens gap match — match each figure to its lines of symmetry
Image tokens — match each figure to its lines of symmetry
Drop Zones Over a Background Image (“Label the Image”)

A second image pattern places the drop targets on top of a picture — the student drags labels onto positions on a diagram, map, or timeline (“Label Image with Drag & Drop”). The background <img> sits in a position: relative container, and each drop zone is an absolutely-positioned <div> (carrying data-gap-id and an optional data-arrow-direction) layered over the image; each wraps one <qti-gap>. As with every Gap Match, the image and the gaps must live inside <qti-gap-match-interaction> — a stimulus placed outside the interaction is silently dropped by the player.

Adapted from live item _44808e88-bd96-416a-9bf2-a22b7fedd33b (strip <qti-catalog> / TTS and feedback before reusing). Important shape: three labels, three px drop zones on a fixed-size background image, map_response scoring.

XML — drop zones over a background image (excerpt)
<qti-response-declaration identifier="RESPONSE" cardinality="multiple" base-type="directedPair">
  <qti-correct-response>
    <qti-value>_gt_corinth _drop_corinth</qti-value>
    <qti-value>_gt_fire _drop_fire</qti-value>
    <qti-value>_gt_moche _drop_moche</qti-value>
  </qti-correct-response>
  <qti-mapping default-value="0" lower-bound="0">
    <qti-map-entry map-key="_gt_corinth _drop_corinth" mapped-value="0.3333333333333333"/>
    <qti-map-entry map-key="_gt_fire _drop_fire" mapped-value="0.3333333333333333"/>
    <qti-map-entry map-key="_gt_moche _drop_moche" mapped-value="0.3333333333333333"/>
  </qti-mapping>
</qti-response-declaration>
<qti-item-body>
  <qti-gap-match-interaction response-identifier="RESPONSE" shuffle="true">
    <qti-prompt>Place the following events in the timeline:</qti-prompt>
    <qti-gap-text identifier="_gt_corinth" match-max="1">146 BCE - The Battle of Corinth</qti-gap-text>
    <qti-gap-text identifier="_gt_moche" match-max="1">100 CE - Moche Culture Thrives in Peru</qti-gap-text>
    <qti-gap-text identifier="_gt_fire" match-max="1">64 CE - Great Fire of Rome</qti-gap-text>
    <div style="position: relative; display: inline-block;">
      <img src="https://mastery-track-assets.s3.us-east-1.amazonaws.com/alpha-teks-g4-social-studies-pretest-v5/3c758c8d675657f18474d8251d72def60a70564c.png" alt="Drag and drop image" style="display: block;" width="660" height="220" />
      <div style="position: absolute; top: 31px; left: 35px; width: 150px; height: 40px; border: 2px dashed #999; background: rgba(255,255,255,0.8);" data-gap-id="_drop_corinth" data-arrow-direction="down">
        <qti-gap identifier="_drop_corinth" />
      </div>
      <div style="position: absolute; top: 145px; left: 277px; width: 150px; height: 40px; border: 2px dashed #999; background: rgba(255,255,255,0.8);" data-gap-id="_drop_fire" data-arrow-direction="up">
        <qti-gap identifier="_drop_fire" />
      </div>
      <div style="position: absolute; top: 31px; left: 323px; width: 150px; height: 40px; border: 2px dashed #999; background: rgba(255,255,255,0.8);" data-gap-id="_drop_moche" data-arrow-direction="down">
        <qti-gap identifier="_drop_moche" />
      </div>
    </div>
  </qti-gap-match-interaction>
</qti-item-body>
<qti-response-processing template="https://purl.imsglobal.org/spec/qti/v3p0/rptemplates/map_response"/>

Each <div data-gap-id="X"> wraps a <qti-gap identifier="X"/>; the top/left pixels position the box over the image (the image’s width/height attributes are the coordinate frame). Correct pairs are still <gap-text-id> <gap-id> (e.g. _gt_corinth _drop_corinth). Optional data-arrow-direction is "up" or "down". Live example: test _test-08762a9a-…_v4, item _44808e88. There is no generator for this layout — copy that item, swap the picture, and remeasure each box by hand.

Rules
  • Drop-zone top/left/width/height must be plain px (e.g. top: 31px; left: 35px) in the same frame as the background <img>’s width/height attributes
  • Do not use % on the boxes, and do not size the background with responsive CSS alone (e.g. style="width:100%;height:auto") — the player only recognizes top/left as Npx and otherwise shows the picture with zero drop zones
  • Copy live ref _44808e88-bd96-416a-9bf2-a22b7fedd33b (test _test-08762a9a-…_v4) and remeasure; the AlphaTest authoring skill’s render-check rejects non-px Pattern B layouts
Label the image gap match — drop labels onto positions on a diagram
Drop zones over a background image — the student drags labels onto positions on the diagram

Hot Text (hottext)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="single" base-type="identifier">
  <qti-correct-response><qti-value>ht2</qti-value></qti-correct-response>
</qti-response-declaration>

<qti-item-body>
  <qti-hottext-interaction response-identifier="RESPONSE">
    <qti-prompt>Click the word that is the verb.</qti-prompt>
    <p>The cat <qti-hottext identifier="ht1">quickly</qti-hottext>
    <qti-hottext identifier="ht2">jumped</qti-hottext>
    over the <qti-hottext identifier="ht3">fence</qti-hottext>.</p>
  </qti-hottext-interaction>
</qti-item-body>

Hotspot (hotspot) — number line plot

Not supported: image hotspots
Clicking regions on an image (<qti-hotspot-interaction> with <img> and <qti-hotspot-choice>) is not supported — those items do not render for test takers. The only supported "hotspot" is the number line plot below.
XML
<qti-assessment-item
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    identifier="_340f83c7-3201-4744-977f-7c34fb07293c"
    title="Line Plot" time-dependent="false" xml:lang="en-US">

  <qti-response-declaration identifier="RESPONSE" cardinality="multiple" base-type="point">
    <qti-correct-response>
      <qti-value base-type="point">1.3333333333333335 2</qti-value>
      <qti-value base-type="point">1.5000000000000002 1</qti-value>
      <qti-value base-type="point">1.666666666666667 1</qti-value>
      <qti-value base-type="point">1.8333333333333337 3</qti-value>
    </qti-correct-response>
  </qti-response-declaration>

  <qti-outcome-declaration identifier="SCORE" cardinality="single" base-type="float">
    <qti-default-value><qti-value>0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-item-body>
    <qti-prompt><p>Complete the line plot to show the number of hours each student spent reading.</p></qti-prompt>
    <qti-position-object-interaction response-identifier="RESPONSE" max-choices="12"
        data-graph-type="numberLinePlot" data-numberline="true"
        data-x-min="1" data-x-max="2"
        data-show-ticks="true" data-snap-to-ticks="true" data-ticks-distance="1" data-minor-ticks="5"
        data-show-labels="true" data-point-face="cross" data-max-points-count="12"
        data-scoring-type="partialMatch" data-layout-width="600" data-layout-height="440">
      <qti-object data="data:image/svg+xml;base64,…" type="image/svg+xml" width="600" height="440"/>
    </qti-position-object-interaction>
  </qti-item-body>

  <qti-response-processing>
    <qti-set-outcome-value identifier="SCORE"><qti-base-value base-type="float">0</qti-base-value></qti-set-outcome-value>
    <qti-response-condition><qti-response-if>
      <qti-member><qti-base-value base-type="point">1.3333333333333335 2</qti-base-value><qti-variable identifier="RESPONSE"/></qti-member>
      <qti-set-outcome-value identifier="SCORE"><qti-sum><qti-variable identifier="SCORE"/><qti-base-value base-type="float">0.25</qti-base-value></qti-sum></qti-set-outcome-value>
    </qti-response-if></qti-response-condition>
    <!-- one qti-response-condition per correct point (partialMatch, +0.25 each) -->
  </qti-response-processing>
</qti-assessment-item>

Marker shape (data-point-face): absent, "circle" or "dot" → a filled dot (the default dot-plot look); "cross" or "x" → an X mark. Leave it off for a normal dot plot; the example above keeps "cross" only because the copied reference item was authored that way.

Graphic Gap Match (graphic-gap-match)

Number line — data-graph-type="axisLabels"

XML
<qti-assessment-item
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    identifier="_ca812f00-d004-4b0d-83c7-9b8fea5bbe1b"
    title="Number Line" time-dependent="false" xml:lang="en-US">

  <qti-response-declaration identifier="RESPONSE" cardinality="multiple" base-type="directedPair">
    <qti-correct-response>
      <qti-value base-type="directedPair">_label_list-item-d1swdcr9o _hotspot_-3.6</qti-value>
    </qti-correct-response>
  </qti-response-declaration>

  <qti-outcome-declaration identifier="SCORE" cardinality="single" base-type="float">
    <qti-default-value><qti-value>0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-item-body>
    <qti-prompt><p>Plot a point on the number line that represents <span data-latex="-3.6"></span>.</p></qti-prompt>
    <qti-graphic-gap-match-interaction response-identifier="RESPONSE"
        data-graph-type="axisLabels" data-numberline="true"
        data-x-min="-4" data-x-max="-3" data-y-min="-1.75" data-y-max="1"
        data-show-ticks="true" data-snap-to-ticks="true" data-ticks-distance="1" data-minor-ticks="9"
        data-scoring-type="exactMatch" data-valid-positions="-3.6"
        data-label-ids="list-item-d1swdcr9o" data-layout-width="600" data-layout-height="150">
      <qti-object data="<div></div>" type="image/png" width="100" height="100"/>
      <qti-gap-img identifier="_label_list-item-d1swdcr9o" match-max="1">
        <qti-object data="data:image/svg+xml;base64,…" type="image/svg+xml"/>
      </qti-gap-img>
      <qti-associable-hotspot identifier="_hotspot_-3.6" shape="rect" coords="0,0,50,50" match-max="1"/>
    </qti-graphic-gap-match-interaction>
  </qti-item-body>

  <qti-response-processing template="http://www.imsglobal.org/question/qti_v3p0/rptemplates/match_correct"/>
</qti-assessment-item>

Coordinate grid (grade / malha) — data-graph-type="quadrants"

XML
<qti-assessment-item
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    identifier="_5dbeeddf-eece-4974-b39d-cc77a52ff6b8"
    title="Graphing" time-dependent="false" xml:lang="en-US">

  <qti-response-declaration identifier="RESPONSE" cardinality="multiple" base-type="directedPair">
    <qti-correct-response>
      <qti-value base-type="directedPair">_answer-point-1000 _hotspot_4_6</qti-value>
      <qti-value base-type="directedPair">_answer-point-1001 _hotspot_6_4</qti-value>
      <qti-value base-type="directedPair">_answer-point-1002 _hotspot_3_0</qti-value>
    </qti-correct-response>
  </qti-response-declaration>

  <qti-outcome-declaration identifier="SCORE" cardinality="single" base-type="float">
    <qti-default-value><qti-value>0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-item-body>
    <qti-prompt><p>Graph points A(4,6), B(6,4) and C(3,0) on the coordinate plane.</p></qti-prompt>
    <qti-graphic-gap-match-interaction response-identifier="RESPONSE" data-graph-type="quadrants"
        data-x-min="0" data-x-max="16" data-y-min="-2" data-y-max="10"
        data-x-distance="1" data-y-distance="1" data-show-grid="true"
        data-layout-width="700" data-layout-height="500" data-scoring-type="exactMatch">
      <qti-object data="data:image/svg+xml;base64,…" type="image/svg+xml" width="700" height="500"/>
      <qti-gap-img identifier="_answer-point-1000" match-max="1"><qti-object data="data:image/svg+xml;base64,…" type="image/svg+xml"/></qti-gap-img>
      <qti-gap-img identifier="_answer-point-1001" match-max="1"><qti-object data="…" type="image/svg+xml"/></qti-gap-img>
      <qti-gap-img identifier="_answer-point-1002" match-max="1"><qti-object data="…" type="image/svg+xml"/></qti-gap-img>
      <qti-associable-hotspot identifier="_hotspot_4_6" shape="circle" coords="175,166.67,10" match-max="1"/>
      <qti-associable-hotspot identifier="_hotspot_6_4" shape="circle" coords="262.5,250,10" match-max="1"/>
      <qti-associable-hotspot identifier="_hotspot_3_0" shape="circle" coords="131.25,416.67,10" match-max="1"/>
    </qti-graphic-gap-match-interaction>
  </qti-item-body>

  <qti-response-processing template="http://www.imsglobal.org/question/qti_v3p0/rptemplates/match_correct"/>
</qti-assessment-item>

Given / fixed reference points — data-fixed-points (coordinate plane only)

Add the data-fixed-points attribute to <qti-graphic-gap-match-interaction> (only when data-graph-type="quadrants") to draw given points on the grid. They render as gray, non-draggable, non-graded markers — use them for points the student must reference (e.g. “point P is at (−5, 4)”), never for the answer itself.

XML
<qti-graphic-gap-match-interaction response-identifier="RESPONSE" data-graph-type="quadrants"
    data-x-min="-6" data-x-max="6" data-y-min="-6" data-y-max="6"
    data-show-grid="true" data-scoring-type="exactMatch"
    data-fixed-points="A:3,4">
  <!-- given point A(3,4) is drawn but not graded; the student drags the answer point -->
  <qti-associable-hotspot identifier="_hotspot_-3_4" shape="circle" coords="90,120,10" match-max="1"/>
</qti-graphic-gap-match-interaction>

Authoring recipe (both subtypes)

Plot a Line (plot-line)

The coordinate-plane question where the student plots lines instead of points, by clicking two points (no drag). Lines can be named or unnamed (author’s choice, default unnamed), and the author sets a max number of lines. Click an endpoint to clear a line and redraw it. Use it for slope & linear functions (8.EE / 8.F) and segments (5.G, 6–8).

What it looks like — the four variations (shape × naming):

Unnamed infinite line
Infinite line, unnamed
Named infinite lines
Infinite line, named (tray)
Unnamed segment
Segment, unnamed
Named segment
Segment, named (tray)

Box Plot (box-plot)

The number-line question where the student builds the five-number summary — minimum, lower quartile (Q1), median, upper quartile (Q3) and maximum. A row of value chips (Min, Q1, Median, Q3, Max) sits above a labeled number line: the student picks a chip, then clicks the line to place that stat — it snaps to the nearest tick and auto-advances to the next chip. Clicking a chip again re-selects its stat so the next click on the line moves it. The box (Q1–Q3), median line and whiskers (out to min and max) draw automatically as the points land. Use it for box-and-whisker plots (6.SP), spread and quartiles.

Box plot on a number line
Box plot — the student picks a value chip (Min, Q1, Median, Q3, Max), then clicks the line to place it; the box and whiskers draw automatically

Select a Point on a Number Line (select-point)

The number-line question where the student clicks a tick to place a point and, for an inequality, chooses an open/closed endpoint and a shade direction. One type, three jobs: plot a point, a single inequality, or a compound “between” region. Use it for inequalities (6.EE — “show all the heights that are allowed”), plotting points/integers/fractions, and bounded ranges.

Plot a point on a number line
Plot a point (shade: "none")
Inequality on a number line
Inequality (open endpoint, x > 48)
Compound inequality on a number line
Compound (2 ≤ x < 6)

Slider (slider)

The question where the student drags one handle along a track to choose a single numeric value. Slider is a first-class QTI 3.0 interaction (<qti-slider-interaction>) — unlike the number-line plots and box plot, which ride on a position-object — so the QTI API stores it as type:"slider" and the player renders a real slider. Use it for estimation, reading a value off a scale, setting a temperature / percentage / measurement, and “set the slider to …” prompts.

Horizontal slider with labelled steps
Stepped, with labels (“set the slider to 20”)
Continuous horizontal slider without labels
Continuous, no labels (estimation)
Vertical slider
Vertical (minimum at the bottom)

Portable Custom Interaction (portable-custom)

SubtypeURNDescription
Fraction Editorurn:fdc:edulastic.com:2024:pci:fractionEditorFraction visualization with rectangles or circles
Histogramurn:fdc:edulastic.com:2024:pci:histogramInteractive bar chart construction
XML
<qti-assessment-item
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    identifier="_2df13c48-a4a1-4f3e-bebe-524dddd45952"
    title="Histogram" time-dependent="false" xml:lang="en-US">

  <qti-response-declaration identifier="RESPONSE" cardinality="single" base-type="string">
    <qti-correct-response>
      <qti-value base-type="string">[{"x":"0-4","y":1},{"x":"5-9","y":3},{"x":"10-14","y":4},{"x":"15-19","y":4}]</qti-value>
    </qti-correct-response>
  </qti-response-declaration>

  <qti-outcome-declaration identifier="SCORE" cardinality="single" base-type="float">
    <qti-default-value><qti-value>0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-item-body>
    <qti-portable-custom-interaction response-identifier="RESPONSE"
        custom-interaction-type-identifier="urn:fdc:edulastic.com:2024:pci:histogram"
        module="histogramPCI" data-chart-type="histogram"
        data-x-axis-label="Quiz Score" data-y-axis-label="Number of Students"
        data-y-axis-min="0" data-y-axis-max="6" data-step-size="1" data-snap-to="1"
        data-chart-data="[{&quot;x&quot;:&quot;0-4&quot;,&quot;y&quot;:0},{&quot;x&quot;:&quot;5-9&quot;,&quot;y&quot;:0},{&quot;x&quot;:&quot;10-14&quot;,&quot;y&quot;:0},{&quot;x&quot;:&quot;15-19&quot;,&quot;y&quot;:0}]"
        data-width="640" data-height="440" data-margin="40"
        data-show-gridlines="y_only" data-fraction-format="Decimal">
      <qti-prompt>
        <p>Twelve students scored these points on a 20-point quiz:</p>
        <p><strong>3, 6, 7, 8, 11, 12, 13, 14, 15, 16, 18, 19</strong></p>
        <p>Display the data by setting the correct frequency for each bar to complete the histogram.</p>
      </qti-prompt>
      <qti-interaction-modules primary-configuration="modules/module_resolution.js">
        <qti-interaction-module id="histogramPCI" primary-path="modules/histogram/histogramPCI"/>
      </qti-interaction-modules>
      <qti-interaction-markup>
        <div class="histogram-container"><div id="histogram-chart" role="img"></div></div>
      </qti-interaction-markup>
    </qti-portable-custom-interaction>
  </qti-item-body>

  <qti-response-processing template="http://www.imsglobal.org/question/qti_v3p0/rptemplates/match_correct"/>
</qti-assessment-item>
Important
The data-* attributes vary between subtypes and must be precise. Note that quotes inside JSON-valued attributes (e.g. data-chart-data) must be encoded as &quot;.

Upload (upload)

XML
<qti-response-declaration identifier="RESPONSE"
    cardinality="single" base-type="file"/>

<qti-item-body>
  <p>Upload your lab report as a PDF file.</p>
  <qti-upload-interaction response-identifier="RESPONSE"/>
</qti-item-body>

Composite / Multi-part Item

A composite item packs two or more interactions of different types into one question, each scored separately — for example a dropdown and a text box that share one stem (see the figure earlier: "There are more [▼] than stars" plus "The number of squares is [  ]"). It is not a separate API type: the platform detects a composite automatically when the body holds two or more different interaction types, and awards partial credit per part. (Two text boxes alone is a multi-blank text-entry item, not a composite.)

Not valid as composite parts: extended-text (essay), upload, and hottext. extended-text and upload are stand-alone question types only; hottext is temporarily not supported inside a composite — author it as its own standalone question for now (standalone hottext is unaffected).

Tip
Make sure every interaction's response-identifier matches its own declaration, all ids are unique across parts, and the part points sum to the item's total.

Creating Tests (Assessment Tests)

What to tell Claude Code
"Create a [standard/timed/fluency] test called '[name]' for [subject] Grade [X] using these question IDs: [paste IDs]." For timed tests, add: "with a [N]-minute time limit."

Once all your questions are created and you have their IDs, assemble them into a test.

Standard Test (Untimed)

XML
<?xml version="1.0" encoding="UTF-8"?>
<qti-assessment-test
  xmlns="http://www.imsglobal.org/xsd/imsqti_v3p0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v3p0
    https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_v3p0.xsd"
  identifier="_GENERATE-UUID"
  title="Your Test Title">

  <qti-metadata>
    <qti-metadata-entry key="subject">Math</qti-metadata-entry>
    <qti-metadata-entry key="grade">5</qti-metadata-entry>
    <qti-metadata-entry key="type">qti</qti-metadata-entry>
    <qti-metadata-entry key="subType">qti-test</qti-metadata-entry>
  </qti-metadata>

  <qti-outcome-declaration identifier="SCORE"
      cardinality="single" base-type="float">
    <qti-default-value><qti-value>0.0</qti-value></qti-default-value>
  </qti-outcome-declaration>

  <qti-test-part identifier="tp_1"
      navigation-mode="linear" submission-mode="simultaneous">
    <qti-assessment-section identifier="sec_1" title="SECTION 1"
        visible="true" required="true" fixed="true">
      <qti-assessment-item-ref identifier="ITEM-ID-1" href="ITEM-ID-1.xml"/>
      <qti-assessment-item-ref identifier="ITEM-ID-2" href="ITEM-ID-2.xml"/>
    </qti-assessment-section>
  </qti-test-part>
</qti-assessment-test>

Timed Test

Add <qti-time-limits> to the test (time-dependent="true" on the root follows from it automatically). Claude Code writes this for you with set_test_time_limit.py --test-id <id> --minutes 40 — the XML below is what it produces:

XML
<qti-assessment-test ... time-dependent="true">
  <!-- metadata and outcome-declaration as above -->
  <qti-time-limits max-time="PT40M" allow-late-submission="false"/>
  <!-- test-part as above -->
</qti-assessment-test>

Fluency Test

Same as timed, but also add fluency="true" to <qti-time-limits> and in metadata (set_test_time_limit.py --test-id <id> --minutes 1 --fluency does both). The fluency attribute on the element is what the player actually reads — the metadata entry alone does nothing:

XML
<qti-assessment-test ... time-dependent="true">
  <qti-metadata>
    <!-- ... other metadata ... -->
    <qti-metadata-entry key="fluency">true</qti-metadata-entry>
  </qti-metadata>
  <!-- outcome-declaration -->
  <qti-time-limits max-time="PT2M" allow-late-submission="false"
      fluency="true"/>
  <!-- test-part -->
</qti-assessment-test>
Tests are created differently from questions
Questions are posted with the { "format": "xml", "xml": ... } wrapper. Tests are not. POST /assessment-tests looks at the request's Content-Type: send a JSON test object (application/json) or raw test XML (application/xml). The { "format": "xml" } wrapper is rejected for tests with "test.identifier is required".

POST the test as a JSON object (this is the reliable path — Claude Code does this for you):

HTTP
POST https://qti.alpha-1edtech.ai/api/assessment-tests
Content-Type: application/json
Authorization: Bearer {your_token}

{
  "identifier": "_test-GENERATED-UUID",
  "title": "G5 Fractions — Practice",
  "qtiVersion": "3.0",
  "qti-test-part": [{
    "identifier": "_testpart-UUID",
    "navigationMode": "nonlinear",
    "submissionMode": "individual",
    "qti-assessment-section": [{
      "identifier": "_section-UUID",
      "title": "Main Section",
      "visible": true, "required": true, "fixed": false, "sequence": 1,
      "qti-assessment-item-ref": [
        { "identifier": "_ITEM-ID-1", "href": "https://qti.alpha-1edtech.ai/api/assessment-items/_ITEM-ID-1" }
      ]
    }]
  }],
  "qti-outcome-declaration": [{ "identifier": "SCORE", "cardinality": "single", "baseType": "float" }],
  "metadata": { "subject": "Math", "grade": "5" }
}

Response (201): returns the test with its identifier. This is your Test ID.

Render-check the test before you share it (validation is not enough)
A question can pass validation and still render blank for students. Validation only checks the XML structure; it does not check that the question actually displays. The player reads each question's stem from a <qti-prompt> (a bare <p> renders nothing for most types), and "hotspot" must be a number-line plot (image hotspots don't render). Claude Code runs render_check.py on the finished test for exactly this — ask it to "render-check the test", and don't hand out the Test ID until every question reports OK. The same check also reports the test's time limit and fails a test that claims to be timed or fluency but has none stored in it.

Stimuli & Reading Passages

A reading passage is a stimulus — a shared block of text several questions are based on. You can create passages through the API (you don't have to use the admin UI). It's two steps: create the passage, then reference it from each question.

No admin website needed for passages
Reading passages, images, and narration (read-aloud) can all be added through Claude Code with the AlphaTest Authoring skill — none of them require the admin website. After creating, have someone open the test in the player to confirm the passage shows.

Step 1 — Create the passage (POST /stimuli)

Send the passage as XML, the same { "format": "xml", "xml": … } wrapper used for questions. The passage XML is a <qti-assessment-stimulus> with a <qti-stimulus-body> of HTML (note the stimulus schema URL):

XML
<qti-assessment-stimulus
    xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0"
    xsi:schemaLocation="… imsqti_stimulusv3p0p1_v1p0.xsd"
    identifier="_stim-bees-pollination" xml:lang="en-US" title="Bees and Pollination">
  <qti-stimulus-body>
    <div><h3>Bees and Pollination</h3><p>Bees help plants reproduce by carrying pollen…</p></div>
  </qti-stimulus-body>
</qti-assessment-stimulus>

POST it to https://qti.alpha-1edtech.ai/api/stimuli with { "format": "xml", "xml": "…", "metadata": { "subject": "Reading", "grade": "3" } }. Save the returned passage identifier.

Step 2 — Reference the passage from each question

Add a <qti-assessment-stimulus-ref> to the question, after the declarations and before <qti-item-body>. The platform fetches the passage by its identifier and shows it with the question:

XML
  <!-- after qti-outcome-declaration, before qti-item-body -->
  <qti-assessment-stimulus-ref identifier="_stim-bees-pollination"
      href="_stim-bees-pollination.xml" title="Bees and Pollination"/>

Give the same <qti-assessment-stimulus-ref> to every question that shares the passage. (href is usually {identifier}.xml, which is what the admin produces.) Claude Code and the authoring skill do all of this for you.

Editing a passage that's already published

To fix a passage's text or its read-aloud audio, edit it in place so it keeps its ID. Every question that shows it keeps working, and so does every student attempt in progress. With the skill, ask Claude Code to fix the passage. It uses scripts/update_stimulus.py, shows you the change first, saves a copy of the original, and checks the result.

Don't send a passage back as XML
PUT /stimuli/{id} with "format": "xml" fails with a 500 error on many older passages (new passages save fine, so it looks random). Update passages with the JSON form of PUT /stimuli/{id} instead. That's what update_stimulus.py does. After any narration change, open the test in the player and play the passage audio.

AI Auto-Grading (Extended Text)

AlphaTest supports AI-powered grading for extended-text (essay/open-response) questions. This means students can write paragraph-length answers and the system will score them automatically using AI.

What to tell Claude Code
"Create an extended-text question for [subject] Grade [X] about [topic]. It should be AI-graded. Here is my rubric: [describe your grading criteria]."

How It Works

  1. The student writes a response (sentence, paragraph, or essay).
  2. When the test is submitted, two independent AI markers evaluate the response for Organization (0–4 points) and Conventions (0–4 points).
  3. If the two markers disagree, a third AI validator reviews both scores and picks the most accurate one.
  4. Final score: (organization score + conventions score) / 8, giving a value between 0 and 1.

About the Rubric You Provide

When you create an AI-graded question, you include a rubric (grading criteria) in the question. This rubric is provided to the AI as additional context to guide its evaluation. You can write any criteria you want (content accuracy, use of evidence, etc.), and the AI will consider them. However, the final numerical score is always calculated using the system's Organization + Conventions framework described above.

Think of it this way: your rubric tells the AI what to look for in the response, but the system's built-in scoring categories determine how the score is calculated.

Requirements for AI-Graded Questions

Rubric Design Best Practices

Use Specific Criteria
Use specific, measurable criteria rather than vague descriptions. "Includes at least two examples from the text" is better than "shows understanding."
Assign Point Values
Clearly assign point values for each criterion (e.g., "Content accuracy: 0-3 points").
Define Performance Levels
Define what Excellent (4), Good (3), Satisfactory (2), and Needs Improvement (0-1) look like.
Plain Text Format
Keep rubric text in plain format inside <qti-content-body>. No HTML formatting needed.

Rubric Example

XML
<qti-rubric-block>
  <qti-content-body>
    Evaluate the student's response based on the following criteria:
    1. Content accuracy (0-3 points): Does the response demonstrate
       understanding of the topic? Does it include relevant facts?
    2. Use of evidence (0-3 points): Does the response cite specific
       details from the passage to support claims?
    3. Organization and clarity (0-2 points): Is the response well
       structured with a clear beginning, middle, and end?
    4. Grammar and mechanics (0-2 points): Is the writing clear
       and relatively free of spelling and grammar errors?
    Total: 10 points.
  </qti-content-body>
</qti-rubric-block>
Critical
Every extended-text question must include a rubric block. Without it, the AI scorer cannot evaluate the response, and the question will not be graded.

Item Variant Generation

The Item Variant Generator creates new assessment items from existing high-quality QTI items. A variant preserves the educational fingerprint of the source — same standard, sub-skill, DOK level, Bloom's level, and distractor rationale — while changing the surface content. This multiplies the value of every validated item in the bank.

How It Works

The pipeline runs in four stages:

  1. Decompose — extract the educational fingerprint (subject, grade, standard, sub-skill, DOK, Bloom's, question type, distractor rationale, stimulus structure)
  2. Generate — AI produces a new QTI item matching the fingerprint exactly
  3. Validate — four checks: QTI 3.0 validity, factual correctness, fingerprint equivalence, DOK match. Failed variants are rejected automatically.
  4. Publish — accepted variants are saved to the item bank tagged with the source item ID for lineage tracking

Using the Admin UI

Bulk Generation (recommended)

The fastest way to generate variants is from an existing test:

  1. Go to Tests and open the test that contains the questions you want to create variants for
  2. Inside the test, you will see the list of all questions — use the checkboxes to select the questions you want (you can select one, several, or all of them)
  3. Once you have selected the questions, click the Create Variants button
  4. You will be taken to the Bulk Variant Generation page, where all selected questions are processed in parallel
  5. For each question, compare the generated variants side-by-side with the original (source on the left, variant on the right). Use the V1 / V2 / V3 navigation to switch between the three variants
  6. Review each variant: click Accept to approve, or Reject to reject — when rejecting you must select at least one reason (e.g. factually incorrect, wrong standard, weak distractors)
  7. Click Save Selected Variants to publish all accepted variants to the item bank. They will be tagged with the source question ID for traceability

Single Question Generation

You can also generate variants one question at a time from the Item Variants page:

  1. Navigate to Item Variants in the sidebar
  2. Search for a question by ID or browse the sources dashboard
  3. Click into a question to see its educational fingerprint and existing variants
  4. Switch to the Generate tab and click Generate 3 Variants
  5. Three variants generate in parallel — each shows a side-by-side comparison with the source
  6. Review each variant: click Accept (thumbs up) or Reject (thumbs down with reason)
  7. Click Save Selected to publish accepted variants to the item bank

Using Claude Code (API)

Claude Code can generate variants programmatically using the API endpoints below. The workflow is: submit generation requests, poll for results, then publish accepted variants.

Prefer plain English?
The AlphaTest Variants skill does this for you in Claude Code. You describe what you want and review the result.
Single question
"Generate a variant of question [question-id]"
Multiple questions
"Generate variants for all questions in test [test-id]"
Decompose only
"Show me the educational fingerprint of question [question-id]"
Check lineage
"List all variants of question [question-id]"

API Endpoints

Technical detail — Claude Code uses these automatically
Authentication required
All variant generation endpoints require authentication. You must include a valid Bearer token in every request. See the Authentication section for how to obtain a token using your client_id and client_secret. Claude Code handles this automatically when you provide your credentials.

1. Decompose a question

GET /authoring/item-variant/decompose/{questionId}

Response:
{
  "success": true,
  "fingerprint": {
    "questionIdentifier": "abc-123",
    "subject": "Math",
    "grade": "5",
    "standard": "5.NF.A.1",
    "subSkill": "Add and subtract fractions",
    "questionType": "choice",
    "dokLevel": 2,
    "bloomsLevel": "apply",
    "authorDifficulty": "medium",
    "stimulusStructure": "standalone",
    "distractorRationale": [...],
    "cached": true
  }
}

2. Submit variant generation (async)

POST /ai-variant/generate
Body: { "questionId": "abc-123" }

Response (202):
{
  "success": true,
  "requestId": "uuid-here",
  "status": "processing"
}

3. Poll generation status

GET /ai-variant/generate/status/{requestId}

Response (processing):
{ "status": "processing", "requestId": "uuid-here" }

Response (complete):
{
  "status": "complete",
  "success": true,
  "data": { "questions": [{ ... }] },
  "sourceQuestionId": "abc-123",
  "fingerprint": { ... },
  "validation": { "valid": true, "checks": [...] }
}

4. Publish variant to item bank

POST /authoring/question/publish
Body: {
  "questions": [{
    "questionData": {
      "identifier": "variant-id",
      "title": "Variant Title",
      "type": "choice",
      "metadata": {
        "subject": "Math",
        "grade": "5",
        "sourceQuestionId": "abc-123",
        "isVariant": true,
        "learningObjectiveSet": [...],
        "alignment": [...]
      }
    },
    "rawXml": "<qti-assessment-item>...</qti-assessment-item>"
  }]
}

5. Submit SME feedback

POST /authoring/item-variant/feedback
Body: {
  "variantRequestId": "uuid-here",
  "sourceQuestionId": "abc-123",
  "rating": "accepted",
  "rejectionCategories": [],
  "rejectionComment": null
}

Rejection categories (when rating is "rejected"):
  factually_incorrect, wrong_standard, weak_distractors,
  dok_mismatch, formatting_issue, other

6. Query lineage

GET /authoring/item-variant/lineage/{sourceId}    — list all variants of a source
GET /authoring/item-variant/source/{variantId}     — find source of a variant
GET /authoring/item-variant/sources?page=1&limit=20 — list all sources with variants

Complete Workflow (TypeScript)

The full workflow is: generate → poll → publish to QTI. After variants are generated and validated, you must publish them to the QTI item bank using the publish endpoint. Variants are not saved to the bank until you explicitly publish them.

// 1. Submit 3 variant generation requests in parallel
const submissions = await Promise.all(
  Array.from({ length: 3 }, () =>
    api.post("/ai-variant/generate", { questionId: "abc-123" })
  )
);

// 2. Poll each until complete (5s interval)
for (const { requestId } of submissions) {
  let status = "processing";
  while (status === "processing") {
    await new Promise(r => setTimeout(r, 5000));
    const res = await api.get(`/ai-variant/generate/status/${requestId}`);
    status = res.status;
    if (status === "complete" && res.validation?.valid) {
      const variant = res.data.questions[0];

      // 3. IMPORTANT: Publish the variant to the QTI item bank
      // Without this step, the variant exists only in memory
      await api.post("/authoring/question/publish", {
        questions: [{
          questionData: {
            identifier: variant.questionIdentifier,
            title: variant.title,
            type: variant.questionType,
            metadata: {
              subject: variant.metadata?.subject,
              grade: variant.metadata?.grades?.[0],
              sourceQuestionId: "abc-123",
              isVariant: true,
              learningObjectiveSet: variant.metadata?.learningObjectiveSet,
              alignment: variant.metadata?.alignment,
            }
          },
          rawXml: variant.xml
        }]
      });
      console.log("Variant published:", variant.questionIdentifier);
    }
  }
}
Do not skip the publish step
After generating variants, you must call POST /authoring/question/publish to save them to the QTI item bank. If you skip this step, the variants will not be persisted and will be lost. Always check validation.valid === true before publishing — do not publish variants that failed validation.
Bulk generation tip
To generate variants for many questions, loop through the question IDs and submit up to 2 questions concurrently (3 variants each = 6 parallel requests). Poll each independently. The generation takes 30–120 seconds per variant depending on question complexity.

Math & LaTeX Formatting

Technical Reference — Claude Code handles this automatically

The player renders math expressions using MathJax 3. When you tell Claude Code to include math in your questions, it uses LaTeX formatting automatically. The details below are for reference.

Basic Syntax

XML
<span class="input__math" data-latex="\frac{3}{4}"></span>

Common Patterns

PatternLaTeXRenders As
Fractions\frac{numerator}{denominator}A fraction (e.g., 3/4)
Exponentsx^{2}x squared
Square root\sqrt{16}Square root of 16
Mixed number3\frac{1}{4}3 and one quarter
Multiplication\times×
Division\div÷

Inline Math with Text

Use &#160; (not &nbsp;) for spacing around inline math:

XML
<p>What is&#160;<span class="input__math" data-latex="\frac{3}{4}"></span>&#160;+&#160;<span class="input__math" data-latex="\frac{1}{8}"></span>?</p>

Critical Escaping Rule

LaTeX Escaping is the #1 Source of Bugs

The escaping chain works like this:

  • In XML: \frac
  • In JSON string: \\frac
  • In Python string literal: \\\\frac (or use raw string: r"\\frac")

If you see \f (a form-feed character) in your output, you have an escaping bug. Always verify the final JSON file contains the literal text \frac.

Blanks Inside Maths Expressions (Text Entry & Gap Match)

Ordinary inline maths uses <span class="input__math" data-latex="…"></span>. When a text-entry blank or gap-match drop target must appear inside the formula, add a second token in data-latex that matches the interaction or gap id:

TypeDelivery / scoringToken in data-latex
Text entry<qti-text-entry-interaction response-identifier="_te_1">{text_entry:_te_1} (use extra {} inside \frac{}{})
Gap match<qti-gap identifier="_gap_a"/> inside the maths span\htmlData{gapslot=_gap_a}{} — braces must be empty

See Text Entry — Blanks Inside a Maths Expression and Gap Match — Gaps Inside a Maths Expression for complete examples. Canonical multi-blank text-entry item: _69feaa39-d3e8-41aa-8dc2-9bfd6dcc25ba.

XML Validation

Technical Reference — Claude Code handles this automatically

Always validate XML before creating items or tests. Claude Code does this automatically. The details below are for manual API usage.

HTTP
POST https://qti.alpha-1edtech.ai/api/validate
Content-Type: application/json
Authorization: Bearer {your_token}

{
  "xml": "<your XML string>",
  "schema": "item"
}

Use "schema": "item" for assessment items, "schema": "test" for tests, "schema": "stimulus" for stimuli.

Common validation errors:

Admin Platform Overview

The AlphaTest Admin Interface at admin.alphatest.alpha.school is where you manage tests after creating them via the API.

All Admin Pages

PageURLWhat You Can Do
Dashboard/dashboardMain landing page with student assignments overview
Test Inventory/tests/inventorySearch, browse, edit, and import tests from QTI
Test Assignment/tests/assignmentAssign tests to students (single or bulk CSV)
Custom Tests/builder/testList, create, duplicate, delete, and preview tests
Create New Test/builder/test/createNew test wizard with metadata configuration
Edit Test/builder/test/[id]Manage questions: add, remove, reorder, edit
Question Builder/question-builderCreate, edit, import questions; add media/audio
Passages/passagesView and manage reading passages library
Results/resultsCompleted assignments across students, filtered by student, test, subject, grade, date or email domain; row opens the question-by-question review; CSV export
Timeline/timelineOne student's history in a subject: tests in order, progress over time, skill gaps, and question-by-question analysis
Letter Sound Knowledge/letter-sound-knowledgeA student's phonics (Letter Sound Screener) progress over time: sounds known, emerging, and what to teach next
Reading Fluency/reading-fluencyA student's Oral Reading Fluency progress over time: words-correct-per-minute, accuracy, comprehension, with recordings
Users/usersBrowse users, create new users, and manage permissions
Org Settings/orgConfigure testing hour restrictions and IP restrictions per Timeback organization

Permissions

Different actions require different permissions on your account.

PermissionWhat It Allows
canAssignTestsAssign tests to students
canAssembleTestsCreate new tests in the builder
canEditTestsEdit existing tests and questions
canBuildQuestionsAccess the question builder
canAdminEditEdit inventory, edit user profiles, and configure org availability settings
canManageUsersCreate new users and manage permissions on existing users (see User Management)
canGradeWritingGrade writing submissions manually
canRegradeTrigger a regrade on completed tests
canUseInsightsAiAccess the AI Insights panel
isQAQA-specific features and workflows
canBypassMasteryGateRe-assign a test the student has already mastered or completed — for QA and dev accounts that need to re-run assessment flows
readOnlyRead-only access — you can browse everything but cannot create, edit, assign, or delete (see Read-Only Accounts)

Read-Only Accounts

Any account can be provisioned with read-only access. A read-only account can sign in and browse the platform, but cannot make any changes — regardless of whichever other permissions the account may have.

What You Can Do

What Is Blocked

What you’ll see
Blocked actions return a 403 Read-Only Access error from the server. In the UI, this typically surfaces as a notification saying the action is not permitted for your account. If you need to perform one of these actions, contact the AlphaTest team to have the read-only restriction removed.

Read-only does not replace the other permissions in the table above — it sits on top of them. An account without canEditTests still can’t edit tests regardless of read-only, and vice versa.

User Management

The Users page (/users) lets you browse existing users and — if you have the canManageUsers permission — create new users and manage their permissions.

Creating a New User

Click the + Create User button at the top-right of the Users page. You’ll see a form with two sections:

Profile

FieldRequiredDescription
First NameYesThe user’s first name
Last NameYesThe user’s last name
EmailYesMust be unique. The user will sign in with this email via Google SSO.
CampusNoSchool or campus name
GradeNoGrade level (PreK through 12th grade)

Permissions

Below the profile fields, you’ll see a list of permission toggles grouped into four categories. Each toggle has a label and a short description of what it controls:

GroupPermissionDescription
RoleTeacherAccess the admin panel. Required for the user to sign in to this interface.
Manage UsersCreate new users and manage permissions on existing users.
QAQA-specific features and workflows.
TestsAssign TestsAssign tests to students (single and bulk CSV).
Edit TestsEdit existing tests and their questions.
Assemble TestsCreate custom test assemblies in the builder.
Build QuestionsCreate and edit individual questions, including media and audio.
Bypass Mastery GateRe-assign a test the student has already mastered or completed. Intended for QA and dev accounts that need to re-run assessment flows.
GradingGrade WritingManually grade writing submissions.
RegradeTrigger a regrade on completed tests.
AdminAdmin EditEdit user profiles, inventory, and org availability settings.
Read OnlyRestrict the user to read-only access. This is a restriction, not a privilege — you can always toggle it on or off.
You can only grant what you have
Toggles are disabled for any permission you don’t hold yourself. For example, if you don’t have canGradeWriting, you cannot enable it for another user. You can always revoke (turn off) any permission, and you can always toggle Read Only since it restricts rather than elevates access.
No password needed
Users are created without a password. They sign in using Google SSO with the email address you provide. If they ever need a password, they can use the “Forgot password” flow on the sign-in page.

Editing Permissions on an Existing User

In the user table, each row with a linked account shows a Perms button. Click it to open the permissions editor for that user. The same toggle rules apply — you can only grant permissions you hold, but you can revoke any permission.

Changes take effect immediately. The user’s next page load or API call will use the updated permissions.

You cannot edit your own permissions
To prevent accidental lockouts, the system blocks you from modifying your own account. Another user with canManageUsers must make changes to your permissions.

Who Can See What

ActionRequired Permission
Browse the Users pageisTeacher
Edit user profile fields (name, campus, grade, accommodations)canAdminEdit
See the + Create User buttoncanManageUsers
See the Perms button on each rowcanManageUsers
Create a new usercanManageUsers
Change another user’s permissionscanManageUsers

Accommodations

Set on a student from the Users page. This is the only way they are set today.

A sync from the SIS also exists, so that an accommodation recorded by a counselor reaches the student automatically. It is inert for now: the roster does not yet carry the accommodation field, so nothing arrives for it to apply. Once that changes, a value recorded in the SIS becomes authoritative and will replace a manual one on the next sync.

FieldWhat it does
Text-To-SpeechRead-aloud on questions that support it.
Extended timeGives the student a longer window on timed tests. Choose one of: Multiplier (1.5 is 50% extra time, 2 is double time), Fixed minutes (added to the test’s own limit), or Unlimited (the countdown is removed). A fluency test is never extended: its window is what the test measures, so a longer one would raise the number of correct answers needed to hit the same facts-per-minute target rather than lower the bar. On a test with no time limit there is nothing to extend.
XP MultiplierScales the XP the student is awarded. It does not affect the clock. Granting extra time used to inflate XP because both came from this one number; they are separate now.

Importing a Test from QTI

After creating your test via the API, import it into AlphaTest through the admin interface.

1
Go to Test Inventory

Navigate to Test Inventory in the left menu.

2
Click "Add Test from QTI"

Click the button in the upper-right corner of the screen.

3
Fill in the form
  • QTI Test ID: Paste the Test ID returned by the API
  • Name: Human-readable name (e.g., "G5 Math Fractions Practice v1")
  • Subject: Select from dropdown (must match question content)
  • Grade: Select the appropriate grade level
4
Click "Add Test", then "Close"

Your test will now appear in the Test Inventory.

AI review. Before the test is added, AlphaTest reads every question the way a student would and checks links, pictures, audio, the answers marked as correct, and the accepted ways of writing typed answers. If nothing is found, the import continues by itself. If something is found, you see one card per problem: Loses the point means a student who answers correctly can be marked wrong, and the test cannot be imported until it is fixed in the original test; May lose the point is a warning, and you can choose Don't import to fix it first, or Import anyway. If the review can't run, or some questions could not be checked, you can still import.

Important

When selecting a subject for a new test, you may only see "notQCed" variants (e.g., "Math-notQCed"). This is correct for a new test that hasn't been quality-checked yet. You'll change it to the final subject when activating the test.

The import can be refused over the test's time limit

Before a test is added, AlphaTest checks whether its time limit will actually reach students. If it will not — and the platform cannot fix it without deciding something on your behalf — the import is refused and a red panel explains what to change. Nothing is added to the inventory.

The most common one: the test is marked as a fluency test but has no time limit. A fluency test is defined by its window, and no one can guess how long it should be. Either set a time limit or turn the fluency setting off, then add the test again. A test that merely states a length without it being stored inside the test is fixed automatically — nothing is guessed there, so it imports normally.

Ask Claude Code to "render-check the test" before you import and it will tell you the same thing first.

Re-importing a test you deleted

Deleting a test is a soft delete — it's hidden from the inventory and can't be assigned, but its content is preserved. If the name of the test you're importing matches a test that was previously deleted, AlphaTest asks whether to import it as a new version of that deleted test. (Re-importing the same QTI Test ID autofills that test's title, so it matches by name too.) Confirm and the import proceeds: the deleted test's title is freed and your import becomes its latest active version. This replaces the old "a test named X already exists" error when re-importing over a deleted test. You can still choose a different title instead.

Activating Your Test

Once the test is ready to go live:

  1. Go to Test Inventory
  2. Search for your test by Timeback ID
  3. Click the Edit button
  4. Set the subject to its final value (e.g., change from "Math-notQCed" to "Math")
  5. Click Save

A new test starts active. To control who can get it, see Activating & Deactivating Tests.

Activating & Deactivating Tests

Two settings in Test Inventory decide who can get a test:

SettingColumnWhat it controls
ActiveActiveWhether the test can be assigned at all. An inactive test can't be assigned on any path: the admin forms, bulk CSV, the API, assign-by-grade or placement.
Active sequenceActive SeqWhether automatic assignment (assign-by-grade and placement) may pick the test. A test outside the sequence can still be assigned on purpose, by name or Timeback ID.
The rule

A test can be active and outside the sequence (for example, a test Academics only gives in special cases). It can never be inactive and in the sequence: deactivating a test also removes it from the active sequence, and an inactive test can't be added to it.

Seeing which tests are active

Activating or deactivating tests (one or many)

  1. Filter the inventory to the tests you want (e.g. Subject reading, Grade 1).
  2. Tick the tests, or tick the box in the header to select every test on the page.
  3. Click Activate, Deactivate, Add to active sequence or Remove from active sequence. Deactivating asks you to confirm.

For a single test, tick or untick its Active or Active Seq box in the table. The change takes effect immediately and can be reversed at any time.

What does not change a test's status

Deactivating a test doesn't touch assignments that already exist. To stop students taking those, invalidate them in Test Assignment.

Example: stopping and restarting a set of tests

To stop every Grade PK–2 Reading test from being assigned: filter Subject reading, select the PK, K, 1 and 2 tests, and click Deactivate. To bring them back later, select them with Status Inactive and click Activate; then Add to active sequence for the ones that should be assigned automatically again.

Test Builder

The Test Builder at /builder/test lets you create and manage tests directly in the admin UI.

Creating a Test in the UI

Navigate to /builder/test/create and fill in:

Managing Questions in a Test

From the test detail page (/builder/test/[id]), you can:

Question Builder

The Question Builder at /question-builder provides a visual interface for creating and editing questions.

Modes

ModeDescription
Create NewCreate a question from scratch with the visual editor
Edit ExistingSearch for a question by ID and modify it
Passage ModeCreate or edit reading passages
ImportImport questions from the Edulastic library

Visual Editor Features

AI review before publishing

Publish Question, Save All and Update All first run an AI review that reads every question the way a student would. Questions you did not change are reviewed too.

Which Question Types Can Be Edited Here

Admin Platform — Question Builder

The visual editor can author eleven interaction types. The platform delivers more than that: graph and plot questions, box plots, dot plots, sliders, hotspots and custom interactions all play and grade normally for students, but there is no visual editor for them. Author and edit those with the AlphaTest Authoring skill in Claude Code, or on the Question Builder’s XML tab.

Editable in the visual editorXML only
Multiple Choice, Multiple Select, Text Entry, Extended Text, Inline Choice (Dropdown), Hot Text, Gap Match (Drag & Drop), Match / Matrix, Order / Sequence, Upload (Phonics / ORF), Composite Plot Points on a Coordinate Plane, Plot a Line, Select Point on Number Line, Number Line with Labelled Points, Number Line (Drag Labels), Number Line Plot (Dot Plot), Box Plot, Hotspot, Slider, Histogram, Fraction Editor and other custom interactions, Numeric Entry

What you see when a question is XML-only

Your other edits are safe

An XML-only question is published with its XML exactly as it was (including any edits you make on the XML tab). Editing and saving the other questions of the same test never changes it. It is not an error and it never blocks Save or Publish — the chip and the outlined pills are information, not a warning to resolve.

Importing an unsupported type from Edulastic

On the type-selection step, a source question the builder cannot author shows Unsupported question type with no type pre-selected. You have two options: pick a type to convert it into — which replaces the interaction and its answer key, so only do this when you actually want a different question — or skip it and author the question with the AlphaTest Authoring skill.

Math Equivalency for Text Entry Questions

Admin Platform — Question Builder

For text entry math questions, Math Equivalency lets students receive credit when they type a structurally equivalent answer in a different valid format—for example, 3*(m+7) when the key is 3(m+7), or x+1 when the key is 1+x.

Math Equivalency is opt-in. Without an explicit activation signal in the question’s stored QTI XML, the grader compares answers strictly—even when two expressions are equal on paper.

Turning it on in the Question Builder

The Math Equivalence toggle is set per blank in the interactive editor:

  1. Open the question in Question Builder and add a math blank with + Input (Math). (The toggle does not appear on + Input (Text) blanks.)
  2. Click the blank to open its Acceptable Answers popup.
  3. Check Math Equivalence — “Accept structurally equivalent expressions (e.g. 3(m+7) and 3*(m+7))”.

The toggle is off by default: a new math blank grades strictly until you check it, and it applies only to the blank you set it on. In a multi-blank item, turn it on for each blank that should accept structural variants and leave it off for blanks that must match exactly. Checking the box writes data-grading-mode="math-equivalence" onto that blank in the stored QTI XML—the same per-blank signal listed under “How grading is enabled” below.

When Math Equivalency applies

How grading is enabled

When a test is scored, the platform reads the question’s stored QTI XML. Math Equivalency activates when the XML includes one of these signals:

SignalScopeTypical source
data-grading-mode="math-equivalence" on the text-entry interactionThat blank onlyAlgebra text-entry items (including one blank in a multi-blank item)
math.equal in response processingItem-wide (legacy)Older imported math questions / legacy items (new imports default to exact match)

The standard match-correct template alone does not enable Math Equivalency. Use strict grading for a fixed number or word with one right form (e.g. 213, Paris). Use Math Equivalency for algebraic expressions where students may write valid structural variants.

Strict still ignores trivial formatting of the same value—e.g. 42.0 = 42, $42 = 42, 1 000 = 1000, 80 % = 80%, and \frac{3}{4} = 3/4—but it never converts different forms (15/6 ≠ 5/2, 1/2 ≠ 0.5).

What students can enter

With Math Equivalency enabled, the grader uses structural equivalence—not a full computer-algebra system. These patterns are accepted:

Supported expression syntax includes +, -, *, /, ^, parentheses, implicit multiplication (2x, ab), LaTeX \frac{}{}, \sqrt{}, common trig/log commands, and constants such as \pi.

Forms that are not accepted automatically

Do not assume the platform will derive equivalent forms. Add each acceptable form as a separate correct answer when you need any of these to count:

Student might typeYour key onlyWhy
3m+213(m+7)No automatic distribution / expansion
63*2No numeric simplification
0.5\frac{1}{2} or 1/2No fraction ↔ decimal conversion
2\sqrt{4}No evaluation of roots
(x+1)^2x^2+2x+1No binomial expansion
2x=32x-3=0No equation solving — terms not moved across the =

Tips for authors

Match match-max per gap (Match Interaction)

Admin Platform — Question Builder

In QTI, match-max on each <qti-simple-associable-choice> limits how many associations that row or column may have. For gaps layout, the column’s match-max is what allows multiple draggable items in the same drop zone. For tabular layout, row match-max="1" means one column per statement (typical true/false grids); column match-max may be higher so many rows can select the same category.

The Question Builder exposes Single / Multiple selection mode and Table / Gaps layout. Selection mode controls how many correct pairings you can author per row (table) or per drop zone (gaps). The admin maps those settings to match-max when generating XML.

Loading and editing

When you open an existing match question (POST /authoring/question/parse-existing), the response includes matchRows, matchColumns, matchLayout, and the item XML. Per-gap limits may appear only on the XML as match-max attributes — not on matchRows / matchColumns. The admin:

Create and update payloads

When saving, the admin sends matchMax (camelCase) on each entry in questionData.matchRows and questionData.matchColumns to:

Example fragment:

JSON (authoring API)
{
  "questionData": {
    "type": "match",
    "matchLayout": "gaps",
    "matchSelectionMode": "multiple",
    "matchRows": [
      { "id": "row-1", "content": "<p>Gap 1</p>", "correctColumns": ["col-1"], "matchMax": 2 }
    ],
    "matchColumns": [
      { "id": "col-1", "content": "<p>Drop 1</p>", "matchMax": 2 },
      { "id": "col-2", "content": "<p>Drop 2</p>", "matchMax": 1 }
    ]
  }
}

The backend maps matchMax to QTI match-max on the corresponding <qti-simple-associable-choice> elements. New questions without explicit limits receive defaults derived from selection mode, layout, and correct pairings.

Legacy behavior (no per-gap limits)

Older match items may have no match-max in XML and no matchMax in JSON. For those items, the admin omits matchMax from generate/update payloads so the backend keeps its previous behavior. Limits are only added or updated when the item already has explicit per-gap limits (in XML or JSON) or when authoring a new match question.

Edge cases (developers)

Media, TTS & Images

Claude Code or Admin Platform

Adding Audio (TTS)

AlphaTest uses ElevenLabs for text-to-speech. There are two ways to add it.

Via Claude Code (recommended)

You don't need to write any code or run anything. Use the AlphaTest Authoring skill: download the skill, send it to Claude, and ask — in plain English — to read the test aloud. Claude makes the audio and turns narration on for you.

What to ask for
Narration runs only when you tell the AI to. Two asks: (1) ask it to use the authoring skill to generate the narration, and (2) ask it to turn the audio on — either for the whole test or for the specific questions you choose.

Via the admin (Question Builder)

  1. Go to Question Builder in the left menu
  2. Click Edit Existing Question
  3. Select the Search Questions Directly tab
  4. Paste your Question ID and click Search
  5. Select the question and click Continue with 1 question
  6. Open the Audio tab. Either generate the narration with ElevenLabs (it reads the question aloud — pick stimulus only or stimulus + options) or upload your own audio file.
  7. Check Enable Text-to-Speech for this question so the play button shows for it — see “Enabling TTS per question” for how this works with the test-level setting.
  8. Click Update All (1) Questions. Update All runs the AI review first.
Regenerate audio after editing question text
TTS audio is not updated automatically when you change a question’s stimulus, answer options, or linked passage text. The saved audio file still contains the old narration. After any such edit, open the Audio tab, generate new TTS audio (or upload a new file), then save the question with Update All. The same applies when you edit passage content in the Passages library — regenerate passage audio and save the passage before students take the test.

Adding Images

You can add images to a question and the AI (Claude Code) inserts the image URL directly into the raw XML before the question is posted to QTI. You don't have to open the visual editor unless you want to.

Option A: Upload via Claude Code (recommended)

If your image is a file on your computer, the AI uploads it for you with the AlphaTest Authoring skill — no admin website needed. Download the skill, send it to Claude together with your image file, and ask — in plain English — to add the picture to the question.

This is the safest path and needs no clicking around: the image lives in our bucket, is durable, won’t disappear, and is served over HTTPS automatically. It also works for a question that’s already published — Claude builds a fresh copy with the image and leaves the original in place.

Option B: Upload via the admin (Question Builder)

  1. Go to Question Builder → Create New.
  2. Use the image upload control to drop your file. It uploads to our S3 bucket and the admin gives you back a URL that looks like this:
    https://mastery-track-assets.s3.us-east-1.amazonaws.com/question-builder/images/imported-7f3c9a1e-...png
  3. Copy that URL and hand it to the AI: “Insert this image URL into the raw XML of the question, inside the <qti-prompt> as an <img src="..."/> tag.”
  4. The AI edits the rawXml field and posts the question to QTI for you.

Option C: External host

If you already have the image hosted somewhere else (Imgur, Cloudinary, GitHub raw, your own CDN, etc.), you can give that URL directly to the AI and ask it to insert the <img> tag into the raw XML. No upload step needed.

Mandatory: HTTPS only
The URL must start with https://. The player runs on HTTPS, and browsers block http:// images as “mixed content” — the image silently fails to load and the student sees a broken question.

Risks of using an external host:

Rule of thumb: use external hosts only for quick prototyping or throw-away tests. For anything that students will actually sit, upload to our bucket via Option A.

Inline Audios (not TTS) — a “listen” button on options / stimulus

This is different from TTS narration above. TTS reads the whole question aloud from a play button on the question. Inline option audio is a small audio clip attached to a single answer option or draggable — the student plays each one on its own. It's the same control choice (MCQ) options already support, now available on gap-match drag options. It's ideal for K–2 vocabulary and Drag-to-Match, where each option needs its own sound.

Unlike TTS, this audio is not a <qti-catalog> block — it's a plain <audio> element embedded inside the option's HTML, exactly like an image lives inside an option. It rides in the option content and plays on the draggable in the tray and after it's placed in a gap.

Option A: Upload via Claude Code (recommended)

If your audio is a file on your computer, the AI uploads it for you with the AlphaTest Authoring skill — no admin website needed. Download the skill, send it to Claude together with your audio file(s), and ask — in plain English — to add a listen button to the drag options.

The tag Claude inserts looks like this (URL from our S3 upload):

<qti-gap-text identifier="_gt_moscow" match-max="1">Moscow<audio style="max-width:100%" contenteditable="false" controls="controls" src="https://mastery-track-assets.s3.us-east-1.amazonaws.com/q41-mp3/moscow.mp3">Audio is not supported on this browser.</audio></qti-gap-text>

Option B: Add via the admin (Question Builder)

  1. Go to Question Builder and open (or create) a Gap Match question.
  2. In the answer-options list, each option row has an Add audio button (next to the image button). Click it and choose your audio file.
  3. It uploads to our S3 bucket and inserts the audio into that option; the option then shows a small player with a remove control. Type option text as usual — the audio is preserved.
  4. Save the question. Students see a listen button on that draggable in the player.
Mandatory: HTTPS, and inside the option
The audio URL must start with https:// (same mixed-content rule as images). The <audio> must sit inside the <qti-gap-text> (or option) — an audio placed next to the interaction, not inside it, is silently dropped, just like a stranded image.

Test-Level TTS

You can enable TTS for an entire test when creating it in the Test Builder. Toggle the Text-to-Speech option. When enabled, students will see audio controls for question text and passages.

Preview reflects the student
The test Preview shows narration exactly as an assigned student will experience it: narration is opt-in, so if it isn’t enabled (test-level toggle, or per question), the Preview won’t show the play button either — even when audio is already attached. To have students hear attached audio, enable narration. (The Question Builder’s own question preview is an authoring aid and still shows attached audio regardless.)

Player TTS Features

Ruler & Protractor

Claude Code or Admin Platform

The ruler and protractor are on-screen measuring tools the student drags over a question — the ruler measures lengths (in centimeters and inches), the protractor measures angles (0–180°). They are made for Math and Geometry items where the student measures a figure. Like the calculator, the tool can be turned on for a whole test or only for the specific questions you choose.

Via Claude Code (recommended)

You don't need to write any code or run anything. Use the AlphaTest Authoring skill: download the skill (the .zip), send it to Claude, and ask — in plain English — to turn the ruler on. Claude enables it for you.

What to ask for
Two things: (1) download the skill .zip and send it to Claude, and (2) ask it to use the authoring skill to enable the ruler — either for the whole test or for the specific questions you want.

In the player, the enabled ruler appears as a tool the student opens from the toolbar; it floats over the question as a draggable, rotatable ruler (with a protractor when enabled) so they can line it up against the figure. After enabling, have someone open the test in the player to confirm the ruler button shows on the right questions.

Designing questions students will measure

The on-screen ruler is drawn at a fixed scale (a real-world centimeter / inch at a nominal 96 DPI) — it is not calibrated to each student's monitor, and it does not stretch to fit your figure. So the accuracy of a measurement question depends entirely on the image you put in the question: a segment that should read “6 cm” only reads 6 cm if the figure is sized so the ruler lands exactly there.

Always validate the figure against the ruler before publishing
For every question where the student measures a figure with the ruler or protractor, build the question while looking at the image and the ruler together and confirm it reads what you intend:
  • Check the figure's dimensions match the ruler. Open the question in the player, lay the ruler (or protractor) on the figure, and verify the measurement is exactly the value you expect — e.g., the segment really lands on 6 cm, the angle really reads 45°.
  • Mind the image size. Depending on how the image was exported or scaled, the figure may not be at the ideal size for the ruler (too small or too large), so the ruler won't read the value you meant. Resize or re-export the image until it matches.
  • Do this for every measurement question. There is no auto-calibration — precision is the author's responsibility. If the reading isn't exact when you check it, students will measure the wrong value.

Managing Passages

The Passages Library at /passages allows you to create and manage reading passages that can be shared across questions.

Preview & Review

Before assigning a test to students, always preview it to verify everything displays correctly.

How to Preview

  1. Go to Custom Tests
  2. Search for your Test ID (Timeback ID)
  3. Click Open to review test details and see individual question IDs
  4. Click Preview Test to see the student's view

What to Check During Preview

Player Accessibility Features

During preview, you'll see the same tools students have access to:

Calculator
Basic, Scientific, or Graphing calculator (configurable per test)
Ruler & Protractor
Draggable ruler (cm/in) and protractor (0–180°) for measuring — configurable per test or per question
Line Reader
Overlay guide for reading assistance
Scratchpad
Digital notepad for calculations and notes
Crossout
Cross out answer options to narrow choices
Zoom
Increase/decrease text size
Bookmarking
Flag questions for later review

Test Assignment

Navigate to Test Assignment.

Self-Testing (Recommended First)

  1. Paste your Test ID into the "OR provide Timeback ID" field
  2. Enter your own email address
  3. Click Assign
  4. Click the generated link in the response
  5. Click Start Test and complete it as a student would

Single Student Assignment

Same process, but enter the student's email address. The student receives a unique test link.

FastMath Assessment Type

FastMath fluency tests are assessed one operation at a time, and the assign request has to say which one — the test on its own does not tell the system. Choose it in FastMath Assessment Type: Addition, Subtraction, Division, Multiplication or Mixed.

It is sent whenever the Subject is FastMath, or the Timeback ID you pasted turns out to name a FastMath test. A FastMath test above PreK cannot be assigned without it.

When you paste a Timeback ID the form looks the test up and shows its name, subject and grade under the field, so you can confirm what you are about to assign. It then checks your choice against that test and disables Assign, with an explanation, in two cases:

The form also warns if the test has no CQPM target — the number of correct facts per minute a student must reach to pass. Above PreK such a test cannot be assigned at all: every FastMath assign needs an operation, and every operation needs a target to be graded against. The Fluency Test setting is about delivery (the timer and the tools) and does not change this — unticking it will not make an untargeted test assignable.

To set one: Tests → Inventory, find the test (you can search by its Timeback ID), and use the row's Edit action. In the test's settings the CQPM Target field sits next to Time Limit and Fluency Test; it only appears for FastMath tests. Typical values run from 14 to 40. Leaving it empty clears it, and a PreK FastMath accuracy test does not need one.

The Inventory list has a CQPM column, so you can see at a glance which FastMath tests are still missing a target.

On the Subject + Grade Rank route there is no pasted test to check against, so leaving the type on None is refused by the server instead, with FastMath grade-assessment requires metadata.gradeAssessmentTag.

PreK (grade rank -1) FastMath accuracy tests do not need it. If you paste one while an operation is still selected, the operation is simply not sent — it would make that test unassignable.

Bulk Assignment (CSV)

Switch to the Bulk assign tab and upload a CSV with these columns:

ColumnRequiredDescription
student_emailRequiredStudent's email address
timeback_idEither/OrTest ID (use this OR subject+grade_rank)
subjectEither/OrSubject name (used with grade_rank)
grade_rankEither/OrGrade number (used with subject)
test_typeRequiredPlacement, Test Out, or End of Course. The file is rejected if the header is missing
fastmath_assessment_typeOptionaladdition, subtraction, division, multiplication or mixed. Works with either format — timeback_id rows too. Blank or unrecognised values are ignored

Seeing Who Assigned a Test

On the Dashboard, a test assigned from this page (single or bulk) carries an Admin Portal badge next to its name. Hover the badge to see who assigned it — for example Assigned by: jane.doe@alpha.school. The same badge appears on the student's Timeline.

Tests assigned by the progression pipeline or the 100for100 program show a Progression or 100for100 badge instead; those badges have no hover detail.

Assignment Lifecycle

ASSIGNED → IN_PROGRESS → COMPLETED

Students can also PAUSE a test (auto-save preserves their progress) or it may be marked ABANDONED.

After 30 minutes of inactivity, the student gets a 10-second warning before the test automatically pauses. See Idle & Auto-Pause. You can also read test progress in Timeback, including the percentage answered and whether the attempt is unfinished.

Results & Reporting

The Results page at /results lists completed assignments across students. Search a date range, narrow it down, then open any row for the full question-by-question review.

Filtering

From date is the only required filter — the page stays empty until you pick one. Everything else is optional and combines:

FilterWhat it matches
From date / To dateWhen the result was recorded. To date defaults to today.
Test-outs onlyOnly test-out attempts, excluding assignments that came from a TimeBack assessment result.
StudentPick a student from the list, or type part of an email address. Case-insensitive, matches anywhere in the address.
TestAny test whose name contains what you type. Case-insensitive.
SubjectOne subject, exactly (see Allowed Values).
GradeThe grade the test is written for, PreK through 12 — not the student's own grade.
Domains to include / excludeThe email domain of the student, e.g. alpha.school. Hold Cmd/Ctrl to pick more than one.

Reset clears every filter.

Reading the results

Each row is one completed assignment: Test, Subject, Grade, User Email, Correct, Total, Accuracy and Completed. A test taken on a superseded version is flagged Outdated version, with the current version in the tooltip.

Click any row to open that attempt's review: every question, what the student answered, and what the correct answer was. Extended-text answers show the score and the marker feedback there too — see AI Auto-Grading for how those scores are produced. Writing that is still waiting on a human marker is queued on the Dashboard's Tests to Grade tab, which needs the canGradeWriting permission.

Export

Export CSV downloads every row matching your filters, not just the page you are looking at, as results.csv. The columns are id, test_name, subject, grade, user_email, correct_questions, total_questions, accuracy, endDate. The button is disabled until a search returns at least one row.

One student over time

For a single student's history rather than a list of attempts — growth across every test in a subject, skill gaps, peer comparison, and how a whole cohort did on each question — use the Timeline page.

Timeline

The Timeline page at /timeline is the per-student report. Search a student by email to get an overview of every subject, then pick one subject to see:

Teacher accounts only. Analytics sections are collapsed until you open them, and the AI narrative is only generated when you ask for it.

For programmatic access to an assignment's gap report and recommended lessons, see the Gap Analysis API.

Time on task versus active time
The Timeline's Time on task analytics currently use lifecycle duration, not the new active-time measure. The Results list and CSV do not include raw duration. Active time excludes time away from the test and extended inactivity. See Active Time Tracking for examples and how to read active time in Timeback.

Letter Sound Knowledge

The Letter Sound Knowledge page at /letter-sound-knowledge (under Reporting) gives a longitudinal, per-student view of phonics progress from the Letter Sound Screener — built for guides, parents, and the curriculum team. Search a student to see:

The view is available to teacher accounts. A student who hasn't taken a Letter Sound Screener yet shows an empty state. Click a letter to open its timeline and hear the student's recorded attempts; each screening links to the full test review. Use Export to PDF to open your browser's print dialog and choose "Save as PDF".

Reading Fluency

The Reading Fluency page at /reading-fluency (under Reporting) gives a longitudinal, per-student view of Oral Reading Fluency (ORF) progress. Search a student to see:

Teacher accounts only. A student who hasn't completed an ORF test yet shows an empty state. Export to PDF opens the browser print dialog — choose "Save as PDF".

Active Time Tracking

AlphaTest measures how long a student is actively working on each question and reports that time to Timeback. Time spent away from the test is not treated as continuous work.

What counts toward active time

Student activityWhat happens to the time
Working in the test with the tab visible and the window focusedTime counts toward the question currently open.
Reading or thinking without using the mouse, keyboard or touchscreenTime continues to count for up to 5 minutes after the last interaction, then stops silently.
Switching tabs or moving to another windowCounting stops immediately. Returning to the visible, focused test before the 30-minute warning threshold automatically resumes counting with a fresh 5-minute reading allowance. Time spent away is not added back.
Closing the laptop, losing the connection or closing the browser unexpectedlyNo more than 30 seconds beyond the last confirmed activity is credited, rather than counting the entire absence.
Returning to a questionThe new time is added to the time already spent on that question.
Answering very quicklyTime is reported in whole seconds. A first visit that would otherwise record zero seconds receives 1 second; later zero-second visits do not increase the total.
Working across midnight UTCTime is attributed to the respective UTC dates.
Pausing or submittingTime counting stops.

Example: returning to a question

A student works on question 2, comes back to it after a break, and reviews it before submitting. Each visit contributes to the same question total:

VisitActive time
Initial work72 seconds
Further work before pausing12 seconds
First return after resuming2 seconds
Another brief return3 seconds
Final review36 seconds
Question total125 seconds (2:05)

The break adds no time. Returning to the question does not reset or replace its earlier time.

Active time and result duration are different

Lifecycle duration measures the periods between starting or resuming and pausing or submitting. The Timeline's existing Time on task analytics still use that duration. Active time excludes time away from the test and inactivity beyond the reading allowance.

Which time should I use?
Use active time to understand time spent working. A test can have 40:19 of lifecycle duration while Timeback records 14:29 of active time if the student was idle before the test paused. These are different measures — do not add them together. Active-time reporting does not change scores, XP, mastery, pass/fail, fluency calculations or saved answers.

Older tests

Completed tests from before per-question tracking keep their existing time records. A test started before the change can contain an earlier test-level time contribution alongside newer per-question contributions; that earlier time cannot be broken down by question.

Reading active time from Timeback

Use Timeback's weekly facts endpoint to retrieve the student's individual time contributions. Supply a Timeback access token authorized to read that student's analytics, their Timeback student sourcedId, and a date in the week you want to inspect:

Shell
curl --get 'https://api.alpha-1edtech.ai/edubridge/analytics/facts/weekly' \
  -H "Authorization: Bearer $TIMEBACK_TOKEN" \
  --data-urlencode "studentId=$STUDENT_SOURCED_ID" \
  --data-urlencode 'weekDate=2026-09-07' \
  --data-urlencode 'timezone=UTC'

The response contains a facts array and the week's startDate and endDate. You can use email instead of studentId. For a test spanning multiple weeks, retrieve each week covering the attempt.

Field in each factHow to identify AlphaTest time
appSelect "Alpha Test" (with a space).
eventTypeSelect "TimeSpentEvent".
activityIdQuestion time uses https://alphatest.alpha.school/assignment/{assignmentId}/question/{qtiId}. Earlier test-level time uses https://alphatest.alpha.school/assignment/{assignmentId}.
activeSecondsThe active-time contribution, in seconds. This endpoint returns it as a numeric string, such as "72" or "72.00"; convert it to a number before summing.
date / datetimeUse these to select the reporting dates. The example requests UTC dates.
idIdentifies the fact. If you combine overlapping responses, count each id only once.

For one question: match its exact activityId and sum activeSeconds across all matching facts. The question part is its stable QTI identifier, not its position such as q2. Separate visits can have identical durations — do not discard them just because the number of seconds matches.

For the whole test: sum facts whose activityId starts with https://alphatest.alpha.school/assignment/{assignmentId}/question/, plus any earlier test-level contribution whose activityId exactly equals https://alphatest.alpha.school/assignment/{assignmentId}. These URLs identify records; they are not additional API endpoints to call.

Idle Detection & Auto-Pause

Two inactivity thresholds apply while a student is taking a test. Moving the mouse, clicking, typing, scrolling or touching the screen counts as activity while the test tab is visible and its window is focused.

5 minutes — active time stops counting
No warning appears and the test stays open. The student can continue where they left off; interacting with the test resumes time counting without adding the idle period.
30 minutes — a pause warning appears
The student has 10 seconds to respond. If they do not, AlphaTest auto-saves and pauses the test, then returns them to the Dashboard's Paused tab.
Switching tabs or windows
Time counting stops immediately when the test tab is hidden or its window loses focus; it does not wait for 5 minutes. Returning to the visible, focused test before the 30-minute warning threshold resumes counting automatically, with a fresh 5-minute reading allowance. If the inactivity period has reached 30 minutes, returning shows the pause warning instead. The countdown does not expire while the page is hidden.

The 30-minute warning

The warning looks like this (shown partway through the countdown):

Are you still there?
We haven't noticed any activity for 30 minutes. Your assessment will pause unless you confirm that you're here.
Pausing in 7 seconds
I'm here

Choose I'm here to continue. Interacting with the page during the countdown also clears the warning and resumes time counting on the current question. The time spent idle is not added back.

When the countdown expires

Countdown reaches 0 → Auto-save answers → Pause the test → Open the Paused tab

While this happens, the warning reads Saving and pausing your assessment…. Auto-pause does not submit the test for grading. The student can resume it later with their saved answers.

The Paused tab and the "Last paused" badge

After auto-pause, the Dashboard opens on the Paused tab. The test that just paused is marked Last paused, making it easy to find and resume:

Not started (3) Paused (2) Completed (12)
Alpha Math STAAR G3.2018 Last paused
Paused
Alpha 2026 Reading K.1 Paused

The badge highlights that return from auto-pause; it is not a permanent label on the test or a history of every pause. Manually choosing Exit test does not add the badge.

If the test cannot be paused

The warning stays open and says We couldn't pause your assessment. Confirm when you're back. Active time remains stopped. Choose I'm here when ready to continue; in this case, moving the mouse or typing alone does not dismiss the message.

When these rules apply

Active-time tracking and idle warnings apply to a test being taken, not to admin previews or reviews of completed tests. They are also off during the fluency Get ready warm-up, while or after submitting, after pausing, or when the test has been stopped by proctoring or an availability restriction.

The 5-minute inactivity threshold, 30-minute pause warning and 10-second countdown are the same across schools and tests; there is no setting to adjust them.

Live Test Progress in Timeback

Timeback shows whether an AlphaTest attempt has started, how much the student has answered, and whether it has been completed. Read this information from the test-level assessment result, not the individual question results.

What changes as the student works

Student's test stateWhat Timeback shows
Assigned, not yet startedinProgress: "false" and scoreStatus: "not submitted".
Started or resumedinProgress: "true". Answer-progress fields may be absent until the student changes an answer.
Answering questionsThe last changed question, its answer-change time, and the percentage answered are updated.
PausedinProgress remains "true": the attempt is unfinished, even though the student is not currently working.
CompletedinProgress: "false" and pctCompleteTest: "100%". Once grading is available, scoreStatus is "fully graded".
Progress is not a score or a presence indicator
inProgress: "true" means an attempt has started but is unfinished, not that the student is online. pctCompleteTest describes completion, not correctness. Answering every question can produce "100%" before submission, so use the result's status fields as well when identifying completed tests.

The progress fields

FieldHow to read it
inProgressThe string "true" or "false", not a JSON boolean. Interpret it alongside scoreStatus: both an unstarted and a completed test can have inProgress: "false".
metadata.lastQuestionAnsweredThe one-based question number whose answer most recently changed. Answer question 9 and then revise question 2, and this reads 2 — not 9, an answered-question count, or a QTI identifier.
metadata.lastQuestionAnsweredAtThe timestamp of that answer change, for example 2026-09-08T13:41:07.412Z. Reading, thinking or simply navigating does not make this a new answer change.
metadata.pctCompleteTestA percentage string, rounded to at most one decimal place: "70%", "46.9%", "0%" or "100%".

Examples: answers, revisions and skipped questions

Student actionEffect on reported progress
Answers 7 of 10 questionspctCompleteTest: "70%".
Answers 15 of 32 questionspctCompleteTest: "46.9%".
Revises an answer without changing how many questions are answeredThe question number and timestamp update; the percentage stays the same.
Clears one of 7 answers in a 10-question testThe percentage drops to "60%". The last-question number and timestamp identify the answer that was cleared.
Skips an unanswered questionThe question is still unanswered. The percentage does not increase, and the last-answer fields do not move.
Resumes a paused testSaved answers remain. Resuming alone does not count as answering another question.
Completes the test with some questions left blankpctCompleteTest becomes "100%" because the attempt is complete, not because every question was answered or correct.

Reading progress from Timeback

Use a Timeback access token authorized to read the student's gradebook and their Timeback sourcedId. This basic example retrieves their AlphaTest result records, which can include both whole-test and individual-question results:

Shell
curl --get 'https://api.alpha-1edtech.ai/ims/oneroster/gradebook/v1p2/assessmentResults/' \
  -H "Authorization: Bearer $TIMEBACK_TOKEN" \
  --data-urlencode "filter=status='active' AND \
student.sourcedId='$STUDENT_SOURCED_ID' AND metadata.toolProvider='AlphaTest'" \
  --data-urlencode 'limit=100' \
  --data-urlencode 'offset=0'

Read the assessmentResults array and exclude records whose metadata.resultType is "question". To find one assignment, match metadata.assignmentId. Read progress from the whole-test result, not from its question results. If more records remain according to totalCount, continue with the next offset.

A missing resultType is normal for an unfinished test
Newly assigned and in-progress whole-test results can omit metadata.resultType. Graded whole-test results use "assessment", while question results use "question". Keep records where the field is absent rather than requiring resultType: "assessment" to find unfinished tests. Its absence does not by itself mean the test or its progress is missing.

Once you know the whole-test result's sourcedId, read that result directly:

Shell
curl "https://api.alpha-1edtech.ai/ims/oneroster/gradebook/v1p2/assessmentResults/$RESULT_SOURCED_ID" \
  -H "Authorization: Bearer $TIMEBACK_TOKEN"

This response contains a single assessmentResult. Its sourcedId is the Timeback result identifier, not the AlphaTest assignment id or the test id.

When progress updates appear

Background updates
Progress updates are sent to Timeback in the background and may not appear immediately. They are separate from answer saving and grading, so students do not need to wait for Timeback to update before continuing.
Field rename
Read pctCompleteTest for the current completion percentage. Some older results also contain its previous name, partiallyCompleted; do not treat that older field as a separate progress measure.

Org Settings

Permission Required
You need the canAdminEdit permission to access Org Settings. The page is hidden from the sidebar if you don't have this permission.

Org Settings lets you control when and where students from specific Timeback organizations can take AlphaTests. You can limit a school to testing only during school hours (7:30 AM–3:30 PM on weekdays) using availability windows, and restrict testing to approved network locations using IP restrictions. Outside allowed hours or from unapproved IPs, students see a friendly message and cannot start or resume tests.

What Are Org Settings?

An org in AlphaTest maps directly to an organization in Timeback. Each student in Timeback belongs to one or more orgs (typically their school). Org Settings lets you attach availability windows (time-based restrictions) and IP restrictions (location-based restrictions) to those orgs.

Org Configuration
A record linking a Timeback organization to AlphaTest settings: timezone, availability windows, and IP restriction rules.
Availability Window
A time range (e.g., 7:30 AM–3:30 PM) on specific days (weekdays, weekends, or individual days) when students ARE allowed to test. Outside all windows = blocked.
IP Restriction
An allowlist of approved IP addresses (IPv4 or CIDR ranges) that students must connect from to start tests. Configurable violation behavior for mid-test IP changes.

How It Works

Timeback
Source of truth
Orgs & student membership
→
AlphaTest Backend
Live lookup
Matches orgs to local configs
→
Student Player
Enforces
Blocks, warns, auto-pauses

Timeback is the source of truth for which students belong to which orgs. AlphaTest only stores the availability configuration (timezone, windows, messages). When a student opens the test player, AlphaTest calls Timeback in real time to check which orgs they belong to, then applies matching availability rules.

This means if a student transfers schools in Timeback, the change takes effect in AlphaTest within minutes — no manual update needed.

Configuring an Org

1
Navigate to Org Settings

In the admin sidebar, click Org Settings (or go to /org). You'll see a list of orgs that already have configurations.

2
Add Org Configuration

Click "Add Org Configuration" in the top-right corner. A dialog opens with a search field that queries your Timeback organization catalog.

3
Search and Select an Org

Type the school or org name in the search field. The dropdown shows matching Timeback organizations that don't yet have a configuration. Click the one you want.

4
Set Timezone

Select the org's timezone from the dropdown (e.g., America/Chicago for Central Time). All availability window times will be interpreted in this timezone. You can also enter a custom IANA timezone name if needed.

5
Save and Add Windows

Click "Create configuration". You'll be taken to the org detail page. The configuration exists but has no windows yet — meaning no restrictions. Click "Add Window" to define when students can test.

No windows = no restrictions
An org configuration without any availability windows does not restrict students. You must add at least one window for the time restrictions to take effect.

Schedule Types

Each availability window applies to certain days of the week. There are three schedule types:

TypeApplies ToUse When
WeekdaysMonday through FridaySchool hours that are the same every weekday
WeekendsSaturday and SundayWeekend testing hours (or to explicitly block weekends by not adding a window)
IndividualOne or more specific daysWhen a particular day has different hours (e.g., half-day Wednesday)

Precedence Rules

If an org has multiple windows, the system picks the most specific match for the current day:

  1. Individual day window (e.g., "Wednesday") — highest priority
  2. Weekdays / Weekends window — used if no individual day match exists

Example: You set Weekdays 7:30–15:30 and an Individual Wednesday 7:30–12:00. On Wednesday, the 7:30–12:00 window applies. On all other weekdays, 7:30–15:30 applies.

Cross-midnight windows
If you set a start time later than the end time (e.g., 19:30–03:30), the system treats it as an overnight window that crosses midnight. A Friday 19:30–03:30 weekday window correctly applies through Saturday 03:30.

End-of-Window Behaviors

When a student is in the middle of a test and the availability window closes, the system takes one of three actions:

BehaviorWhat HappensWhat the Student SeesBest For
Auto-Pause Test is paused and progress is saved. Student can resume in the next available window. A "Saving your progress…" overlay, then a dialog: "The scheduled testing window has closed. Your test has been paused and your progress has been saved." Most situations. Recommended default.
Auto-Submit Test is automatically submitted for grading with whatever answers the student has provided. A submission overlay, then a dialog: "Your test was submitted automatically because the testing window ended." When you don't want students to continue later (e.g., exam-style settings).
Allow Finish Nothing happens. The student can continue working. An informational banner that the window is ending, but no interruption. When the window end is advisory, not enforced.

Window Settings

When adding or editing an availability window, you configure:

SettingDescriptionDefault
Schedule typeWeekdays, Weekends, or Individual days—
Start timeWhen the window opens (in the org's timezone)—
End timeWhen the window closes—
Warn before endMinutes before end time to show a heads-up warning to students starting a test75 minutes
When window endsAuto-pause, Auto-submit, or Allow finishAuto-pause
Effective from / untilOptional date range for when this window is active. Leave blank or check "No expiration" for a permanent window.No expiration
Blocked messageCustom message shown to students when testing is blocked (outside the window)"AlphaTests are only available during school hours…"
Warning messageCustom message shown to students starting a test within the warning period"Heads up — AlphaTest closes soon…"

Managing Windows

Editing a Window

On the org detail page, click the pencil icon next to a window. The edit dialog lets you change times, behavior, messages, and effective dates. The schedule type cannot be changed after creation — delete and recreate if you need a different type.

Deleting a Window

Click the trash icon next to a window. A confirmation dialog appears. Deleting a window immediately lifts restrictions for those days (unless another window covers them).

Copying Windows from Another Org

If multiple orgs share the same schedule, use "Copy from…" on the org detail page. Select a source org and choose whether to replace existing windows or add alongside them. This copies all window configurations (times, behaviors, messages) from the source org.

Enabling / Disabling Restrictions

Each org has a "Restrictions enforced" toggle on its detail page. When disabled, all windows for that org are ignored — students can test anytime regardless of configured windows. This is useful for temporarily lifting restrictions (e.g., during exam week) without deleting the windows.

What Students See

The student experience has four stages, each triggered at a different point in the testing flow:

1. Blocked Modal (Dashboard)

When a student from a restricted org opens their dashboard outside the availability window, a modal dialog appears:

🕐

Testing currently unavailable

AlphaTests are only available during school hours: 7:30am–3:30pm CT.

In the meantime, you can keep making progress from home by working on your coursework!

Got it

The student can dismiss the modal by clicking "Got it" and still browse their dashboard. However, the Start and Continue buttons on all tests are disabled. The View Results button on completed tests still works — students can always review past results.

2. Warning Dialog (Test Start)

When a student tries to start a test within the warning period (e.g., 75 minutes before the window closes), a dialog appears before the test begins:

Heads Up

Heads up — AlphaTest closes at 3:30pm. Your session will be paused at 3:30pm regardless of if you've finished, so please make sure to submit your test before then.

Go back   I understand, start test

The student must click "I understand, start test" to proceed. This ensures they know the window is ending soon.

3. Countdown Banner (During Test)

Five minutes before the window closes, a persistent banner appears below the test header:

⚠ Your test session will be paused in 5 minute(s). Please submit now if you can.

The banner counts down and the message adapts based on the configured end-of-window behavior (pause, submit, or informational).

4. Window End Action

When the window closes:

Troubleshooting

Students aren't being blocked ▼
  1. Confirm the org configuration has the "Restrictions enforced" toggle turned ON.
  2. Confirm at least one availability window exists for the relevant days.
  3. Confirm the student belongs to that org in Timeback — check their Timeback profile and roles.
  4. Check that the window's effective date range covers today (or is set to "No expiration").
  5. The availability check caches org membership for 5 minutes. If you just moved a student, wait 5 minutes and try again.
Students are blocked but shouldn't be ▼
  1. Check the student's Timeback org roles — they might belong to a configured org you didn't expect.
  2. Check the org's timezone setting. If the timezone is wrong, the window times may not match the real local time.
  3. Check if a default org is set. A default config applies to all students who don't match any configured org. If you don't intend this, clear the default.
A student changed schools / orgs ▼

AlphaTest looks up org membership from Timeback in real time (with a 5-minute cache). Once the student's Timeback roles are updated, AlphaTest will automatically apply the new org's availability rules within 5 minutes. No manual action is needed in AlphaTest.

Window times seem wrong ▼

All window times are stored and displayed in the org's configured timezone. If the org's timezone is set to America/Chicago (Central Time) and you enter 7:30 AM, the window opens at 7:30 AM CT — regardless of where the admin is located. Double-check the timezone on the org detail page.

Also note that Daylight Saving Time transitions are handled automatically. A 7:30 AM CT window correctly shifts to the CDT/CST offset as needed.

IP Restrictions

IP restrictions let you control where students can take tests by maintaining an allowlist of approved IP addresses. When enabled, students from the org must connect from an approved IP to start a test. This is ideal for proctored testing environments where you want to ensure students are physically present in a specific building or campus network.

How it works
When a student tries to start a test, the system checks their IP address against the org’s allowlist. If their IP isn’t on the list, access is denied and a blocked message is shown. If their IP changes mid-test (e.g., they switch networks), the configured violation behavior is triggered.

Enabling IP Restrictions

On the org detail page, the IP Restrictions card has a master toggle labeled “IP restriction enforced”. When toggled on, students from this org must connect from an approved IP address to start tests. When toggled off, students can take tests from any location — the allowlist is preserved but not enforced.

Empty allowlist = all blocked
If IP restriction is enabled but the allowlist is empty, no students can start tests from this org. Make sure to add at least one IP entry before enabling the restriction.

Managing the IP Allowlist

The allowlist is a table of approved IP addresses. Click “Add IP” to add a new entry. Each entry has the following fields:

FieldDescriptionRequired
IP AddressAn IPv4 address (e.g., 192.168.1.1) or a CIDR range (e.g., 10.0.0.0/24 for a subnet of 256 addresses). Each octet must be 0–255; CIDR prefix must be 0–32.Yes
LabelA human-readable name to identify this IP or range (e.g., “Main Campus”, “Testing Lab A”). Shown in the table for easy reference.No

Each IP entry has an individual enable/disable toggle, letting you temporarily deactivate an entry without deleting it. For example, you can disable a branch campus IP during maintenance without losing the entry.

Finding your IP
To find the public IP address of a school network, visit whatismyipaddress.com from a computer on that network, or ask the school’s IT department for the external IP range. If the school uses a NAT gateway, a single IP may cover all devices on the network.

IP Violation Behavior

The “When IP violation detected mid-test” dropdown configures what happens when a student’s IP address changes to one that is not on the allowlist while they are in the middle of a test:

BehaviorWhat HappensBest For
Auto-Pause Test is paused and progress is saved. The student can resume when they return to an approved IP. Most situations. Recommended default.
Auto-Submit Test is automatically submitted for grading with whatever answers the student has provided so far. High-stakes proctored exams where leaving the approved network is not acceptable.
Allow Finish Nothing happens. The student can continue working despite the IP change. When IP monitoring is advisory only and you want to log violations without interrupting.

Student-Facing Messages

Click “Show student-facing messages” on the IP Restrictions card to configure two custom text messages:

MessageWhen ShownDefault
Blocked message When a student tries to start a test but their IP is not on the allowlist. (empty — system default is used)
Warning message When a student’s IP changes mid-test to one not on the allowlist (before the violation behavior is applied). (empty — system default is used)

Messages auto-save when you click outside the text area (on blur).

What Students See

Blocked at Test Start

When a student from an IP-restricted org tries to start a test from an unapproved IP, a modal dialog appears:

🔒

Access restricted

You are not connecting from an approved location. Please make sure you are on your school’s network and try again.

Got it

The student can dismiss the modal, but the Start button remains disabled until they connect from an approved IP.

IP Change Mid-Test

If the student’s IP changes mid-test (e.g., they switch from the school Wi-Fi to a personal hotspot), the system:

  1. Shows the configured warning message
  2. Applies the violation behavior (auto-pause, auto-submit, or allow finish)

Combining IP Restrictions with Availability Windows

IP restrictions and availability windows are independent features that work together. A student must satisfy both to start a test:

Each feature has its own master toggle. You can use one, both, or neither per org.

IP Restrictions Troubleshooting

Students are blocked but their IP should be allowed ▼
  1. Confirm the IP entry is enabled (the toggle next to the IP in the allowlist table should be on).
  2. Verify the correct IP is listed. Have the student visit whatismyipaddress.com to confirm their public IP.
  3. If using a CIDR range, verify the student’s IP falls within that range. For example, 10.0.0.0/24 covers 10.0.0.0 through 10.0.0.255.
  4. Check that the “IP restriction enforced” toggle is on — if it’s off, IP restrictions are not being applied (so the issue may be elsewhere, like availability windows).
Students aren’t being IP-blocked but should be ▼
  1. Confirm the “IP restriction enforced” toggle is turned ON.
  2. Confirm the allowlist has at least one enabled entry.
  3. Confirm the student belongs to the org in Timeback — check their Timeback profile and roles.
  4. The IP check caches org membership for 5 minutes. If you just configured the org, wait 5 minutes and try again.
How to temporarily lift IP restrictions ▼

Toggle the “IP restriction enforced” switch to OFF. This preserves all your IP entries and settings but stops enforcing them. Students can take tests from any IP. Toggle it back on when you’re ready to re-enable enforcement.

Origin Settings

Permission Required
You need the canAdminEdit permission to access Origin Settings. Editing rules on the _default origin additionally requires canEditDefaultRules.

Origin Settings lets you control how the student progression pipeline behaves for different test origins. An origin is a label that identifies where an assessment came from — for example, 100for100 (practice-loop program), timeback_ui (teacher-assigned from the Timeback interface), or the built-in _default origin that catches everything not matched by a specific rule.

For each origin, you can configure analysis rules that control three key decisions in the pipeline:

Gap Analysis
Should the system analyze the student’s wrong answers after a test? When disabled, the pipeline skips gap analysis entirely for this origin.
DCAN Recommendations
Should the AI recommend specific remediation lessons? Requires gap analysis to be enabled. When disabled, no AI-powered lesson recommendations are generated.
Progression Enqueue
Should the student be advanced to the next course or test? Controls whether the Timeback progression queue receives the student after grading. A minimum score threshold can also be set.

How Origins Work

When a student completes a test, the system looks at the test’s origin to decide which rules apply. The origin is set when the test is assigned via the Delivery Assign API using the origin field in the request body. Different systems set different origins: Timeback’s progression pipeline sets timeback_ui, the 100for100 program sets 100for100, and the admin UI sets admin-ui. If no origin is set, the _default rules apply.

flowchart TD TEST["Student completes a test"] --> ORIGIN{"Origin has\nmatching rule?"} ORIGIN -->|"Yes"| APPLY["Use origin rule"] ORIGIN -->|"No"| ORG{"Student's org has\nmatching rule?"} ORG -->|"Yes"| APPLY2["Use org rule"] ORG -->|"No"| DEFAULT["Use _default rule"] APPLY --> PIPELINE["Continue pipeline\nwith resolved settings"] APPLY2 --> PIPELINE DEFAULT --> PIPELINE

The Rule Resolution Chain

When the system needs to find the right rule for a test result, it follows a three-step cascade:

  1. Origin rules — checked first. If the test’s origin has a rule matching the subject and test type, that rule is used.
  2. Org rules — checked second. If the student’s Timeback organization has a matching rule, it’s used as a fallback.
  3. _default origin — the system-wide catch-all. Always has rules for every subject/test-type combination. Used when neither origin nor org has a matching rule.
Origin overrides org
If both an origin rule and an org rule could match, the origin rule wins. This lets you create program-specific behavior that overrides any school-level defaults.

Managing Origins

1
Navigate to Origin Settings

In the admin sidebar, click Origin Settings (or go to /origin). You’ll see a list of configured origins.

2
Add an Origin

Click “Add Origin”. Enter the origin name (e.g., summer_program) and an optional description. Origin names are case-sensitive and must exactly match the origin value passed in the Delivery Assign API request body.

3
Add Analysis Rules

On the origin detail page, click “Add Rule” to create analysis rules that control how the pipeline behaves for tests from this origin. See Analysis Rules below for details.

Analysis Rules

Analysis rules are the core configuration for each origin. Each rule defines what happens when a student completes a test that matches the rule’s subject pattern and test type pattern.

Rule Matching

Each rule has two pattern fields that determine when it applies:

FieldWhat It MatchesExamples
Subject Pattern The test’s subject. Use * to match all subjects, a specific name like Math, or a suffix pattern like *-ISEE to match any subject ending in -ISEE (e.g., Language-ISEE, Math-ISEE). *, Math, *-ISEE, *-unit
Test Type Pattern The test’s type. Use * to match all types, or enter a specific type. *, placement, end of course, test out
Pattern precedence
When multiple rules could match, the system picks the most specific one. An exact subject + exact test type wins over a wildcard. If two rules tie on specificity, a rule with a grade range filter wins over one without. The full precedence order: exact+exact > suffix+exact > wildcard+exact > exact+wildcard > suffix+wildcard > wildcard+wildcard.

Grade Filtering

Rules can optionally be limited to a grade range using the Grade Min and Grade Max dropdowns. When set, the rule only applies to students in that grade range. This allows different settings for different grade levels — for example, enabling hole-filling for Math K–3 but disabling it for Math 4–8.

Rule Settings

SettingWhat It ControlsDefault
Gap Analysis Whether the system analyzes wrong answers after grading. When OFF, no gap report is generated and the DCAN and custom hole-filling toggles are automatically disabled. ON
DCAN Recommendations Whether the AI generates lesson recommendations from the gap report. Requires gap analysis to be ON. When OFF, the custom hole-filling toggle is automatically disabled. ON
Progression Enqueue Whether the student is advanced to the next step in Timeback (next course or next test). The “Min Score” field sets a minimum accuracy threshold — scores below it are not enqueued even if the toggle is ON. ON
Score Floor Minimum score threshold (percentage). Scores below this bypass gap analysis and are routed to course enrollment instead of hole-filling. Leave empty for no lower bound. Empty (no floor)
Score Ceiling Maximum score threshold (percentage). For placement tests, scores at or above this bypass gap analysis (student mastered the material). For other test types (test-out, end-of-course), gap analysis runs regardless — the mastery decision happens downstream in Timeback. The standard system value is 89.5%. 89.5
Mastery Gate When enabled, skips gap analysis if the test grade is at or below the student’s highest mastered grade. Used by programs like 100for100 where students re-test already-mastered content. When grade data is unavailable, the gate fires defensively (bypasses). XP multiplier and related settings are only visible when this is ON. OFF
XP Multiplier A multiplier applied to the student’s XP for tests matching this rule. Set to 1 for normal XP, 0 to award no XP, or a higher value to boost rewards. Only visible when the mastery gate is enabled. 1
Exact Match When checked, the subject and test type patterns are matched exactly (case-insensitive) with no wildcard or suffix interpretation. Use for origins where the pattern text is a literal value, not a search pattern. OFF
Dependency chain: GA → DCAN → Custom HF
These three features form a dependency chain. Disabling gap analysis automatically disables DCAN, which automatically disables custom hole-filling. You cannot enable a downstream feature without its upstream dependency. The admin UI enforces this with blocked toggles and tooltip hints.
Hardcoded bypasses (not configurable)
Regardless of rule settings, gap analysis is always bypassed for:
  • Test users — accounts with @reachbeyond.ai emails or metadata.type = test
  • Zero scores — 0% accuracy (likely untaken or invalid attempt)
  • First placement test — the first completed placement in a subject (unless the student is at the lowest grade in the sequence)
Suffix pattern shadowing
If you create a suffix rule like *-ISEE / * (wildcard test type), it will be overridden by any * / placement rule when the test type is placement (because wildcard+exact beats suffix+wildcard in precedence). To avoid this, also create explicit rows for each test type: *-ISEE / placement, *-ISEE / test out. The pre-seeded default rules already include these explicit rows.

Example Scenarios

ScenarioSubjectTest TypeGADCANEnqueueCustom HF
Standard progression (default behavior) * * ON ON ON OFF
Practice program — no remediation, just re-test * * OFF OFF OFF OFF
Standardized test — just score, no pipeline * * OFF OFF OFF OFF
Math K–3 with custom hole-filling Math * ON ON ON ON

Custom Hole-Filling

Custom hole-filling is an advanced feature that lets the system automatically create targeted remediation courses when a student scores within a specific range. Unlike standard hole-filling (which Timeback controls), custom hole-filling is triggered by AlphaTest based on the analysis rules you configure.

flowchart TD SCORE["Student scores\nbetween floor and ceiling"] --> GA{"Gap Analysis\nenabled?"} GA -->|"No"| STOP["Pipeline stops"] GA -->|"Yes"| DCAN{"DCAN\nenabled?"} DCAN -->|"No"| STOP DCAN -->|"Yes"| CHF{"Custom HF\nenabled?"} CHF -->|"No"| STD["Standard Timeback\nprogression only"] CHF -->|"Yes"| RANGE{"Score in custom\nHF range?"} RANGE -->|"No"| STD RANGE -->|"Yes"| CREATE["Create custom HF\ncourse with DCAN lessons"] CREATE --> NEXT["Student completes course\nthen takes follow-up test"]

When to Use Custom Hole-Filling

Timeback’s standard progression has specific score ranges where hole-filling is enabled or disabled. For example, Math grades 4–8 currently have no standard hole-filling — students who score below mastery are simply enrolled in the course. Custom hole-filling lets you override this gap and create AI-recommended remediation courses for score ranges that would otherwise receive no targeted help.

Threshold band display
When editing custom HF settings, the admin panel shows the current Timeback progression thresholds for the rule’s subject and grade range. This helps you pick floor and ceiling values that fill the gaps in Timeback’s standard behavior. The thresholds are synced daily from Timeback’s configuration.

Custom HF Settings

SettingWhat It ControlsDefault
Custom HF Enabled Whether to trigger custom hole-filling for scores in the configured range. Requires both gap analysis and DCAN to be enabled. OFF
Custom HF Floor Minimum score (percentage) for the custom HF range. Scores below this are not targeted by custom hole-filling. Must be within the GA score range — custom HF can only trigger for scores where gap analysis runs. Empty (no floor)
Custom HF Ceiling Maximum score (percentage) for the custom HF range. Scores at or above this are not targeted. Must be within the GA score range. Empty (no ceiling)
Unenroll from same-subject courses When checked (default), the student is removed from other active courses of the same subject before enrolling in the custom HF course. Manual XP courses and class enrollments are always protected. Uncheck to keep the student in all existing courses. ON (checked)
Standard HF overlap prevention
If Timeback’s standard progression already provides hole-filling for the student’s score range, the custom HF trigger is automatically skipped to avoid creating duplicate courses. The system checks the Timeback thresholds for the student’s subject and grade before triggering.

Default Rules

Permission Required
Editing default rules requires the canEditDefaultRules permission in addition to canAdminEdit. This is a separate, elevated permission because default rules affect all students who don’t match a specific origin or org rule.

Default rules are the system-wide fallback. They live on a special _default origin that cannot be renamed or deleted. When no origin-specific or org-specific rule matches a student’s test result, the default rules apply.

The Default Rules page (accessible from Default Rules in the sidebar, or at /default-rules) shows the same analysis rules table as any origin, but for the _default origin. You can add, edit, and delete rules following the same patterns described in Analysis Rules.

What Default Rules Cover

The _default origin is pre-seeded with rules that reproduce the system’s historical behavior:

SubjectTest TypeGradeFloorCeilingGADCANEnqueueCustom HFPurpose
**All—89.5ONONONOFFCatch-all: GA runs for all subjects
*test outAll60.089.5ONONONOFFTest-out with 60% floor
*placementAll59.589.5ONONONOFFPlacement with 59.5% floor
MathplacementPK–379.589.5ONONONOFFMath K–3 placement: higher floor
Mathplacement4–1289.589.5ONONONOFFMath 4+ placement: floor = ceiling (no HF band)
*-ISEE*All——OFFOFFOFFOFFISEE tests bypass the pipeline
*-unit*All——OFFOFFOFFOFFUnit tests bypass the pipeline
fastmath*All——OFFOFFOFFOFFFastMath uses its own progression
Why separate default rules?
The _default origin is hidden from the Origin Settings list to prevent accidental edits. Since default rules affect every student globally, they have their own dedicated page and require an elevated permission. This separation ensures that program-specific origins can be managed freely without risking the system-wide defaults.

When Are Default Rules Used?

flowchart TD TEST["Test completed"] --> ORIGIN{"Origin has\nmatching rule?"} ORIGIN -->|"Yes"| USE_ORIGIN["Use origin rule"] ORIGIN -->|"No"| ORG{"Student's org has\nmatching rule?"} ORG -->|"Yes"| USE_ORG["Use org rule"] ORG -->|"No"| USE_DEFAULT["Use _default rule"] USE_ORIGIN --> PIPELINE["Apply to pipeline"] USE_ORG --> PIPELINE USE_DEFAULT --> PIPELINE

The default rules are the last resort in the resolution chain. They ensure that every test result, regardless of origin or organization, always has a defined behavior. If you add a new origin and don’t create any rules for it, the _default rules automatically apply.

API Endpoints Reference

Technical Reference — Used by Claude Code and developers

Assessment Items (Questions)

ActionMethodEndpoint
Search and filter itemsGET/assessment-items
Create a new itemPOST/assessment-items
Get a specific itemGET/assessment-items/{identifier}
Update an itemPUT/assessment-items/{identifier}
Delete an itemDELETE/assessment-items/{identifier}
Bulk update metadataPUT/assessment-items/metadata

Assessment Tests

ActionMethodEndpoint
Search testsGET/assessment-tests
Create testPOST/assessment-tests
Get testGET/assessment-tests/{identifier}
Update testPUT/assessment-tests/{identifier}
Delete testDELETE/assessment-tests/{identifier}
Get all questions in testGET/assessment-tests/{identifier}/questions
Add item to sectionPOST/assessment-tests/{testId}/test-parts/{partId}/sections/{sectionId}/items
Remove item from sectionDELETE/assessment-tests/{testId}/test-parts/{partId}/sections/{sectionId}/items/{itemId}
Reorder itemsPUT/assessment-tests/{testId}/test-parts/{partId}/sections/{sectionId}/items/order

Stimuli & Validation

ActionMethodEndpoint
Create stimulusPOST/stimuli
Get stimulusGET/stimuli/{identifier}
List stimuliGET/stimuli
Update stimulusPUT/stimuli/{identifier}
Delete stimulusDELETE/stimuli/{identifier}
Validate XMLPOST/validate
Validate batchPOST/validate/batch

Reporting (AlphaTest)

Use the AlphaTest base https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod and an authorized X-Auth-Token, not the QTI base. See Gap Analysis API for parameters, response variants and examples.

ActionMethodEndpoint
Read an assignment's gap reportGET/reporting/gap-analysis
Read per-course lesson recommendationsGET/reporting/lesson-recommendations

LLM Technical Reference

For AI Assistants
This section is meant to be read by AI assistants (e.g., Claude Code) generating content via the API. Educators can skip this section.

Critical Rules

  1. Subject must match allowed values exactly. Math not Mathematics. Language not English. Case-sensitive.
  2. All identifiers must start with _ or a letter. QTI ids are XML names and cannot start with a digit, so a bare UUID (often digit-leading) is rejected by the validator. Prefix every id — item and choices/gaps/rows — with _ (e.g. _a1b2c3d4-…), or use readable ids like _choice_a. Never reuse across items.
  3. LaTeX escaping is the #1 bug source. \frac in XML, \\frac in JSON, \\\\frac in Python (or r"\\frac").
  4. Always use "format": "xml". JSON item format is experimental and not supported.
  5. Always validate before creating. Use POST /validate with "schema": "item" or "schema": "test".
  6. Use the match_correct response processing template for standard types:
    https://purl.imsglobal.org/spec/qti/v3p0/rptemplates/match_correct
  7. Use &#160; (not &nbsp;) for non-breaking spaces in XML.
  8. Edit anything; copies get their own passages. A test, question or passage a colleague built — or one built here on AlphaTest — can be edited normally: the tooling has the platform make the edit in the background, records who made it, and the educator is never asked about it. Deleting someone else’s content is never done for them. A passage can be shared by many tests, and so can a question, so a change meant for one test only goes on copies of that test’s questions (duplicate_item.py, which copies the passage too; --use-passage keeps several copies on one passage) or of the whole test (duplicate_test.py); swap_item.py puts a copy in place of the original, same Test ID.
  9. Fetch real examples before writing. Always start from a fetched rawXml.
  10. Build JSON payloads programmatically. Never use shell heredocs or string concatenation with XML.
  11. Strip audio/TTS when cloning items. Remove <qti-catalog> blocks and data-audio-* attributes.
  12. Render-check the finished test — validation is not enough. A question can validate yet render blank. The player reads the stem from <qti-prompt> (a bare <p> renders nothing for non-inline types), and "hotspot" must be a number-line plot (qti-position-object-interaction); image hotspots (qti-hotspot-interaction) do not render. After creating the test, run render_check.py --test-id <id> (calls GET /assessment-tests/{id}/questions) and confirm every question is OK before sharing the Test ID.
  13. Create tests as JSON, not with the { "format": "xml" } wrapper. That wrapper works for items only. POST /assessment-tests dispatches on Content-Type: send a JSON test object (application/json) with identifier, title, and qti-test-part[].qti-assessment-section[].qti-assessment-item-ref[], or raw XML with application/xml. The item wrapper returns "test.identifier is required".
Empirically verified corrections (June 2026)
Two items below differ from older drafts of this reference, confirmed by live API testing: (1) choice/inner identifiers must start with _ or a letter — bare UUIDs are rejected; (2) tests are created as a JSON object (or application/xml), not with the item-style { "format": "xml" } wrapper. The reference text embedded further below predates these fixes — follow the two rules above where they conflict.

Troubleshooting

What to tell Claude Code when something goes wrong
If you encounter an error, paste the error message directly to Claude Code:
"I got this error when trying to create a question: [paste the error message]. Can you help me fix it?"

Claude Code can diagnose most issues (invalid XML, missing fields, authentication problems) and fix them for you automatically.
ProblemLikely CauseSolution
Match question gives no partial credit Match grading is all-or-nothing (SCORE 1 or 0) Match items: tabular uses match_correct; gaps (no qti-match-tabular) must use Shape B inline <qti-response-processing>. Both grade all-or-nothing (SCORE 1 or 0). Example: _669c0dca-27c8-4b0a-a561-9f570df60683. For partial credit per row/pair, use map_response. See Match scoring.
Test not appearing in Test Inventory Test ID incorrect or API didn't return 201 Verify the Test ID. Confirm the API returned a 201 response when creating.
Question renders blank / "Question content is missing" The stem is in a bare <p> instead of <qti-prompt>, or it's an unsupported image hotspot Move the stem into <qti-prompt> (for hotspot, use a number-line plot). Run render_check.py on the test — it flags exactly this. Validation alone won't catch it.
Questions showing "Math input error" Incorrect LaTeX formatting in XML Go to Question Builder → Edit Existing → Search directly. Re-enter math with the built-in math editor.
Images or audio not playing Narration not added yet (or added to the wrong question) Narration: ask Claude Code to add it with the AlphaTest Authoring skill, or use Question Builder → Edit Existing → Audio tab. Images are added through Claude Code.
Fluency test allows going back Incorrect fluency settings Ensure fluency: true in metadata and correct navigation modes. Recreate if needed.
Test not scoring correctly Correct response values don't match choice IDs Review question XML. Ensure correct answer ID matches a choice ID exactly.
Extended-text not being graded Missing rubric block Every extended-text question must include a <qti-rubric-block> with evaluation criteria.
Validation error: missing namespace XML headers incomplete Ensure all three namespace attributes (xmlns, xmlns:xsi, xsi:schemaLocation) are present and exact.
\f appearing in LaTeX Escaping bug: \frac became form-feed Use Python raw strings or double-escape: \\\\frac in Python → \\frac in JSON → \frac in XML.

Quick Reference Cards

API Endpoint Cheat Sheet

Reference
Base URL: https://qti.alpha-1edtech.ai/api

# Questions
GET    /assessment-items                         # Search
POST   /assessment-items                         # Create
GET    /assessment-items/{id}                     # Get one
PUT    /assessment-items/{id}                     # Update
DELETE /assessment-items/{id}                     # Delete

# Tests
GET    /assessment-tests                          # Search
POST   /assessment-tests                          # Create
GET    /assessment-tests/{id}                     # Get one
GET    /assessment-tests/{id}/questions            # Get all questions
PUT    /assessment-tests/{id}                     # Update
DELETE /assessment-tests/{id}                     # Delete

# Stimuli
POST   /stimuli                                   # Create
GET    /stimuli/{id}                              # Get one

# Validation
POST   /validate                                  # Validate single XML
POST   /validate/batch                            # Validate multiple

Question Type Quick Reference

Typebase-typecardinalityKey Element
choiceidentifiersingle<qti-choice-interaction>
text-entrystringsingle<qti-text-entry-interaction>
extended-textstringsingle<qti-extended-text-interaction>
inline-choiceidentifiersingle<qti-inline-choice-interaction>
matchdirectedPairmultiple<qti-match-interaction>
orderidentifierordered<qti-order-interaction>
gap-matchdirectedPairmultiple<qti-gap-match-interaction>
hottextidentifiersingle/multiple<qti-hottext-interaction>
hotspotidentifiersingle/multiple<qti-hotspot-interaction>
graphic-gap-matchdirectedPairmultiple<qti-graphic-gap-match-interaction>
plot-linedirectedPairmultiple<qti-graphic-gap-match-interaction> (data-plot-type="line")
box-plotpointmultiple<qti-position-object-interaction> (data-graph-type="boxPlot")
select-pointdirectedPairmultiple<qti-graphic-gap-match-interaction> (data-graph-type="selectPoint")
sliderfloatsingle<qti-slider-interaction>
portable-customstringsingle<qti-portable-custom-interaction>
uploadfilesingle<qti-upload-interaction>

Admin Platform URLs

Reference
Base: https://admin.alphatest.alpha.school

/dashboard              # Main dashboard
/tests/inventory        # Browse & manage tests
/tests/assignment       # Assign tests to students
/builder/test           # Custom tests list
/builder/test/create    # Create new test
/builder/test/[id]      # Edit specific test
/question-builder       # Create/edit questions
/passages               # Manage reading passages
/results                # Test results & reporting
/timeline               # One student's progress over time
/users                  # User management
/origin                 # Origin settings & analysis rules
/origin/[id]            # Origin detail with rules
/default-rules          # Default rules (_default origin)

Developer API

The AlphaTest Developer API provides endpoints for managing educational test assignments programmatically. Use it to authenticate, search the test inventory, assign tests to students, and invalidate assignments.

You can also read gap-analysis reports and lesson recommendations for an assignment, and read a completed assignment as a Markdown review of its questions and answers.

System Overview

EndpointPurposeAuthentication
AuthorizerUser authentication and session token generationAPI Key
Inventory SearchSearch and filter available testsJWT Token
Delivery AssignAssign tests to studentsJWT Token
Gap AnalysisRead a diagnostic report, optionally including per-course recommendationsJWT Token + reporting access
Lesson RecommendationsRead the per-course recommendations mapJWT Token + reporting access
Invalidate AssignmentInvalidate a student's test assignmentJWT Token
Review SummaryRead a completed assignment as Markdown: each question, the student’s answers, the answer key and the resultTimeback token, JWT Token (teacher or API access), or a review-link token

Key Features

Getting Started

Prerequisites

Before using the API, you need:

  1. Registered User Email with API access — contact Thiago or Gui
  2. API Key for authentication — contact Thiago or Gui

Base URLs

EnvironmentBase URL
Staginghttps://269nc3pr7c.execute-api.us-east-1.amazonaws.com/dev
Productionhttps://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod
Important Notes
  • Token Expiration: JWT tokens expire in 1 hour (3600 seconds). Refresh after ~50 minutes.
  • API Key for Dev/Prod: Your API key works on both staging and production.
  • Supported Tests Only: Only tests marked as “supported” can be assigned to students.
  • Duplicate Prevention: Active assignments prevent reassignment of the same test to the same student.

Authentication

Authentication Flow

  1. Obtain JWT Token: Use the Authorizer endpoint with your API key and registered email
  2. Include in Headers: Add the JWT token to the X-Auth-Token header for all subsequent requests
  3. Token Refresh: Refresh tokens before they expire (recommended after 50 minutes)

Required Headers for All Authenticated Requests

Headers
X-Auth-Token: Bearer {your-jwt-token}
Content-Type: application/json

Authorizer API

MethodURLPurpose
POST/authorizerAuthenticate users and provide session tokens

Request Details

Required Headers:

Headers
x-api-key: {your-api-key}
Content-Type: application/json

Request Body:

JSON
{
  "email": "your-registered-email@example.com"
}

cURL Example

Shell
curl -X POST "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authorizer" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "email": "your-registered-email@example.com"
  }'

Response Examples

Success (200 OK):

JSON
{
  "success": true,
  "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Error Responses:

StatusCodeMessage
401UNAUTHORIZEDInvalid API key
403ACCESS_DENIEDUser not found or does not have API access
400MISSING_PARAMETEREmail is required
500INTERNAL_ERRORInternal server error

Inventory Search API

MethodURLPurpose
GET/authoring/inventory/searchSearch for available tests in the inventory

Query Parameters

ParameterTypeRequiredDescription
nameStringNoFilter by test name (case-insensitive)
timeback_idStringNoFilter by specific timeback ID
gradeStringNoFilter by grade level (case-insensitive)
subjectStringNoFilter by subject (case-insensitive)
allBooleanNoInclude non-supported tests (default: false)
statusStringNoactive (default), inactive or all. The default returns the live inventory: exactly what the assign paths can pick.
activeSequenceBooleanNotrue: only tests in the active sequence (what assign-by-grade can pick). false: only tests outside it.

cURL Examples

Basic Search (Supported Tests Only):

Shell
curl -X GET "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/search" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json"

Search with Multiple Parameters:

Shell
curl -X GET "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/search?name=Alpha%20Standardized%20Math%20G3.1&grade=Third%20grade&subject=math" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json"

Search by Timeback ID:

Shell
curl -X GET "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/search?timeback_id=_677e37c49e904cafcc66fdb4" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json"

Search All Tests (Including Non-Supported):

Shell
curl -X GET "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/search?all=true" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json"

Success Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": 1,
      "timeback_id": "_677e37c49e904cafcc66fdb4",
      "name": "Alpha Standardized Math G3.1",
      "subject": "Math",
      "grade": "Third Grade",
      "grade_rank": 3,
      "version": 1,
      "active": true,
      "supported": true,
      "metadata": { ... },
      "created_at": "2024-01-16T12:00:00Z"
    }
  ]
}

Search Behavior

Inventory Status API

Activate or deactivate tests, and add or remove them from the active sequence, one or many at a time. See Activating & Deactivating Tests for what each setting means.

MethodURLPurpose
PUT/authoring/inventory/statusSet active and/or activeSequence on up to 500 tests
FieldTypeRequiredDescription
idsNumber[]YesInventory ids (the id field from the search results), 1–500
activeBooleanOne of the twoActivate (true) or deactivate (false). Deactivating also removes the test from the active sequence
activeSequenceBooleanOne of the twoAdd to (true) or remove from (false) the active sequence. Refused for a test that is or stays inactive
Shell
curl -X PUT "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/status" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json" \
  -d '{"ids": [2526, 2527], "active": false}'

The response lists what happened to each id: updated (the changed rows), unchanged (already set), refused (with the reason) and notFound. Repeating a request changes nothing. Setting both fields at once works, e.g. {"active": true, "activeSequence": true} to bring a test back into automatic assignment.

Delivery Assign API

MethodURLPurpose
POST/delivery/assignments/assignAssign a test to a specific student

Request Body

JSON
{
  "student_email": "student@example.com",
  "timeback_id": "_677e37c49e904cafcc66fdb4",      // Optional
  "subject": "Math",                              // Optional
  "grade_rank": 3,                                  // Optional
  "assessment_line_item_sourced_id": "...",       // Optional
  "assessment_result_sourced_id": "...",          // Optional
  "test_type": "test out",                        // "placement", "test out", or "end of course"
  "origin": "my_program",                            // Optional — links to Origin Settings rules
  "metadata": { "gradeAssessmentTag": "multiplication" } // Required for a FastMath fluency test above PreK
}

Assignment Variants

VariantRequired FieldsBehavior
v1student_email + timeback_idAssigns the specific test to the student
v2student_email + subjectTriggers the placement flow for the student/subject, using active-sequence tests only
v3student_email + timeback_id + sourced IDsAssigns test and writes result back to the items sent
v4student_email + subject + grade_rankAssigns the first untaken active-sequence test for grade/subject; once all are taken, repeats the sequence
v5student_email + subject + grade_rank + sourced IDsSame as v4, and writes result back
Important
  • In all cases you should send a test_type property: "placement", "test out", or "end of course". Defaults to "test out" if omitted.
  • The optional origin field controls which analysis rules apply when the test is graded. If the origin matches a configured origin in Origin Settings, those rules determine gap analysis, DCAN, and progression behavior. If omitted or unmatched, the _default rules apply.
  • When assessment_line_item_sourced_id and assessment_result_sourced_id are sent, XP is NOT sent. The caller is responsible for sending XP.
  • The test_url in the response is the deep link for the student. If logged in, it goes directly to the test; otherwise to login first.
  • The student must exist in Timeback. If the student exists in Timeback but not in MasteryTrack, the API will automatically create the user.

cURL Example

Shell
curl -X POST "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/delivery/assignments/assign" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json" \
  -d '{
    "student_email": "student@example.com",
    "timeback_id": "_677e37c49e904cafcc66fdb4",
    "test_type": "end of course",
    "origin": "my_program"
  }'

Success Response (201 Created)

JSON
{
  "success": true,
  "platform": "Mastery Track",
  "data": {
    "assignment": {
      "id": 123,
      "student_email": "student@example.com",
      "test_name": "Math Assessment Grade 3",
      "test_url": "https://masterytrack.ai/assignment/123",
      "status": "ASSIGNED",
      "expires_at": "2024-02-15T12:00:00Z"
    },
    "message": "Test successfully assigned to student@example.com"
  }
}

Error Responses

StatusCodeMessage
401UNAUTHORIZEDInvalid or expired JWT
400MISSING_PARAMETERstudent_email is required
404USER_NOT_FOUNDUser with email not found
404TEST_NOT_FOUNDTest not found with timeback_id
422TEST_NOT_SUPPORTEDThe requested test is not yet supported
409ASSIGNMENT_EXISTSAssignment already exists (active assignment prevents duplicate)

Assignment Rules

Gap Analysis API

Retrieve the report explaining why a student missed questions: their overall performance, groups of related learning gaps, and question-by-question explanations. Where available, you can also read the recommended lessons and their assignment status.

These are read-only endpoints. Reading a report does not run a new analysis or assign lessons.

MethodEndpointUse it to
GET/reporting/gap-analysisRead the report, optionally including per-course lesson recommendations.
GET/reporting/lesson-recommendationsRead only the per-course recommendations map. See Lesson Recommendations API.

Access and base URL

Use the AlphaTest production base URL https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod, with X-Auth-Token: Bearer <token>. The token must represent an AlphaTest account with teacher or API access and permission to call these reporting endpoints. API consumers can obtain a token through the Authorizer API. A Timeback OAuth token is not interchangeable with this token.

Choose the report

Query parameterRequirementMeaning
assignmentIdOne identifier requiredNumeric AlphaTest assignment id. Returns the most recently created report for that assignment, not necessarily a report containing lesson recommendations.
reportIdAlternative to assignmentIdThe report's UUID, returned as data.id. Selects that specific record, not the latest report for its assignment.
include_recsOptionalUse the exact value true to include report.lessonRecommendationsByCourse, if stored. That field is omitted by default. Other report fields, including the recommendation plan and any model transcript, are unaffected.

Supply one identifier in normal requests. If both are supplied, reportId takes precedence. These are different from the QTI test id or the Timeback assessment-result id.

If an assignment is re-analyzed, its latest report can change. Save data.id to return to the same record later, but do not treat it as an immutable snapshot: the record can be updated as recommendations are added.

Example requests

The identifiers below are illustrative; replace them with your assignment or report id.

Shell
BASE="https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod"
TOKEN="<your-authorized-token>"

# Latest report for an assignment
curl -sS --get "$BASE/reporting/gap-analysis" \
  -H "X-Auth-Token: Bearer $TOKEN" \
  --data-urlencode 'assignmentId=12345'

# Include stored per-course recommendations
curl -sS --get "$BASE/reporting/gap-analysis" \
  -H "X-Auth-Token: Bearer $TOKEN" \
  --data-urlencode 'assignmentId=12345' \
  --data-urlencode 'include_recs=true'

# Read one specific report
curl -sS --get "$BASE/reporting/gap-analysis" \
  -H "X-Auth-Token: Bearer $TOKEN" \
  --data-urlencode 'reportId=11111111-1111-4111-8111-111111111111'

Response envelope

A successful response contains a report record under data. The diagnostic content lives inside data.report; the example leaves those contents empty to show the outer structure.

JSON
{
  "success": true,
  "data": {
    "id": "11111111-1111-4111-8111-111111111111",
    "assignment_id": 12345,
    "metadata": {},
    "report": {},
    "created_at": "2026-09-09T10:00:00.000Z",
    "updated_at": "2026-09-09T10:05:00.000Z"
  }
}

Reading the report: three common variants

Check which variant you received before trying to read diagnostic arrays. A successful request does not guarantee that a full analysis was performed.

VariantHow to recognize itWhat it means
Bypasseddata.report.bypassed === trueAnalysis was intentionally skipped. Read report.reason and metadata.bypassCode/bypassReason; do not expect diagnostic content.
Perfect scoredata.report.gapAnalysis.perfectScore === trueNo wrong questions were found, so full analysis was unnecessary. Expect a summary and an empty gaps array, not clusters or per-question error analyses.
Analyzeddata.report.gapAnalysis contains diagnostic fieldsRead overallProfile, patternClusters and missedQuestionAnalyses where present.
Expect optional fields
report and metadata are flexible JSON, and older reports can differ from the current structured examples below. Check for missing values and verify arrays/objects before reading them. There is no response version field. A missing gapAnalysis should not crash a report viewer.
Bypassed and perfect-score examples ▼

Bypassed record fragment:

JSON
{
  "report": { "bypassed": true, "reason": "low_score_below_floor" },
  "metadata": {
    "bypassCode": "low_score_below_floor",
    "bypassReason": "Score below rule floor — gap analysis skipped, progression triggered"
  }
}

Other possible codes include placement_subsequent_passed, gap_analysis_disabled and test_user. This is not an exhaustive list.

Perfect-score record fragment:

JSON
{
  "report": {
    "gapAnalysis": {
      "perfectScore": true,
      "summary": "Perfect score - no gaps identified",
      "gaps": []
    }
  }
}

Interpreting an analyzed report

Under data.report.gapAnalysisWhat to read
assessmentTitle, inferredSubject, inferredGradeAssessment context. Inferred subject or grade can be null.
overallProfileQuestion totals, accuracy, strengths and areas for growth. Accuracy is a fraction from 0 to 1: 0.8 means 80%.
patternClusters[]Groups of related root causes. priority: 1 is highest; questionIds connects each group to the affected questions.
missedQuestionAnalyses[]The student's answer, the expected answer, the suspected error and supporting evidence for each missed question.
Diagnostic field reference ▼

Overall profile fields: totalQuestions, totalMissed and accuracy are numbers; strengths, areasForGrowth and concludingStatement are narrative strings. dataSufficiencyNote is an optional string or null describing limits on the available evidence.

Pattern clusters:

FieldCurrent structured form
clusterName, rootCauseStrings naming and explaining the gap.
priority, gapTypePriority number; gap type such as single-skill or systemic.
questionIds, errorTypes, confidenceLevelsArrays of strings. Error types can include conceptual, procedural, transfer, vocabulary, task-comprehension and prerequisite.
primaryStandardsAn array of objects with code and description, not just standard-code strings.
isRecurringBoolean indicating a recurring pattern.
prerequisiteGap, priorAttemptNoteStrings or null.

Per-question analyses:

FieldCurrent structured form
questionId, itemTypeQuestion identifier (may be null) and item type, such as MCQ, MSQ or CR.
questionPrompt, stimulusSummaryQuestion text and optional stimulus summary.
studentAnswer, correctAnswerA string or an array of strings.
errorType, hypothesis, confidenceError category, explanation and confidence label such as High, Medium or Low.
primaryStandardAn object with code, description and source (metadata or inferred).
errorAnalysisAn object with correctAnswerLogic and a supportingEvidence string array.
scoringType, pointsEarned, pointsPossibleScoring category and numeric point values.
selectedDistractorAnalysisText explaining the selected distractor.
allDistractorsAnalysisAn array of objects with choice, isSelected, isCorrect and misconceptionIfChosen.
relatedQuestionIdsAn array of objects with questionId, skill and studentCorrect, not just identifiers.
vocabularySkillType, targetWordsVocabulary-specific skill label and word array, when available.

Other optional context may appear in data.metadata: subject, grade, app, model, flowType, wrongQuestions, processedAt and lastDCANRunAt. These describe processing context; their timestamps are not confirmation of lesson assignment.

Recommendations versus assigned lessons

data.report.dcanRecommendations describes the recommendation plan. It may contain an overall diagnosis, lesson choices, unmatched gaps and review notes. An accepted recommendation — or a plan total named totalLessonsAssigned — is not proof that those lessons were successfully assigned. To check assignment outcomes, request the per-course data described in the next section.

Recommendation-plan field reference ▼
Under report.dcanRecommendationsMeaning
gapAnalysisId, studentEmail, subject, grade, createdAtReport/student context and plan timestamp, when present.
overallDiagnosis, summarySummary and plan counts, such as totalClusters, clustersWithLessons, clustersUnmet, lessonsAccepted, lessonsAcceptedWithFlags, totalLessonsAssigned and retryRoundsUsed.
recommendations[]Gap groups with gapGroupId, rootCause, standardCodes and lessons[]. Optional catalogGapFlag, alternativesConsidered and noMatchReason explain missing or alternative matches.
recommendations[].lessons[]Lesson objects with lessonId, lessonTitle, app and optional order, phase, verdict, matchQuality, matchReasoning, confidenceLevel, errorTypeAddressed, flags or metadata.
unmetGaps[]Gaps with no resolved recommendation; may include gapGroupId, priority, rootCause, reason and escalation.
catalogGaps, reviewNotesAdditional explanation or review notes.

Older recommendations may instead use single-lesson fields lessonTitle and recommendedLessonId. When a lesson verdict is present, accept and accept-with-flags describe accepted recommendations; reject does not describe assigned work. Do not assume verdicts are present on every historical lesson.

Lesson Recommendations API

Use GET /reporting/lesson-recommendations when you need only the stored per-course recommendations map, without the full diagnostic report. It uses the same base URL, token and identifier rules as Gap Analysis API.

Query parameterMeaning
assignmentId or reportIdChoose the latest report for an assignment or one exact report. If both are supplied, reportId wins.
courseCode (optional)An exact key from the returned map. Despite the name, it may be a course UUID or another stored identifier, not a friendly course code. First fetch the map without this parameter to discover its keys.

Using assignmentId still selects the latest report, not the latest report with recommendations. This endpoint does not generate missing recommendations.

Shell
BASE="https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod"
TOKEN="<your-authorized-token>"

# Read the whole recommendations map
curl -sS --get "$BASE/reporting/lesson-recommendations" \
  -H "X-Auth-Token: Bearer $TOKEN" \
  --data-urlencode 'assignmentId=12345'

# Read one course entry from a specific report
# Replace courseCode with an exact key from this report's map
curl -sS --get "$BASE/reporting/lesson-recommendations" \
  -H "X-Auth-Token: Bearer $TOKEN" \
  --data-urlencode 'reportId=11111111-1111-4111-8111-111111111111' \
  --data-urlencode 'courseCode=22222222-2222-4222-8222-222222222222'

Response and assignment outcomes

The data value is the map itself — it does not contain the report envelope, its timestamps or another report property. A course-filtered response keeps the same map shape with one key. Illustrative response:

JSON
{
  "success": true,
  "data": {
    "22222222-2222-4222-8222-222222222222": {
      "holeFilling": {
        "status": "success",
        "lessonsAssigned": 3,
        "holeFillCourseSourcedId": "33333333-3333-4333-8333-333333333333"
      }
    }
  }
}

Some entries contain holeFilling assignment progress. Its status can include in_progress, adapter_complete, success, partial_success or failure. adapter_complete is an intermediate stage, not final proof of successful assignment. Read the final status alongside available fields such as lessonsAssigned, totalRequested, failedLessons, failedLessonIds and the destination course id.

Entry details vary by learning app and report age. You may encounter fields such as app, primaryApp, timestamp, courseSourcedId, originCourseSourcedId, lessonsRequested or lessonsFailed. Do not require one universal set of counters or depend on the shape of a nested adapterResponse.

Status codes and common outcomes

These status codes apply to both read endpoints:

StatusMeaning and next step
200The requested record or map was found. A bypassed or perfect-score report is still a successful response. An existing empty recommendations map returns { "success": true, "data": {} } when no course filter is supplied.
400Neither identifier was supplied: Either assignmentId or reportId is required. Use a numeric assignment id or a valid report UUID; do not rely on every malformed value producing a 400.
401Authentication is missing or invalid. Obtain a valid AlphaTest token.
403The account lacks the required access, or its API credentials do not permit this route (OUT_OF_SCOPE). Confirm reporting access with your administrator.
404Gap analysis report not found means no stored report matched. Lesson recommendations not found can also mean the report has no recommendations map or the requested course key was not found.
503Permission service unavailable. Respect the Retry-After header (currently 30 seconds) before retrying.
500Internal server error. Check the identifiers you supplied and the returned error details when reporting the failure.

For example, a missing report returns:

JSON
{ "success": false, "error": "Gap analysis report not found" }

A 404 is not the same as a bypassed report: bypassed reports, when stored, return 200 and explain why analysis was skipped. Likewise, include_recs=true does not guarantee recommendations exist yet.

Practical reading guidance

Invalidate Assignment API

MethodURLPurpose
POST/delivery/assignments/invalidateInvalidate a student’s test assignment

Request Body

JSON
{
  "student_email": "student@example.com",
  "assignment_id": 123,                            // Optional
  "timeback_id": "_677e37c49e904cafcc66fdb4",      // Optional
  "subject": "Math",                              // Optional
  "grade_rank": 3                                   // Optional
}

Invalidation Scenarios

ScenarioRequired FieldsBehavior
By Assignment IDstudent_email + assignment_idInvalidates a specific assignment by its ID
By Timeback IDstudent_email + timeback_idInvalidates all active assignments for a specific test and student
By Subject/Gradestudent_email + subject + grade_rankInvalidates active assignment for a specific subject and grade

cURL Example (Invalidate by Assignment ID)

Shell
curl -X POST "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/delivery/assignments/invalidate" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_AUTHORIZER" \
  -H "Content-Type: application/json" \
  -d '{
    "student_email": "student@example.com",
    "assignment_id": 123
  }'

Success Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "message": "Assignment(s) invalidated successfully.",
    "total_invalidated": 1,
    "invalidated_assignments": [
      {
        "assignment_id": 123,
        "student_email": "student@example.com"
      }
    ]
  }
}

Invalidation Rules

Review Summary API

Read a completed assignment as a Markdown document: for each question, what the student was shown, every answer choice, what the student answered, the answer key and the recorded result. It is written for AI agents and other tools that read text, and it states facts only: it does not explain why a student missed a question. For that, see the Gap Analysis API.

These are read-only endpoints. Reading a review never changes the assignment or its results.

MethodEndpointUse it to
GET/delivery/review/{assignmentId}/mdRead the review of the whole assignment, filtered by scope.
GET/delivery/review/{assignmentId}/{question}/mdRead the review of one question.
GET/delivery/teacher/assignment/{assignmentId}/review-linkCreate a signed review link: a 30-minute URL that opens the review page and can read this one assignment’s review without an account.
GET/delivery/review/{assignmentId}Read the review data the review page renders (JSON).

Access and base URL

Use the AlphaTest production base URL https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod. Each request needs one of these tokens:

TokenSend it asAccepted when
Timeback access token — from Timeback’s Cognito client_credentials flow (see Authentication)Authorization: Bearer <token>The token is an application token with a OneRoster v1p1 or v1p2 read scope (for example roster.readonly or gradebook.readonly), or the OneRoster v1p1 admin scope. QTI, Caliper or timeback/read scopes alone are refused. Production only.
AlphaTest JWT — from the Authorizer APIX-Auth-Token: Bearer <token>The account has teacher or API access.
Review-link token — the part of a review link after #t=Authorization: Bearer <token> (only this header)The request is for the link’s own assignment, within 30 minutes of creating the link. It reads that assignment’s review only; it cannot create links.

The Timeback token and the AlphaTest JWT work in either header (Authorization or X-Auth-Token); if both headers are sent, X-Auth-Token is used. On the review endpoints (/delivery/review/…), a review-link token in Authorization is the exception: it is always used, whatever X-Auth-Token holds.

Choose what to read

ParameterWhereMeaning
assignmentIdPath, requiredNumeric AlphaTest assignment id — the assignment_id used by the other Delivery endpoints. Not the QTI test id or a Timeback assessment-result id. The assignment must be COMPLETED.
questionPath, optionalQuestion number, from 1 to the number of questions in the test. With it, the document covers that question only and scope is not used (if sent, it must still be a valid value).
scopeQuery, optionalWhich questions the whole-assignment document includes: incorrect (default), all or correct. Lowercase and exact; any other value, including an empty one, returns 400.
scopeQuestions included
incorrect (default)Incorrect, partially correct, not answered and skipped. If there are none, the document says No questions match this scope (incorrect).
correctCorrect only.
allEvery question, including any whose result is still pending.

For FastMath fluency drills, which offer more questions than the time allows, whole-assignment documents cover only the questions the student saw.

Example requests with a Timeback token

The assignment id below is illustrative; replace it with your own. Allow at least 180 seconds per request (--max-time 200): a report that has not been generated yet can take that long. See Report in progress.

Shell
BASE="https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod"

# 1. Get a Timeback access token (Cognito client_credentials; see Authentication)
TB_TOKEN=$(curl -sS -X POST "https://prod-beyond-timeback-api-2-idp.auth.us-east-1.amazoncognito.com/oauth2/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&client_id=<your-client-id>&client_secret=<your-client-secret>" \
  | jq -r .access_token)

# 2. Questions the student got wrong, partly wrong, left unanswered or skipped (default scope)
curl -sS --max-time 200 "$BASE/delivery/review/12345/md" \
  -H "Authorization: Bearer $TB_TOKEN"

# Every question, saved to a file
curl -sS --max-time 200 -o assignment-12345-all.md "$BASE/delivery/review/12345/md?scope=all" \
  -H "Authorization: Bearer $TB_TOKEN"

# Only the questions answered correctly
curl -sS --max-time 200 "$BASE/delivery/review/12345/md?scope=correct" \
  -H "Authorization: Bearer $TB_TOKEN"

# One question (question 5)
curl -sS --max-time 200 "$BASE/delivery/review/12345/5/md" \
  -H "Authorization: Bearer $TB_TOKEN"

Example request with an AlphaTest JWT

Shell
BASE="https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod"
TOKEN="<your-jwt-from-the-authorizer>"

curl -sS --max-time 200 "$BASE/delivery/review/12345/md?scope=all" \
  -H "X-Auth-Token: Bearer $TOKEN"

Response

A successful request returns 200 with the Markdown document as the body. The headers are Content-Type: text/markdown; charset=utf-8 and Content-Disposition: inline; filename="assignment-12345-incorrect.md". The file name ends in -incorrect, -all or -correct, or in -q5 for one question.

Part of the documentContents
HeaderTest name, assignment id, assessment identifier (QTI test id), subject, grade, overall score recorded, question counts by status, which questions this document covers, and how many question records were written by AI.
How to read this documentThe same short guide in every document: the statuses (CORRECT, INCORRECT, PARTIALLY CORRECT, PENDING, NOT ANSWERED, SKIPPED), and the [ANSWER KEY] and [STUDENT RESPONSE] tags.
Questions in this documentA table of the questions covered, with type, status and recorded result. It appears when the document covers more than one question.
Stimulus sectionsThe passages and other shared resources used by the questions in this document, verbatim as the student saw them, placed before the question sections. They are labelled S1, S2… across the whole test, so a document can contain S2 without S1.
One section per questionItem identifier, status, recorded result, question type and, if it has one, its stimulus (Uses stimulus: S1 "Kayaks and Kayaking"); then How this question works, What the student saw, Answer choices (the answer key and the student’s choices are tagged [ANSWER KEY] / [STUDENT RESPONSE]; untagged choices are distractors), Student response and Answer key.

Statuses, recorded results, answer keys, student responses and passage text come from the system of record. The question records (how the question works, what was shown, the choices) are written by AI from the item and the student’s response. If the AI does not finish a question, that question is shown as a “structured record” listing the same facts. Images are links (Q5-IMG1, S1-IMG2) and are not described; math is written in LaTeX between $ signs.

The document does not contain the student’s name or email.

Example document

This is a real response for GET /delivery/review/12345/md (default scope) for a Grade 1 math test with one incorrect answer. Only the assignment id has been changed.

Markdown
# Assessment review: Alpha Standardized Math G1.7

- Assignment ID: 12345
- Assessment identifier: _67911cb88ac6685bd5181a32
- Subject: Math
- Grade: First grade
- Overall score recorded: 96%
- Questions in the assessment: 25 (correct: 24, incorrect: 1)
- Scope of this document: 1 of 25 questions (scope: incorrect)
- Question records: 1 AI-written (model claude-opus-5-5)

---

## How to read this document

- Each question shows its **Status** (CORRECT, INCORRECT, PARTIALLY CORRECT, PENDING, NOT ANSWERED or SKIPPED) and the result recorded by the platform.
- Stimulus sections reproduce passages and resources exactly as shown to the student. ⟦4⟧ marks a paragraph or sentence number displayed in a badge.
- Images are links (for example Q5-IMG1 or S1-IMG2); open the URL to see an image. They are not described in this document.
- Question records explain how the question works, reproduce what the student saw, list every answer choice and tag the correct one(s) per the answer key with [ANSWER KEY] and the student's submission with [STUDENT RESPONSE]. Untagged choices are distractors.
- Passage text, statuses, answer keys, student responses and results come from the system of record. Question records are AI-generated from that data; a question marked "structured record" lists the same facts in a structured form.
- Math is written in LaTeX between $ signs.

---

## Question 5 of 25

- Item identifier: _aff90df0-806b-4fc5-b6bc-795f7716e868
- Status: INCORRECT
- Recorded result: Incorrect (0 of 1).
- Question type: Multiple choice (single answer)

### How this question works
The student saw a short question with an image and a list of four answer options. They could select exactly one option. The response is recorded as the single option chosen. The options are shown in a fixed order (not shuffled).

### What the student saw
A number has six tens and zero ones. What is the number?

[Q5-IMG1](https://mastery-track-assets.s3.us-east-1.amazonaws.com/alpha-standardized-math-g1-7/fd9e2e2c23e1a1afede2a42db39634b3e9e9b22a.png) (alt text: "Image")

[Choice 1: select one option]

### Answer choices
- A. $6$
- B. $10$
- C. $60$ [ANSWER KEY]
- D. $100$ [STUDENT RESPONSE]

### Student response
- D. $100$

The student selected option D, "100".

### Answer key
- C. $60$

The answer key defines option C, "60", as the correct answer.
Longer example: a passage, partial credit and a FastMath drill ▼

An excerpt of the default-scope document for a Grade 10 language test: question 3 earned partial credit, and question 6 uses the passage. The passage and the other questions are shortened where marked […]; the assignment id has been changed.

Markdown
# Assessment review: Alpha Standardized Language G10.6

- Assignment ID: 67890
- Assessment identifier: _65bba954a0549700082369fa_v2
- Subject: Language
- Grade: Tenth grade
- Overall score recorded: 81%
- Questions in the assessment: 24 (correct: 19, partially correct: 1, incorrect: 4)
- Scope of this document: 5 of 24 questions (scope: incorrect)
- Question records: 5 AI-written (model claude-opus-5-5)

---

[… "How to read this document", as above …]

---

## Questions in this document

| Question | Type | Status | Recorded result |
| --- | --- | --- | --- |
| 3 | Multiple choice (multiple answers) | PARTIALLY CORRECT | Partially correct (0.5 of 1). |
| 6 | Multiple choice (single answer) | INCORRECT | Incorrect (0 of 1). |
| 7 | Multiple choice (single answer) | INCORRECT | Incorrect (0 of 1). |
| 15 | Multiple choice (single answer) | INCORRECT | Incorrect (0 of 1). |
| 18 | Multiple choice (single answer) | INCORRECT | Incorrect (0 of 1). |

---

## Stimulus S1: Kayaks and Kayaking

- Identifier: _65bba954a054970008236a13
- Source: https://qti.alpha-1edtech.ai/api/stimuli/_65bba954a054970008236a13

### Text (verbatim)

Read the following passage and answer the adjoining questions.

**Kayaks and Kayaking**

Kayaks are lightweight canoes originally used for hunting and fishing by the Inuit peoples of the northern coasts of North America. Today, many people use kayaks recreationally for white-water sports and for touring wilderness areas ⟦1⟧ that are extremely wild.

Most kayaks are made of rubberized cloth, molded plastic, or fiberglass. ⟦2⟧ It is covered except for the opening in which the paddler or paddlers sit. ⟦3⟧ The two principal types of ⟦4⟧ kayaks are; the smoothly ⟦5⟧ maneuverable white-water kayak and the larger sea kayak.

[… rest of the passage, verbatim …]

---

## Question 3 of 24

- Item identifier: _04a7deed-6fd8-4930-87a4-65cc6a10ccf8
- Status: PARTIALLY CORRECT
- Recorded result: Partially correct (0.5 of 1).
- Question type: Multiple choice (multiple answers)

### How this question works
The student saw a prompt with a quoted passage and a list of five sentences labelled A–E. The student could select up to 2 of the options by clicking them. The response is the set of options selected. Options were shown in a fixed order (not shuffled).

### What the student saw
Read the quote below from Chapter 5, pages 232–233 of Fyodor Dostoyevsky's *Crime and Punishment*.

| "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold." |
| --- |

According to MLA guidelines, determine which sentence(s) correctly cite this quote within the text of an essay. Assume that the essay includes a works cited page. Select *all* that apply.

[Options A–E, select up to 2]

### Answer choices
- A. Dostoyevsky says, "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (232–233). [ANSWER KEY]
- B. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Dostoyevsky 232–233). [ANSWER KEY] [STUDENT RESPONSE]
- C. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Dostoyevsky, 232–233).
- D. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Crime and Punishment 232–233). [STUDENT RESPONSE]
- E. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Dostoyevsky 232).

### Student response
- D. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Crime and Punishment 232–233).
- B. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Dostoyevsky 232–233).

The student selected two options: D, which ends with the citation "(Crime and Punishment 232–233)", and B, which ends with the citation "(Dostoyevsky 232–233)".

### Answer key
- A. Dostoyevsky says, "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (232–233).
- B. "His nervous shudder had passed into a fever that made him feel shivering; in spite of the heat he felt cold" (Dostoyevsky 232–233).

The answer key defines two correct options: A, which names Dostoyevsky in the sentence and ends with "(232–233)", and B, which ends with "(Dostoyevsky 232–233)".

---

## Question 6 of 24

- Item identifier: _b8771f2e-1f0c-466b-8236-b26b58928df9
- Status: INCORRECT
- Recorded result: Incorrect (0 of 1).
- Question type: Multiple choice (single answer)
- Uses stimulus: S1 "Kayaks and Kayaking"

### How this question works
The student saw a short prompt tied to the passage "Kayaks and Kayaking" and a list of four options, and could select exactly one by clicking it. The prompt is labelled with the marker "2", which refers to a numbered location in that passage, and the options are wordings for that location. The response is recorded as the single option selected. Options were shown in a fixed order (not shuffled), and only one selection was allowed.

### What the student saw
This question uses the passage "Kayaks and Kayaking" (Stimulus S1).

⟦2⟧ Choose the best answer.

[Choice 1: select one of options A–D]

### Answer choices
- A. NO CHANGE [STUDENT RESPONSE]
- B. One is
- C. They are [ANSWER KEY]
- D. Which are

### Student response
- A. NO CHANGE

The student selected option A, "NO CHANGE".

### Answer key
- C. They are

The answer key defines option C, "They are", as the correct answer.

---

[… questions 7, 15 and 18 …]

The header of a FastMath drill with scope=all. Only the questions the student saw are counted and included:

Markdown
# Assessment review: Grade 1 Addition Fluency Test — Sequence Expansion 1252-B

- Assignment ID: 24680
- Assessment identifier: _test-391f0de7-3a0f-4067-b164-17817b7149b2
- Subject: FastMath
- Grade: First Grade
- Overall score recorded: 100%
- Questions in the assessment: 45; seen by the student: 28 (correct: 27, not answered: 1)
- Scope of this document: all 28 questions the student saw
- Question records: 28 AI-written (model claude-opus-5-5)

Report in progress (202)

Whole-assignment documents are generated once and then stored, so later requests return at once. After a test is graded, its report is usually generated automatically (FastMath drills are not); a single question is always answered directly.

If a report has not been generated yet, the request waits up to 150 seconds for it. If it is still not ready, the response is 202 Accepted with a Retry-After: 20 header and a short Markdown body. Request the same URL again until you get 200:

Markdown
# Report in progress

The review is still being generated: 12 of 36 questions done.
Request the same URL again in about 20 seconds.
Shell
URL="$BASE/delivery/review/12345/md?scope=all"
while :; do
  code=$(curl -sS --max-time 200 -o review.md -w '%{http_code}' "$URL" \
    -H "Authorization: Bearer $TB_TOKEN")
  [ "$code" = 202 ] || break   # 202: still being generated
  sleep 20                     # the Retry-After value
done
echo "HTTP $code"              # 200: review.md is the document; 4xx/5xx: it holds the JSON error

A stored report belongs to the results it was generated from: if the assignment is regraded, a new report is generated on the next request.

Review links

A review link shares one assignment’s review for 30 minutes without an account. Opening its url shows the review page in the player. The token after #t= also authenticates the review endpoints for that assignment. Creating a link also starts generating the default (incorrect) report, so the link’s first request is usually instant. Links can be created only for completed assignments.

A review link is a bearer URL
Anyone holding the link can read that assignment’s review, including the student’s answers, until it expires; a link cannot be revoked. Its token is signed but not encrypted, and it records who created the link (the AlphaTest account’s email, or timeback:<client id> for a Timeback token). Share links only with people allowed to see the review.
Shell
# Create the link with a Timeback token or an AlphaTest JWT (a review-link token cannot create links)
LINK=$(curl -sS "$BASE/delivery/teacher/assignment/12345/review-link" \
  -H "Authorization: Bearer $TB_TOKEN" | jq -r .data.url)

# Its token is everything after "#t="; it reads only assignment 12345, for 30 minutes
REVIEW_TOKEN=${LINK#*#t=}
curl -sS --max-time 200 "$BASE/delivery/review/12345/md" \
  -H "Authorization: Bearer $REVIEW_TOKEN"

Response:

JSON
{
  "success": true,
  "data": {
    "assignmentId": 12345,
    "url": "https://alphatest.alpha.school/r/12345#t=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…",
    "expiresAt": "2026-11-01T21:36:25.000Z"
  }
}

Review data (JSON)

GET /delivery/review/{assignmentId} returns what the review page renders. The assignment’s per-question metadata holds the student’s answer and the result in correct (1 correct; 0 incorrect, not answered or skipped, where a skip is "answer": ["skipped"]; a fraction for partial credit; -1 not scored yet). FastMath drills can also include cqpm and cqpmTarget. test.questions holds the QTI items: test.questions[N-1] is question qN. The student’s name and email are not included. Shortened example:

JSON
{
  "success": true,
  "data": {
    "assignment": {
      "id": 12345,
      "status": "COMPLETED",
      "assessment_name": "Alpha Standardized Math G1.7",
      "subject": "Math",
      "timeback_id": "_67911cb88ac6685bd5181a32",
      "grade": "First grade",
      "score": 96,
      "metadata": {
        "q5": { "answer": ["_option_a640ac7b-8906-463e-b751-3b41ee6708ae"], "correct": 0 }
      }
    },
    "test": {
      "title": "Alpha Standardized Math G1.7",
      "assessmentTest": "_67911cb88ac6685bd5181a32",
      "totalQuestions": 25,
      "questions": [
        "… questions 1–4 …",
        {
          "identifier": "_aff90df0-806b-4fc5-b6bc-795f7716e868",
          "title": "Multiple Choice - Standard",
          "qti-assessment-item-type": "choice",
          "qti-item-body": {},
          "tts": "https://…"
        }
      ]
    }
  }
}

In Timeback results

The results AlphaTest writes to Timeback already link to these documents. The test result has metadata.responses.aiSummaryLink, pointing to /delivery/review/{assignmentId}/md?scope=all; each question result has metadata.responses.response.aiSummaryLink, pointing to /delivery/review/{assignmentId}/{question}/md. Call those URLs with a token as described above.

Status codes and common outcomes

Errors are JSON, for example:

JSON
{
  "success": false,
  "error": "Only completed assignments can be reviewed.",
  "code": "ASSIGNMENT_NOT_COMPLETED"
}
StatuscodeMeaning and next step
200—The document (or JSON review data, or the new link).
202—The report is still being generated. Retry after Retry-After seconds; see above.
400INVALID_SCOPEscope is not incorrect, all or correct.
401—Unauthorized: no token, an AlphaTest JWT that is not valid or has expired, or a review-link token sent in X-Auth-Token, used to create a link, or sent to any other path.
401TIMEBACK_TOKEN_INVALID / TIMEBACK_TOKEN_EXPIREDThe Timeback token is not valid or has expired (they last one hour). Get a new token.
401REVIEW_LINK_INVALID / REVIEW_LINK_EXPIREDThe review-link token is not valid, or is more than 30 minutes old. Create a new link.
403TIMEBACK_ACCESS_DENIEDThe Timeback token has no OneRoster read or admin scope.
403—Access denied. Teacher or API access required.: the AlphaTest account has neither.
403OUT_OF_SCOPEThe AlphaTest API credentials are scoped to other endpoints. Confirm access with your administrator.
403REVIEW_LINK_WRONG_ASSIGNMENTThe review-link token is for a different assignment.
404ASSIGNMENT_NOT_FOUNDNo assignment has this id.
404QUESTION_NOT_FOUNDThe question number is outside the test, for example Question 26 does not exist; this assessment has 25 questions.
404 / 403— / TIMEBACK_OPERATION_NOT_SUPPORTEDThe path is not one of the endpoints above, for example a question number that is not a number. An AlphaTest JWT gets 404 Not found; a Timeback token gets this 403.
409ASSIGNMENT_NOT_COMPLETEDThe assignment is not completed yet (also when creating a link).
503TIMEBACK_AUTH_UNAVAILABLETimeback authentication could not be checked. Retry after the Retry-After header (30 seconds).
503PERMISSION_SERVICE_UNAVAILABLEAlphaTest permissions could not be checked. Retry after the Retry-After header (30 seconds).
503REVIEW_LINK_UNAVAILABLEThe review-link signing key could not be loaded. This affects only creating links and reading with a review-link token; Timeback tokens and AlphaTest JWTs can still read reviews. Retry later.
500—Failed to process review link or Internal server error: an unexpected error. Retry; if it persists, report the assignment id and the time.

Practical reading guidance

Complete Workflow Example

Step 1: Authenticate and Get Session Token

Shell
# Request JWT token
curl -X POST "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authorizer" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{ "email": "your-registered-email@example.com" }'

# Expected: {"success":true,"jwt":"eyJhbGciOiJS...."}

Step 2: Search for Available Tests

Shell
# Search for math tests for grade 3
curl -X GET "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/authoring/inventory/search?name=math&grade=3" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_STEP_1" \
  -H "Content-Type: application/json"

# Response includes available tests with their timeback_ids

Step 3: Assign Test to Student

Shell
# Assign selected test to student
curl -X POST "https://l407b3xadi.execute-api.us-east-1.amazonaws.com/prod/delivery/assignments/assign" \
  -H "X-Auth-Token: Bearer YOUR_JWT_FROM_STEP_1" \
  -H "Content-Type: application/json" \
  -d '{
    "student_email": "student@example.com",
    "timeback_id": "_677e37c49e904cafcc66fdb4",
    "test_type": "test out"
  }'

# Response includes assignment details and test URL

Error Handling

Standard Error Response Format

JSON
{
  "success": false,
  "error": "Human-readable error message",
  "code": "MACHINE_READABLE_ERROR_CODE",
  "details": { "additional": "context when available" }
}

Common Error Codes

CodeDescriptionCommon Causes
UNAUTHORIZEDInvalid or expired authenticationInvalid API key, expired JWT
ACCESS_DENIEDUser lacks required permissionsUser not registered for API access
MISSING_PARAMETERRequired parameter not providedMissing email, student_email, or timeback_id
USER_NOT_FOUNDStudent email not foundStudent not registered in system
TEST_NOT_FOUNDTest ID not foundInvalid timeback_id
TEST_NOT_SUPPORTEDTest not yet supportedTest contains unsupported question types
ASSIGNMENT_EXISTSAssignment already existsActive assignment prevents duplicate
INVALID_PARAMETERSInvalid parameter formatMalformed grade or subject values
INTERNAL_ERRORServer-side errorDatabase or system issues

Error Handling Best Practices

  1. Check Response Status: Always verify the success field
  2. Handle JWT Expiration: Implement automatic token refresh after ~50 minutes
  3. Retry Logic: Implement exponential backoff for temporary failures (500 errors)
  4. Logging: Log error codes and details for debugging
  5. User Feedback: Provide meaningful error messages to end users