POST
/
v1
/
trace-learn
/
learn
/
instances
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.composeTraceLearnLessonInstance({
  body: {},
})
{
  "instanceId": "<string>",
  "skillId": "<string>",
  "skillTitle": "<string>",
  "subjectId": "<string>",
  "blockCount": 123,
  "preQuestionCount": 123,
  "transferQuestionCount": 123,
  "expiresAt": "<string>",
  "subjectMismatch": true
}

Body

application/json
subjectId
string

Response

Success

instanceId
string
required
skillId
string
required
skillTitle
string
required
subjectId
string
required
status
enum<string>
required
Available options:
composing,
composed,
in_progress,
completed,
abandoned,
expired
blockCount
integer
required

an integer

preQuestionCount
integer
required

an integer

transferQuestionCount
integer
required

an integer

expiresAt
string
required
subjectMismatch
boolean