PUT
/api/v1/artifacts/{slug}/captionsAdd captions to a video
Adds or replaces a video's captions from a WebVTT (.vtt) or SubRip (.srt) file's text, at most 2 MB. The player shows them as subtitles, and search and Ask read the video by minute. Needs edit rights on the file.
Guide: Captions
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Request body
#application/json, required
file_namestringUp to 200 characters.
contentstringRequiredThe document's Markdown. 1–2,200,000 characters.
Responses
#200OK.401No token, or the token is revoked or mistyped.422Not a video, or no captions found in the text (use a .vtt or .srt file).429Too many requests from your IP address. Wait the seconds inRetry-After.
200 response: 22 fields (ArtifactResponse)
slugstringurlstringtitlestring | nullShown on the page and in link previews.
kindstringDefault
"artifact".mimestringrendererstringtype_labelstringsize_bytesintegeroriginal_filenamestring | nullartifact_urlstringworkspace_urlstring | nulldownload_urlstringposter_urlstring | nullcaptions_urlstring | nullcaptions_namestring | nullmediaobject | nullcreated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.updated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.expires_atstring (date-time) | nullISO 8601, for example
2026-11-30T12:00:00Z.viewsintegerDefault
0.is_password_protectedbooleanDefault
false.is_ownerbooleanDefault
false.