Start curriculum generation
Starts an async curriculum generation job from instructions and source materials.
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
application/json
curl -X POST "https://example.com/course-creation/curriculum-jobs" \ -H "Content-Type: application/json" \ -d '{ "draftCourseId": "draft_abc123", "instructions": { "courseTitle": "Python for Beginners", "targetAudience": "New programmers", "difficulty": "beginner", "tone": "conversational", "includeExercises": true, "includeQuizzes": true, "includeProjects": true }, "enableResearch": true, "languageConfig": { "contentLanguage": "en", "supportedLanguages": [ "en" ] } }'{
"jobId": "string",
"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": "IDEMPOTENCY_CONFLICT",
"message": "Idempotency-Key was reused with a different request body"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}