curl --request GET \
--url https://api.example.com/course/getAllCourses \
--header 'x-access'\''courser-auth-token: <x-access'\''courser-auth-token>'{
"courses": [
{
"_id": "<string>",
"name": "<string>",
"instructions": "<string>",
"color": "<string>",
"placeholder": "<string>",
"backgroundImg": "<string>",
"openAIAssistantID": "<string>",
"openAIFiles": [
"<string>"
],
"transcriptions": [
"<string>"
],
"sourceFiles": [
"<string>"
],
"openAIKey": "<string>"
}
]
}Retrieve all courses belonging to the authenticated user.
curl --request GET \
--url https://api.example.com/course/getAllCourses \
--header 'x-access'\''courser-auth-token: <x-access'\''courser-auth-token>'{
"courses": [
{
"_id": "<string>",
"name": "<string>",
"instructions": "<string>",
"color": "<string>",
"placeholder": "<string>",
"backgroundImg": "<string>",
"openAIAssistantID": "<string>",
"openAIFiles": [
"<string>"
],
"transcriptions": [
"<string>"
],
"sourceFiles": [
"<string>"
],
"openAIKey": "<string>"
}
]
}Show Course properties
curl --request GET \
--url http://localhost:8000/course/getAllCourses \
--header "x-access'courser-auth-token: <your_jwt_token>"
{
"courses": [
{
"_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": ""
}
]
}