获取课程计划
API 版本 2026-10-affable-towhee
get https://api.getlingara.com/v1/lesson-plans/{id}
返回你拥有的课程计划。仍在生成中的计划尚无 content。
权限范围 lesson_plans:read
参数
Lingara-Versionheaderstring可选- 回应此请求所用的 API 版本。不提供时,访问令牌使用其客户端绑定的版本,不带令牌的请求使用当前版本。仍在开发中的版本只能通过在此指定来访问。未知版本会以
400回应,代码为api_version_unknown。GET /v1/versions会列出所有版本。 idpathstring必填
响应
200 课程计划
idstring必填statusPlanStatus必填titlestring | null可选source_langstring必填target_langstring必填levelinteger必填created_atstring必填completed_atstring | null可选ai_generatedboolean必填contentLessonPlanContent | null可选introductionstring | null可选learning_objectivesarray of string必填vocabularyarray of PlanWord必填wordstring必填pronunciationstring | null可选translationstring必填
setsarray of PlanSet必填numberinteger必填contextstring | null可选questionsarray of PlanQuestion必填typestring必填promptstring必填optionsarray of string | null可选answerstring必填explanationstring必填hintstring | null可选
错误
410application/json- 回应此请求所用的 API 版本已停用。请在
Lingara-Version中发送一个受支持的版本,或将客户端绑定到其他版本。 4XXapplication/json- 请求被拒绝。
code说明原因,error用文字描述原因。 503application/json · text/plain- 服务暂时不可用;请在
Retry-After所示的秒数之后重试。维护期间,响应体为纯文本,而不是错误信封。 5XXapplication/json- 请求被拒绝。
code说明原因,error用文字描述原因。
codestring必填请求被拒绝的原因,以稳定的代码表示,可据此进行分支处理:例如
insufficient_scope(403)、rate_limited(429),以及按用量计费的客户端的spend_cap_reached(402)和metered_billing_inactive(402)。errorstring必填
示例
如译文与英文参考文档不一致,以英文参考文档为准。