مرجع API
نسخهٔ یک API همکاران
تعریف OpenAPI را از پیوند زیر از بکاند فعال دریافت کنید. بدنهٔ درخواست، فیلدهای پاسخ و مسیرهای عمومی همین نصب در آن ثبت شده است. برای ثبت آرشیو و صدور مجوز پخش، کلید سرور را بهصورت Bearer بفرستید.
دسترسیهای رایج کلید سرور
assets:write PUT /partner/v1/assets/{asset_id}
playback:issue POST /partner/v1/playback-sessions
parties:launch POST /partner/v1/watch-party-launches1.0دریافت فایل OpenAPI JSONhttps://api.paradym.tvمسیرهای API
مرور مسیرها
هیچ مسیری با این عبارت پیدا نشد
agent
ساخت کلید واگذارشدهٔ سرور
/partner/v1/agent/keysRedeem an owner's single-use delegation for its exact site, environment and scopes.
ScopedBearer http · bearerدرخواست
بدنهٔ درخواست
الزامیapplication/jsonKeyName
object
namestringالزامیminLength1maxLength120pattern"\\S"
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonKeyReceipt
object
idstringالزامیsite_idstringالزامیnamestringالزامیenvironmentstringالزامیenum["test","live"]
scopesarrayالزامیitemsstringenum["assets:write","playback:issue","parties:launch"]
prefixstringالزامیactorstringالزامیcreated_atstringالزامیformat"date-time"
expires_atالزامیanyOfstringformat"date-time"
null
last_used_atالزامیanyOfstringformat"date-time"
null
revoked_atالزامیanyOfstringformat"date-time"
null
deleted_atالزامیanyOfstringformat"date-time"
null
secretstringالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
assets
ثبت فیلم
/partner/v1/assets/{asset_id}Register or update a playable archive edition on the authenticated site.
ScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامیpattern"^[a-zA-Z0-9._~-]{1,150}$"
بدنهٔ درخواست
الزامیapplication/jsonAssetInput
object
series_idاختیاریanyOfstringminLength1maxLength120pattern"\\S"
null
season_numberاختیاریanyOfintegerminimum0maximum9999
null
episode_numberاختیاریanyOfintegerminimum0maximum99999
null
editionاختیاریanyOfstringmaxLength100
null
titlestringالزامیminLength1maxLength300
source_urlاختیاریanyOfstringmaxLength4096
null
source_typestringالزامیenum["mp4","hls"]
subtitlesarrayاختیاریmaxItems40
itemsSubtitleobjecturlstringالزامیmaxLength4096
languagestringالزامیminLength2maxLength35pattern"^[a-zA-Z0-9-]+$"
labelstringالزامیminLength1maxLength100
additionalPropertiesهیچ مقداری مجاز نیست
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonAssetReceipt
object
asset_idstringالزامیrevisionintegerالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
خروج فیلم از انتشار
/partner/v1/assets/{asset_id}ScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامی
پاسخها
HTTP 204Successful Response
بدنهای برای پاسخ تعریف نشده است.
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
فهرست زیرنویسهای مدیریتشده
/partner/v1/assets/{asset_id}/subtitlesScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامی
پاسخها
HTTP 200Successful Response
application/jsonResponse List Tracks Partner V1 Assets Asset Id Subtitles Getarray
items
TrackReceipt
object
idstringالزامیlanguagestringالزامیlabelstringالزامیrevisionintegerالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
بارگذاری زیرنویس
/partner/v1/assets/{asset_id}/subtitlesScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامی
بدنهٔ درخواست
الزامیapplication/jsonManagedTrackInput
object
languagestringالزامیminLength2maxLength35pattern"^[a-zA-Z0-9-]+$"
labelstringالزامیminLength1maxLength100
filenamestringالزامیminLength1maxLength160
contentstringالزامیminLength1maxLength262144
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonTrackReceipt
object
idstringالزامیlanguagestringالزامیlabelstringالزامیrevisionintegerالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
جایگزینی زیرنویس
/partner/v1/assets/{asset_id}/subtitles/{track_id}ScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامیtrack_idstringpathالزامی
بدنهٔ درخواست
الزامیapplication/jsonManagedTrackInput
object
languagestringالزامیminLength2maxLength35pattern"^[a-zA-Z0-9-]+$"
labelstringالزامیminLength1maxLength100
filenamestringالزامیminLength1maxLength160
contentstringالزامیminLength1maxLength262144
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonTrackReceipt
object
idstringالزامیlanguagestringالزامیlabelstringالزامیrevisionintegerالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
حذف زیرنویس
/partner/v1/assets/{asset_id}/subtitles/{track_id}ScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
asset_idstringpathالزامیtrack_idstringpathالزامی
پاسخها
HTTP 204Successful Response
بدنهای برای پاسخ تعریف نشده است.
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
فهرست فیلمهای آرشیو
/partner/v1/assetsScopedBearer http · bearer مجوز assets:writeدرخواست
پارامترها
offsetintegerqueryاختیاریdefault0
پاسخها
HTTP 200Successful Response
application/jsonHTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
playback-sessions
صدور مجوز فیلم برای بیننده
/partner/v1/playback-sessionsIssue a one-minute launch grant after your server checks this viewer's access.
ScopedBearer http · bearer مجوز playback:issueدرخواست
بدنهٔ درخواست
الزامیapplication/jsonLaunchInput
object
display_nameاختیاریanyOfstringminLength1maxLength80
null
room_idاختیاریanyOfstringmaxLength36
null
asset_idstringالزامیminLength1maxLength150
viewer_idstringالزامیminLength1maxLength200
originstringالزامیmaxLength512
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonGrantReceipt
object
grantstringالزامیexpires_atstringالزامیformat"date-time"
embed_urlstringالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
تبدیل مجوز یکبارمصرف به نشست
/partner/v1/playback-sessions/exchangeThe hosted frame exchanges a single-use grant against the observed parent origin.
درخواست
بدنهٔ درخواست
الزامیapplication/jsonExchangeInput
object
grantstringالزامیformat"password"minLength1maxLength180writeOnlytrue
originstringالزامیmaxLength512
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonRuntimeReceipt
object
source_expires_atالزامیanyOfstringformat"date-time"
null
runtime_expires_atstringالزامیformat"date-time"
navigationاختیاریanyOfNavigationobjectseries_idstringالزامیcurrent_asset_idstringالزامیprevious_asset_idالزامیanyOfstringnull
next_asset_idالزامیanyOfstringnull
episodesarrayالزامیitemsEpisodeobjectasset_idstringالزامیtitlestringالزامیseason_numberintegerالزامیepisode_numberintegerالزامی
null
roomاختیاریanyOfRoomStateobjectvoice_availablebooleanاختیاریdefaultfalse
idstringالزامیrolestringالزامیenum["host","guest"]
pausedbooleanالزامیposition_secondsnumberالزامیupdated_atstringالزامیformat"date-time"
versionintegerالزامیendedbooleanالزامی
null
titlestringالزامیsource_urlstringالزامیsource_typestringالزامیenum["mp4","hls"]
session_tokenstringالزامیposition_secondsnumberالزامیsubtitlesarrayالزامیitemsPlaybackTrackobjecturlstringالزامیlanguagestringالزامیlabelstringالزامیmanagedbooleanاختیاریdefaultfalse
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
تمدید دسترسی و ثبت موقعیت پخش
/partner/v1/playback-sessions/refreshRenew the runtime lease and optionally persist the current edition's position.
ScopedBearer http · bearerدرخواست
بدنهٔ درخواست
الزامیapplication/jsonRefreshInput
object
sequenceاختیاریanyOfintegerminimum1maximum2147483647
null
playingاختیاریanyOfbooleannull
position_secondsاختیاریanyOfnumberminimum0maximum2592000
null
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonRuntimeReceipt
object
source_expires_atالزامیanyOfstringformat"date-time"
null
runtime_expires_atstringالزامیformat"date-time"
navigationاختیاریanyOfNavigationobjectseries_idstringالزامیcurrent_asset_idstringالزامیprevious_asset_idالزامیanyOfstringnull
next_asset_idالزامیanyOfstringnull
episodesarrayالزامیitemsEpisodeobjectasset_idstringالزامیtitlestringالزامیseason_numberintegerالزامیepisode_numberintegerالزامی
null
roomاختیاریanyOfRoomStateobjectvoice_availablebooleanاختیاریdefaultfalse
idstringالزامیrolestringالزامیenum["host","guest"]
pausedbooleanالزامیposition_secondsnumberالزامیupdated_atstringالزامیformat"date-time"
versionintegerالزامیendedbooleanالزامی
null
titlestringالزامیsource_urlstringالزامیsource_typestringالزامیenum["mp4","hls"]
session_tokenstringالزامیposition_secondsnumberالزامیsubtitlesarrayالزامیitemsPlaybackTrackobjecturlstringالزامیlanguagestringالزامیlabelstringالزامیmanagedbooleanاختیاریdefaultfalse
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
ثبت اولین پخش
/partner/v1/playback-sessions/startedCount the first start only once per playback session.
ScopedBearer http · bearerدرخواست
پارامتر یا بدنهای برای درخواست تعریف نشده است.
پاسخها
HTTP 204Successful Response
بدنهای برای پاسخ تعریف نشده است.
دریافت زیرنویس دارای مجوز
/partner/v1/playback-sessions/subtitles/{track_id}ScopedBearer http · bearerدرخواست
پارامترها
track_idstringpathالزامی
پاسخها
HTTP 200Successful Response
text/vttstring
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
مشاهدهٔ وضعیت پخش اتاق
/partner/v1/playback-sessions/roomScopedBearer http · bearerدرخواست
پارامتر یا بدنهای برای درخواست تعریف نشده است.
پاسخها
HTTP 200Successful Response
application/jsonRoomState
object
voice_availablebooleanاختیاریdefaultfalse
idstringالزامیrolestringالزامیenum["host","guest"]
pausedbooleanالزامیposition_secondsnumberالزامیupdated_atstringالزامیformat"date-time"
versionintegerالزامیendedbooleanالزامی
تغییر وضعیت پخش اتاق
/partner/v1/playback-sessions/roomScopedBearer http · bearerدرخواست
بدنهٔ درخواست
الزامیapplication/jsonRoomCommand
object
actionstringالزامیenum["play","pause","seek","end"]
position_secondsnumberالزامیminimum0maximum2592000
expected_versionintegerالزامیminimum1
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonRoomState
object
voice_availablebooleanاختیاریdefaultfalse
idstringالزامیrolestringالزامیenum["host","guest"]
pausedbooleanالزامیposition_secondsnumberالزامیupdated_atstringالزامیformat"date-time"
versionintegerالزامیendedbooleanالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
مشاهدهٔ اعضا، گفتگو و رأیگیری اتاق
/partner/v1/playback-sessions/room/socialScopedBearer http · bearerدرخواست
پارامتر یا بدنهای برای درخواست تعریف نشده است.
پاسخها
HTTP 200Successful Response
application/jsonارسال کنش گروهی در اتاق
/partner/v1/playback-sessions/room/socialScopedBearer http · bearerدرخواست
بدنهٔ درخواست
الزامیapplication/jsonBodyoneOf
Chatobjectactionstringالزامیconst"chat"
textstringالزامیminLength1maxLength800pattern"\\S"
additionalPropertiesهیچ مقداری مجاز نیست
Reactobjectactionstringالزامیconst"react"
emojistringالزامیenum["👍","❤️","😂","🎉"]
additionalPropertiesهیچ مقداری مجاز نیست
NewPollobjectactionstringالزامیconst"poll"
questionstringالزامیminLength1maxLength240pattern"\\S"
optionsarrayالزامیminItems2maxItems6
itemsstringminLength1maxLength120
additionalPropertiesهیچ مقداری مجاز نیست
Voteobjectactionstringالزامیconst"vote"
poll_idstringالزامیminLength1maxLength36
option_indexintegerالزامیminimum0maximum5
additionalPropertiesهیچ مقداری مجاز نیست
ClosePollobjectactionstringالزامیconst"close_poll"
poll_idstringالزامیminLength1maxLength36
additionalPropertiesهیچ مقداری مجاز نیست
Moderateobjectactionstringالزامیenum["kick","transfer"]
member_idstringالزامیminLength1maxLength36
additionalPropertiesهیچ مقداری مجاز نیست
ShareSubtitleobjectactionstringالزامیconst"share_subtitle"
track_idالزامیanyOfstringminLength1maxLength36
null
additionalPropertiesهیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonHTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
ورود به گفتوگوی صوتی اتاق
/partner/v1/playback-sessions/voiceScopedBearer http · bearerدرخواست
پارامتر یا بدنهای برای درخواست تعریف نشده است.
پاسخها
HTTP 200Successful Response
application/jsonخروج از گفتوگوی صوتی اتاق
/partner/v1/playback-sessions/voiceScopedBearer http · bearerدرخواست
پارامتر یا بدنهای برای درخواست تعریف نشده است.
پاسخها
HTTP 204Successful Response
بدنهای برای پاسخ تعریف نشده است.
rooms
ساخت اتاق خصوصی
/partner/v1/roomsScopedBearer http · bearer مجوز playback:issueدرخواست
بدنهٔ درخواست
الزامیapplication/jsonRoomInput
object
asset_idstringالزامیminLength1maxLength150
host_viewer_idstringالزامیminLength1maxLength200
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonRoomCreated
object
room_idstringالزامی
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
watch-party-launches
باز کردن اتاق خصوصی در پارادایم
/partner/v1/watch-party-launchesCreate an owner-consented launch for a private fixed-video Paradym member party.
ScopedBearer http · bearer مجوز parties:launchدرخواست
بدنهٔ درخواست
الزامیapplication/jsonHandoffHostInput
object
originstringالزامیmaxLength512
asset_idstringالزامیminLength1maxLength150
viewer_idstringالزامیminLength1maxLength200
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonHandoffLaunchReceipt
object
launch_urlstringالزامیexpires_atstringالزامیformat"date-time"
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
خواندن محتوای درخواست مهمان
/partner/v1/watch-party-launches/guest/inspectIdentify the exact edition to authorize before redeeming a member's guest request.
ScopedBearer http · bearer مجوز parties:launchدرخواست
بدنهٔ درخواست
الزامیapplication/jsonHandoffRequestInput
object
originstringالزامیmaxLength512
requeststringالزامیformat"password"minLength1maxLength180writeOnlytrue
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 200Successful Response
application/jsonHandoffRequestReceipt
object
asset_idstringالزامیrevisionintegerالزامیexpires_atstringالزامیformat"date-time"
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type
صدور مجوز برای مهمان پذیرفتهشده
/partner/v1/watch-party-launches/guestScopedBearer http · bearer مجوز parties:launchدرخواست
بدنهٔ درخواست
الزامیapplication/jsonHandoffGuestInput
object
originstringالزامیmaxLength512
requeststringالزامیformat"password"minLength1maxLength180writeOnlytrue
viewer_idstringالزامیminLength1maxLength200
additionalProperties
هیچ مقداری مجاز نیست
پاسخها
HTTP 201Successful Response
application/jsonHandoffLaunchReceipt
object
launch_urlstringالزامیexpires_atstringالزامیformat"date-time"
HTTP 422Validation Error
application/jsonHTTPValidationError
object
detailarrayاختیاریitemsValidationErrorobjectlocarrayالزامیLocationitemsanyOfstringinteger
msgstringالزامیMessagetypestringالزامیError Type