Get course (authenticated)
Course
Get course (authenticated)
Retrieve a course by its ID with authentication required.
GET
Get course (authenticated)
Returns a single course by ID. Unlike
GET /course/getCourse/:courseID, this endpoint requires authentication. Use it when you need to fetch full course details in a context where a valid session is already available.
Both this endpoint and
GET /course/getCourse/:courseID return the same course object. The difference is that this endpoint verifies the caller’s JWT token first.Request headers
A valid JWT token obtained from any auth endpoint.
Path parameters
The ID of the course to retrieve.
Response
200 — Success
Returns the course object directly (not wrapped in a key).Unique identifier for the course.
The course display name.
The AI system prompt used by the course chatbot. Defaults to
"You are a helpful AI assistant for a University classroom that answers questions for students about this course".The chatbot accent color as a hex string. Defaults to
"#fecc4e".The input field hint text shown in the chatbot UI. Defaults to
"What is significant about horseshoe crabs".URL of the chatbot background image.
The OpenAI assistant ID for this course.
IDs of files uploaded to OpenAI for retrieval.
Array of Transcription document IDs for the course’s processed videos.
Array of Source document IDs (MongoDB ObjectIds) for the processed YouTube videos.
Custom OpenAI API key for this course, if set. Empty string if using the platform default.
401 — Unauthorized
Returned if the auth header is missing, the token is invalid, or no user is found for the token.Example
200