POST
/
v1
/
k12
/
generate
/
content
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
grade
string
required

Grade level for the content.

Example:

"10"

subject
string
required

Subject for the content.

Example:

"Science"

topics
string[]
required

Topics for which content needs to be generated.

content_type
object
required

Types of content to generate.

institution_id
string

Unique identifier of the institution.

Example:

"inst789"

teacher_id
string

Unique identifier of the teacher.

Example:

"teacher456"

learning_outcomes
string[]

Learning outcomes to focus on (optional).

extra
string[]

Additional information for the request (optional).

Response

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

202

message
string
Example:

"Content request submitted successfully"

data
object
status
string
Example:

"Processing"