Get worksheet metadata
Get the subject matter and learning standards generated for a worksheet, and check whether generation is complete.
GET
/
worksheet
/
v1
/
metadata
/
{work_sheet_id}
Get worksheet metadata
curl --request GET \
--url https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "152764ca-1685-427c-aba7-4b92dcc0d60f",
"board": {
"id": "baf36573-d049-4636-9c4b-bc9cda6270fe",
"name": "CBSE"
},
"grade": {
"id": "28820b1a-34e1-4003-b5bd-96455ca2c6d8",
"name": "Grade 10"
},
"section": null,
"subject": {
"id": "6dd7ebda-1bc5-4c01-8649-372579189073",
"name": "Science"
},
"status": "Completed",
"number_of_questions": 5,
"topic": "Magnetic Effects of Electric Current",
"documents": [],
"audio": null,
"subject_matter": {
"topics_to_be_covered": {
"topic": {
"ai_recommendations": [
"Magnetic field and field lines around a bar magnet",
"Magnetic field due to a current through a straight conductor",
"Right-hand thumb rule"
],
"additional_recommendations": [
"Activity: make an electromagnet with a solenoid and a steel rod"
]
}
},
"key_concepts_and_subconcepts": {
"concepts": {
"ai_recommendations": [
"Properties of magnetic field lines",
"Force on a current-carrying conductor"
],
"additional_recommendations": []
}
},
"prerequisite_knowledge": {
"prerequisite": {
"ai_recommendations": [
"Poles of a magnet and how like and unlike poles interact"
],
"additional_recommendations": []
}
}
},
"learning_standards": {
"learning_outcomes": {
"outcomes": {
"ai_recommendations": [
"Explains the pattern of magnetic field lines around a bar magnet"
],
"additional_recommendations": []
}
},
"smart_learning_objectives": {
"objects": {
"ai_recommendations": [
"By the end of the worksheet, students draw field lines around a bar magnet and state three of their properties"
],
"additional_recommendations": []
}
},
"competencies": {
"competency_list": [
{
"name": "C-10.3",
"description": "Explains phenomena using the concepts of electricity and magnetism"
}
]
}
}
}
}Step 1 of 4 in Generate a worksheet. Poll every 5 seconds until
status is Completed.Reading the response
| Response | Meaning | What to do |
|---|---|---|
200 with status: "In Progress" | Still generating | Poll again |
200 with status: "Completed" | Ready | Show subject_matter and learning_standards to the teacher |
404 Worksheet metadata step not found! | The job hasn’t started yet | Poll again. This is normal for a few seconds after you start a worksheet. |
400 with status: "Failed" | Generation failed | Read msg and start a new worksheet |
Instead of polling, register a webhook for
worksheet_initialize_metadata. See Async jobs and webhooks.Next step
Configure worksheet questions
Send
subject_matter and learning_standards back, with any edits.Authorizations
Access token from Get an access token.
Path Parameters
The worksheet id returned by Start a worksheet.
Example:
"152764ca-1685-427c-aba7-4b92dcc0d60f"
Response
The step is In Progress or Completed. Fields fill in as generation progresses.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Get worksheet metadata
curl --request GET \
--url https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.crazygoldfish.com/worksheet/v1/metadata/{work_sheet_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "152764ca-1685-427c-aba7-4b92dcc0d60f",
"board": {
"id": "baf36573-d049-4636-9c4b-bc9cda6270fe",
"name": "CBSE"
},
"grade": {
"id": "28820b1a-34e1-4003-b5bd-96455ca2c6d8",
"name": "Grade 10"
},
"section": null,
"subject": {
"id": "6dd7ebda-1bc5-4c01-8649-372579189073",
"name": "Science"
},
"status": "Completed",
"number_of_questions": 5,
"topic": "Magnetic Effects of Electric Current",
"documents": [],
"audio": null,
"subject_matter": {
"topics_to_be_covered": {
"topic": {
"ai_recommendations": [
"Magnetic field and field lines around a bar magnet",
"Magnetic field due to a current through a straight conductor",
"Right-hand thumb rule"
],
"additional_recommendations": [
"Activity: make an electromagnet with a solenoid and a steel rod"
]
}
},
"key_concepts_and_subconcepts": {
"concepts": {
"ai_recommendations": [
"Properties of magnetic field lines",
"Force on a current-carrying conductor"
],
"additional_recommendations": []
}
},
"prerequisite_knowledge": {
"prerequisite": {
"ai_recommendations": [
"Poles of a magnet and how like and unlike poles interact"
],
"additional_recommendations": []
}
}
},
"learning_standards": {
"learning_outcomes": {
"outcomes": {
"ai_recommendations": [
"Explains the pattern of magnetic field lines around a bar magnet"
],
"additional_recommendations": []
}
},
"smart_learning_objectives": {
"objects": {
"ai_recommendations": [
"By the end of the worksheet, students draw field lines around a bar magnet and state three of their properties"
],
"additional_recommendations": []
}
},
"competencies": {
"competency_list": [
{
"name": "C-10.3",
"description": "Explains phenomena using the concepts of electricity and magnetism"
}
]
}
}
}
}