POST
/
v1
/
k12
/
generate
/
content
Generate Content for K12
curl --request POST \
  --url https://api-staging.crazygoldfish.com/v1/k12/generate/content \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: <content-type>' \
  --header 'accept: <accept>' \
  --data '{
  "institution_id": "inst789",
  "teacher_id": "teacher456",
  "grade": "10",
  "subject": "Science",
  "topics": [
    "photosynthesis"
  ],
  "learning_outcomes": [
    "<string>"
  ],
  "content_type": {
    "notes": "Yes",
    "stories": "No",
    "activities": "Yes",
    "group_dicussion": "No"
  },
  "extra": [
    "<string>"
  ]
}'
{
  "status_code": 202,
  "message": "Content 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

Response

200
application/json

Request accepted for processing.

The response is of type object.