Upload the transcript of a lesson in a language
put
https://mudey.fr/api/v1/courses/{courseId}/lessons/{lessonId}/transcripts/{language}courses:writeContent of a .vtt or .srt file, or plain text (txt). Text where every line starts with a timestamp "[01:23]" keeps its timing. Replaces the transcript for this language, including an automatic transcript; visible to students immediately. isOriginal (default: the course language) marks the language spoken in the video, one per lesson.
Authorization: Bearer mudey_sk_… header required. Create and use a key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| courseId* | path | string | |
| lessonId* | path | string | |
| language* | path | string | ISO 639-1 language code (fr, en, nl, de, es…). |
JSON body
Fields marked * are required.
| Field | Type | Description |
|---|---|---|
| format | vtt | srt | txt | Content format; txt by default. |
| content* | string | File content, or text. 2 MB at most, 400,000 characters of text kept. |
| isOriginal | boolean | Language spoken in the video. Default: true if it is the course language. |
Responses
200Transcript saved.401Missing, invalid, revoked or expired key.403Missing permission on the key, or the account is no longer an instructor.404Resource not found among your courses.409Lesson linked to another course (mirrored_lesson).422Unsupported language (invalid_language), unreadable file (invalid_transcript) or not a video lesson (not_video_lesson).429Rate limit exceeded (300 calls per minute per key). See the Retry-After header.
Example
export MUDEY_API_KEY="mudey_sk_..."
export COURSE_ID="..." # replace me
export LESSON_ID="..." # replace me
export LANGUAGE="..." # replace me
curl -X PUT "https://mudey.fr/api/v1/courses/$COURSE_ID/lessons/$LESSON_ID/transcripts/$LANGUAGE" \
-H "Authorization: Bearer $MUDEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"format": "srt",
"content": "1\n00:00:00,000 --> 00:00:04,200\nBonjour et bienvenue dans cette formation.\n\n2\n00:00:04,200 --> 00:00:08,000\nOn commence par installer TypeScript.\n"
}'