Parse course description
Parses a natural-language course description and/or remote source files into structured course form data.
AuthorizationBearer <token>
LEIA API key passed as Bearer token (recommended). Keys start with leia_sk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/course-creation/parse-description" \ -H "Content-Type: application/json" \ -d '{ "prompt": "Create a Python fundamentals course for beginners.", "languageConfig": { "contentLanguage": "en", "tutorLanguage": "en", "supportedLanguages": [ "en" ] } }'{
"success": true,
"data": {
"title": "string",
"slug": "string",
"description": "string",
"targetAudience": "string",
"difficulty": "string",
"duration": "string",
"focusAreas": [
"string"
],
"learningObjectives": [
"string"
],
"tone": "string",
"includeExercises": true,
"includeQuizzes": true,
"includeProjects": true,
"contentLanguage": "string",
"lessonType": "string",
"lessonLength": "string",
"contentLevel": "string"
},
"message": "string",
"researchContext": {},
"newCourseCreationId": "string"
}Empty
{
"error": {
"code": "UNAUTHORIZED",
"message": "Valid LEIA API key required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "API key service user must be a CREATOR user"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}