Subtitles and Closed Captions

Enhance Your Products with Subtitles and Closed Captions

The "attachments" endpoint of our REST API offers a powerful feature to elevate your products by incorporating subtitles and closed captions. Subtitles and closed captions are essential for multilingual content presentation, enhancing accessibility, and improving the overall user experience. Whether you aim to expand your product's global reach, adhere to accessibility standards, or simply provide a richer audiovisual experience with subtitles and closed captions, our "attachments" endpoint simplifies this process.

Getting Started

In this comprehensive documentation, we will walk you through each step required to effectively utilize this endpoint. You will gain insights into sending HTTP requests to add subtitles and closed captions to your products, handling API responses, and adopting best practices to ensure a smooth integration.

Who Can Benefit

Whether you are an experienced developer seeking an internationalization and accessibility solution for your products or are new to the world of REST APIs, this documentation equips you with the essential information to maximize the potential of this endpoint.

Let's Get Started

Without further ado, let's delve into seamlessly integrating subtitles and closed captions into your products using our REST API.

This revised text maintains the structure and style of your original documentation while applying it to the context of explaining the "attachments" endpoint of your REST API. It introduces the topic, highlights its importance, and sets the stage for the reader to explore the documentation further.

You can manage your attachments of a video with the /videos/{videoId}/attachments endpoints:

How to attach a file to a video

After the video object creation you can POST a subtitle or caption

curl -X GET '<<SBX_SERVER>>/videos/ZFJ3R0FYSlVTbDVYVG43aw%3D%3D/attachments/subtitle/fr-FR' \
-H 'x-api-key: <<SBX_DEMO_KEY>>'\
-H 'Content-Type: multipart/form-data'
-F 'file=@/path/of/file.srt'

This API return a 202 Code to confirm the upload

The locale is made up of a concatenation of language and culture

CodeLanguage (Region)
ar-DZArabic (Algeria)
ar-BHArabic (Bahrain)
ar-EGArabic (Egypt)
ar-IQArabic (Iraq)
ar-JOArabic (Jordan)
ar-KWArabic (Kuwait)
ar-LBArabic (Lebanon)
ar-LYArabic (Libya)
ar-MAArabic (Morocco)
ar-OMArabic (Oman)
ar-QAArabic (Qatar)
ar-SAArabic (Saudi Arabia)
ar-SYArabic (Syria)
ar-TNArabic (Tunisia)
ar-AEArabic (U.A.E.)
ar-YEArabic (Yemen)
zh-HKChinese (Hong Kong)
zh-CNChinese (PRC)
zh-SGChinese (Singapore)
zh-TWChinese (Taiwan)
nl-BEDutch (Belgium)
nl-NLDutch (Standard)
en-AUEnglish (Australia)
en-BZEnglish (Belize)
en-CAEnglish (Canada)
en-IEEnglish (Ireland)
en-JMEnglish (Jamaica)
en-NZEnglish (New Zealand)
en-ZAEnglish (South Africa)
en-TTEnglish (Trinidad)
en-GBEnglish (United Kingdom)
en-USEnglish (United States)
fr-BEFrench (Belgium)
fr-CAFrench (Canada)
fr-LUFrench (Luxembourg)
fr-FRFrench (Standard)
fr-CHFrench (Switzerland)
de-ATGerman (Austria)
de-LIGerman (Liechtenstein)
de-LUGerman (Luxembourg)
de-DEGerman (Standard)
de-CHGerman (Switzerland)
hu-HUHungarian
is-ISIcelandic
id-IDIndonesian
ga-GAIrish
it-ITItalian (Standard)
it-CHItalian (Switzerland)
ja-JPJapanese
ko-KRKorean
lv-LVLatvian
lt-LTLithuanian
mk-MKMacedonian (FYROM)
ml-MLMalayalam
ms-MSMalaysian
mt-MTMaltese
no-NONorwegian
pl-PLPolish
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)
pa-PAPunjabi
ro-RORomanian
ro-MDRomanian (Republic of Moldova)
ru-RURussian
ru-MDRussian (Republic of Moldova)
sr-SRSerbian
sk-SKSlovak
sl-SLSlovenian
es-ARSpanish (Argentina)
es-BOSpanish (Bolivia)
es-CLSpanish (Chile)
es-COSpanish (Colombia)
es-CRSpanish (Costa Rica)
es-DOSpanish (Dominican Republic)
es-ECSpanish (Ecuador)
es-SVSpanish (El Salvador)
es-GTSpanish (Guatemala)
es-HNSpanish (Honduras)
es-MXSpanish (Mexico)
es-NISpanish (Nicaragua)
es-PASpanish (Panama)
es-PYSpanish (Paraguay)
es-PESpanish (Peru)
es-PRSpanish (Puerto Rico)
es-ESSpanish (Spain)
es-UYSpanish (Uruguay)
es-VESpanish (Venezuela)
sv-SVSwedish
sv-FISwedish (Finland)
th-THThai
ts-TSTsonga
tr-TRTurkish
uk-UAUkrainian
ve-VEVenda
vi-VIVietnamese
cy-CYWelsh