POST
/
v1
/
trace-learn
/
attempts
/
{attemptId}
/
submit
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.traceLearn.submitTraceLearnAttempt({
  attemptId: process.env.TX_AGENT_KIT_ATTEMPT_ID ?? "attemptId",
  body: {},
})
{
  "attempt": {
    "id": "<string>",
    "assignmentId": "<string>",
    "studentAssignmentId": "<string>",
    "studentId": "<string>",
    "startedAt": "<string>",
    "submittedAt": "<string>",
    "activeMs": 123,
    "scoreBasisPoints": 123
  },
  "resultSummary": {
    "id": "<string>",
    "studentId": "<string>",
    "assignmentId": "<string>",
    "assignmentTitle": "<string>",
    "submittedAt": "<string>",
    "scorePercent": 50,
    "correctCount": 123,
    "questionCount": 123,
    "timeTakenSeconds": 123,
    "passed": true,
    "topicBreakdown": [
      {
        "topicId": "<string>",
        "topicName": "<string>",
        "scorePercent": 50,
        "correctCount": 123,
        "questionCount": 123
      }
    ],
    "mistakes": [
      {
        "questionId": "<string>",
        "prompt": "<string>",
        "selectedAnswerLabel": "<string>",
        "correctAnswerLabel": "<string>",
        "explanation": "<string>",
        "topicName": "<string>"
      }
    ],
    "remediation": {
      "nextLessonSegmentId": "<string>",
      "nextLessonTitle": "<string>",
      "practiceAssignmentId": "<string>",
      "focusTopicIds": [
        "<string>"
      ]
    },
    "rewardDelta": {
      "starsEarned": 123,
      "gameSecondsEarned": 123,
      "streakDays": 123,
      "unlockedGameIds": []
    }
  }
}

Path Parameters

attemptId
string
required

Body

application/json
activeMs
number
required
scoreBasisPoints
number | null
required
summary
object
required

Response

Success

attempt
object
required
resultSummary
object
required