POST
/
v1
/
k12
/
generate
/
lesson-plan
curl --request POST \
  --url https://api-staging.crazygoldfish.com/v1/k12/generate/lesson-plan \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: <content-type>' \
  --header 'accept: <accept>' \
  --data '{
  "board": "NCERT",
  "curriculum_framework": "ncf2023",
  "duration": 45,
  "grade": "10",
  "institution_id": "inst789",
  "learning_outcomes": [
    "Students will understand the process of photosynthesis"
  ],
  "subject": "Science",
  "teacher_id": "teacher456",
  "topics": [
    "photosynthesis",
    "cellular respiration"
  ]
}'
{
  "status_code": 202,
  "message": "Lesson plan request submitted successfully",
  "data": {
    "request_id": "unique-request-id"
  },
  "status": "Processing"
}

Authorizations

Authorization
string
header
required

Headers

accept
enum<string>
default:application/json
required

Specifies the format of the response.

Available options:
application/json
Content-Type
enum<string>
default:application/json
required

Specifies the content type of the request body.

Available options:
application/json

Body

application/json
board
string
required

Educational board for which the lesson plan is required.

  • For class 6, 7, 8, use CBSE

  • For the rest of the classes, use NCERT

Example:

"NCERT"

duration
integer
required

Duration of the lesson in minutes.

Example:

45

grade
string
required

Grade level for the lesson plan.

Example:

"10"

subject
string
required

Subject for the lesson plan.

Example:

"Science"

topics
string[]
required

Topics to be covered in the lesson plan.

Example:
["photosynthesis", "cellular respiration"]
curriculum_framework
string

Curriculum framework to follow.

Example:

"ncf2023"

institution_id
string

Unique identifier of the institution.

Example:

"inst789"

learning_outcomes
string[]

Learning outcomes to be achieved.

Example:
[
  "Students will understand the process of photosynthesis"
]
teacher_id
string

Unique identifier of the teacher.

Example:

"teacher456"

Response

200
application/json
Request accepted for processing.
status_code
integer
Example:

202

message
string
Example:

"Lesson plan request submitted successfully"

data
object
status
string
Example:

"Processing"