Start a lesson plan
Create a lesson plan from a topic, images, or an audio recording, and start generating its subject matter and learning standards.
id. Save it: every later call uses it.Rules
- Send exactly one source:
topic,documents, oraudio. Sending none or sending two returns400. duration_minutesmust be at least 30 and at most 90.documents: up to 4 images,.jpg,.jpeg, or.png, 5 MB each.audio: one.mp3, 5 MB.- Send the fields as
multipart/form-data, not JSON. sectionis stored and returned unchanged. It doesn’t affect the lesson plan.
topic, the lesson is grounded in CrazyGoldFish’s indexed textbook content for that board, grade, and subject. If none exists, the job fails with No content retrieved. Send documents to use your own material instead.audio, the recording is transcribed first, so the metadata step takes noticeably longer to appear. Get lesson plan metadata keeps returning 404 until transcription finishes.Next step
Get lesson plan metadata
status is Completed, or wait for the lesson_plan_initialize_metadata webhook.Authorizations
Access token from Get an access token.
Body
Board ID from List boards.
"baf36573-d049-4636-9c4b-bc9cda6270fe"
Grade ID from List grades.
"28820b1a-34e1-4003-b5bd-96455ca2c6d8"
Subject ID from List subjects.
"6dd7ebda-1bc5-4c01-8649-372579189073"
Length of the lesson in minutes. At least 30 and at most 90.
30 <= x <= 9045
Class section, for your own records. Returned unchanged.
"A"
Topic to build the lesson on. Use this or documents or audio.
"Magnetic Effects of Electric Current"
Up to 4 images of the source material (.jpg, .jpeg, or .png, 5 MB each). Use this or topic or audio.
One .mp3 recording, up to 5 MB. The API transcribes it first, so the metadata step takes longer to appear. Use this or topic or documents.
Optional JSON object with your own reference fields, such as a teacher ID. Returned by List lesson plans and usable as a listing filter.
"{\"teacher_id\": \"T-1042\"}"
Response
The job was queued. Poll Get lesson plan metadata or wait for the lesson_plan_initialize_metadata webhook.