curl --request GET \
--url https://api.example.com/course/getCourse/{courseID}{
"_id": "<string>",
"name": "<string>",
"instructions": "<string>",
"color": "<string>",
"placeholder": "<string>",
"backgroundImg": "<string>",
"openAIAssistantID": "<string>",
"openAIFiles": [
"<string>"
],
"transcriptions": [
"<string>"
],
"sourceFiles": [
"<string>"
],
"openAIKey": "<string>"
}Retrieve a course by its ID. This is the public endpoint used by the embeddable chatbot widget.
curl --request GET \
--url https://api.example.com/course/getCourse/{courseID}{
"_id": "<string>",
"name": "<string>",
"instructions": "<string>",
"color": "<string>",
"placeholder": "<string>",
"backgroundImg": "<string>",
"openAIAssistantID": "<string>",
"openAIFiles": [
"<string>"
],
"transcriptions": [
"<string>"
],
"sourceFiles": [
"<string>"
],
"openAIKey": "<string>"
}"#fecc4e"."What is significant about horseshoe crabs".curl --request GET \
--url http://localhost:8000/course/getCourse/64f1a2b3c4d5e6f7a8b9c0d1
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Introduction to Marine Biology",
"instructions": "You are a helpful AI assistant for a University classroom that answers questions for students about this course",
"color": "#fecc4e",
"placeholder": "What is significant about horseshoe crabs",
"backgroundImg": "https://res.cloudinary.com/dlk3ezbal/image/upload/v1699589098/jqmlca7vhr0cnzgdbaah.png",
"openAIAssistantID": "asst_abc123xyz",
"openAIFiles": ["file-abc123"],
"transcriptions": ["64f1a2b3c4d5e6f7a8b9c0d2"],
"sourceFiles": [],
"openAIKey": ""
}