ParadymDevelopers Search docs فارسی Console

API reference

Partner API v1

Download the OpenAPI definition from the running backend using the link below. It describes the accepted request bodies, response fields and public endpoints for this installation. Send a server key as a Bearer credential for archive writes and session issuance.

Common server key scopes
HTTP
assets:write       PUT /partner/v1/assets/{asset_id}
playback:issue     POST /partner/v1/playback-sessions
parties:launch     POST /partner/v1/watch-party-launches
API version 1.0Download OpenAPI JSON
Base URLhttps://api.paradym.tv

Endpoints

agent

Create a delegated server key

POST/partner/v1/agent/keys

Redeem an owner's single-use delegation for its exact site, environment and scopes.

Authentication One-use agent grant ScopedBearer http · bearer
Permalink
Request
Request body
Required
application/json

KeyName

object

  • name string Required
    minLength
    1
    maxLength
    120
    pattern
    "\\S"
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

KeyReceipt

object

  • id string Required
  • site_id string Required
  • name string Required
  • environment string Required
    enum
    ["test","live"]
  • scopes array Required
    items

    string

    enum
    ["assets:write","playback:issue","parties:launch"]
  • prefix string Required
  • actor string Required
  • created_at string Required
    format
    "date-time"
  • expires_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • last_used_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • revoked_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • deleted_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • secret string Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

assets

Register an asset

PUT/partner/v1/assets/{asset_id}

Register or update a playable archive edition on the authenticated site.

Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
    pattern
    "^[a-zA-Z0-9._~-]{1,150}$"
Request body
Required
application/json

AssetInput

object

  • series_id Optional
    anyOf
    1. string

      minLength
      1
      maxLength
      120
      pattern
      "\\S"
    2. null

  • season_number Optional
    anyOf
    1. integer

      minimum
      0
      maximum
      9999
    2. null

  • episode_number Optional
    anyOf
    1. integer

      minimum
      0
      maximum
      99999
    2. null

  • edition Optional
    anyOf
    1. string

      maxLength
      100
    2. null

  • title string Required
    minLength
    1
    maxLength
    300
  • source_url Optional
    anyOf
    1. string

      maxLength
      4096
    2. null

  • source_type string Required
    enum
    ["mp4","hls"]
  • subtitles array Optional
    maxItems
    40
    items

    Subtitle

    object

    • url string Required
      maxLength
      4096
    • language string Required
      minLength
      2
      maxLength
      35
      pattern
      "^[a-zA-Z0-9-]+$"
    • label string Required
      minLength
      1
      maxLength
      100
    additionalProperties

    No values allowed

additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

AssetReceipt

object

  • asset_id string Required
  • revision integer Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Unpublish an asset

DELETE/partner/v1/assets/{asset_id}
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
Responses
HTTP 204Successful Response

No response body declared.

HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

List managed tracks

GET/partner/v1/assets/{asset_id}/subtitles
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
Responses
HTTP 200Successful Response
application/jsonResponse List Tracks Partner V1 Assets Asset Id Subtitles Get

array

items

TrackReceipt

object

  • id string Required
  • language string Required
  • label string Required
  • revision integer Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Upload a managed track

POST/partner/v1/assets/{asset_id}/subtitles
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
Request body
Required
application/json

ManagedTrackInput

object

  • language string Required
    minLength
    2
    maxLength
    35
    pattern
    "^[a-zA-Z0-9-]+$"
  • label string Required
    minLength
    1
    maxLength
    100
  • filename string Required
    minLength
    1
    maxLength
    160
  • content string Required
    minLength
    1
    maxLength
    262144
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

TrackReceipt

object

  • id string Required
  • language string Required
  • label string Required
  • revision integer Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Replace a managed track

PUT/partner/v1/assets/{asset_id}/subtitles/{track_id}
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
  • track_id string path Required
Request body
Required
application/json

ManagedTrackInput

object

  • language string Required
    minLength
    2
    maxLength
    35
    pattern
    "^[a-zA-Z0-9-]+$"
  • label string Required
    minLength
    1
    maxLength
    100
  • filename string Required
    minLength
    1
    maxLength
    160
  • content string Required
    minLength
    1
    maxLength
    262144
additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

TrackReceipt

object

  • id string Required
  • language string Required
  • label string Required
  • revision integer Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Delete a managed track

DELETE/partner/v1/assets/{asset_id}/subtitles/{track_id}
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • asset_id string path Required
  • track_id string path Required
Responses
HTTP 204Successful Response

No response body declared.

HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

List archive assets

GET/partner/v1/assets
Authentication Site server key ScopedBearer http · bearer Scope assets:write
Permalink
Request
Parameters
  • offset integer query Optional
    default
    0
Responses
HTTP 200Successful Response
application/json
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

playback-sessions

Authorize a viewer for a film

POST/partner/v1/playback-sessions

Issue a one-minute launch grant after your server checks this viewer's access.

Authentication Site server key ScopedBearer http · bearer Scope playback:issue
Permalink
Request
Request body
Required
application/json

LaunchInput

object

  • display_name Optional
    anyOf
    1. string

      minLength
      1
      maxLength
      80
    2. null

  • room_id Optional
    anyOf
    1. string

      maxLength
      36
    2. null

  • asset_id string Required
    minLength
    1
    maxLength
    150
  • viewer_id string Required
    minLength
    1
    maxLength
    200
  • origin string Required
    maxLength
    512
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

GrantReceipt

object

  • grant string Required
  • expires_at string Required
    format
    "date-time"
  • embed_url string Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Exchange a one-use launch grant

POST/partner/v1/playback-sessions/exchange

The hosted frame exchanges a single-use grant against the observed parent origin.

Authentication No authentication declared
Permalink
Request
Request body
Required
application/json

ExchangeInput

object

  • grant string Required
    format
    "password"
    minLength
    1
    maxLength
    180
    writeOnly
    true
  • origin string Required
    maxLength
    512
additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

RuntimeReceipt

object

  • source_expires_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • runtime_expires_at string Required
    format
    "date-time"
  • navigation Optional
    anyOf
    1. Navigation

      object

      • series_id string Required
      • current_asset_id string Required
      • previous_asset_id Required
        anyOf
        1. string

        2. null

      • next_asset_id Required
        anyOf
        1. string

        2. null

      • episodes array Required
        items

        Episode

        object

        • asset_id string Required
        • title string Required
        • season_number integer Required
        • episode_number integer Required
    2. null

  • room Optional
    anyOf
    1. RoomState

      object

      • voice_available boolean Optional
        default
        false
      • id string Required
      • role string Required
        enum
        ["host","guest"]
      • paused boolean Required
      • position_seconds number Required
      • updated_at string Required
        format
        "date-time"
      • version integer Required
      • ended boolean Required
    2. null

  • title string Required
  • source_url string Required
  • source_type string Required
    enum
    ["mp4","hls"]
  • session_token string Required
  • position_seconds number Required
  • subtitles array Required
    items

    PlaybackTrack

    object

    • url string Required
    • language string Required
    • label string Required
    • managed boolean Optional
      default
      false
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Renew access and record playback position

POST/partner/v1/playback-sessions/refresh

Renew the runtime lease and optionally persist the current edition's position.

Authentication Playback session token ScopedBearer http · bearer
Permalink
Request
Request body
Required
application/json

RefreshInput

object

  • sequence Optional
    anyOf
    1. integer

      minimum
      1
      maximum
      2147483647
    2. null

  • playing Optional
    anyOf
    1. boolean

    2. null

  • position_seconds Optional
    anyOf
    1. number

      minimum
      0
      maximum
      2592000
    2. null

additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

RuntimeReceipt

object

  • source_expires_at Required
    anyOf
    1. string

      format
      "date-time"
    2. null

  • runtime_expires_at string Required
    format
    "date-time"
  • navigation Optional
    anyOf
    1. Navigation

      object

      • series_id string Required
      • current_asset_id string Required
      • previous_asset_id Required
        anyOf
        1. string

        2. null

      • next_asset_id Required
        anyOf
        1. string

        2. null

      • episodes array Required
        items

        Episode

        object

        • asset_id string Required
        • title string Required
        • season_number integer Required
        • episode_number integer Required
    2. null

  • room Optional
    anyOf
    1. RoomState

      object

      • voice_available boolean Optional
        default
        false
      • id string Required
      • role string Required
        enum
        ["host","guest"]
      • paused boolean Required
      • position_seconds number Required
      • updated_at string Required
        format
        "date-time"
      • version integer Required
      • ended boolean Required
    2. null

  • title string Required
  • source_url string Required
  • source_type string Required
    enum
    ["mp4","hls"]
  • session_token string Required
  • position_seconds number Required
  • subtitles array Required
    items

    PlaybackTrack

    object

    • url string Required
    • language string Required
    • label string Required
    • managed boolean Optional
      default
      false
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Record first playback

POST/partner/v1/playback-sessions/started

Count the first start only once per playback session.

Authentication Playback session token ScopedBearer http · bearer
Permalink
Request

No parameters or request body declared.

Responses
HTTP 204Successful Response

No response body declared.

Back to endpoints

Fetch an authorized subtitle

GET/partner/v1/playback-sessions/subtitles/{track_id}
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request
Parameters
  • track_id string path Required
Responses
HTTP 200Successful Response
text/vtt

string

HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Read room playback state

GET/partner/v1/playback-sessions/room
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request

No parameters or request body declared.

Responses
HTTP 200Successful Response
application/json

RoomState

object

  • voice_available boolean Optional
    default
    false
  • id string Required
  • role string Required
    enum
    ["host","guest"]
  • paused boolean Required
  • position_seconds number Required
  • updated_at string Required
    format
    "date-time"
  • version integer Required
  • ended boolean Required
Back to endpoints

Control room playback

POST/partner/v1/playback-sessions/room
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request
Request body
Required
application/json

RoomCommand

object

  • action string Required
    enum
    ["play","pause","seek","end"]
  • position_seconds number Required
    minimum
    0
    maximum
    2592000
  • expected_version integer Required
    minimum
    1
additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

RoomState

object

  • voice_available boolean Optional
    default
    false
  • id string Required
  • role string Required
    enum
    ["host","guest"]
  • paused boolean Required
  • position_seconds number Required
  • updated_at string Required
    format
    "date-time"
  • version integer Required
  • ended boolean Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Read room social state

GET/partner/v1/playback-sessions/room/social
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request

No parameters or request body declared.

Responses
HTTP 200Successful Response
application/json
Back to endpoints

Submit a room social action

POST/partner/v1/playback-sessions/room/social
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request
Request body
Required
application/jsonBody
oneOf
  1. Chat

    object

    • action string Required
      const
      "chat"
    • text string Required
      minLength
      1
      maxLength
      800
      pattern
      "\\S"
    additionalProperties

    No values allowed

  2. React

    object

    • action string Required
      const
      "react"
    • emoji string Required
      enum
      ["👍","❤️","😂","🎉"]
    additionalProperties

    No values allowed

  3. NewPoll

    object

    • action string Required
      const
      "poll"
    • question string Required
      minLength
      1
      maxLength
      240
      pattern
      "\\S"
    • options array Required
      minItems
      2
      maxItems
      6
      items

      string

      minLength
      1
      maxLength
      120
    additionalProperties

    No values allowed

  4. Vote

    object

    • action string Required
      const
      "vote"
    • poll_id string Required
      minLength
      1
      maxLength
      36
    • option_index integer Required
      minimum
      0
      maximum
      5
    additionalProperties

    No values allowed

  5. ClosePoll

    object

    • action string Required
      const
      "close_poll"
    • poll_id string Required
      minLength
      1
      maxLength
      36
    additionalProperties

    No values allowed

  6. Moderate

    object

    • action string Required
      enum
      ["kick","transfer"]
    • member_id string Required
      minLength
      1
      maxLength
      36
    additionalProperties

    No values allowed

  7. ShareSubtitle

    object

    • action string Required
      const
      "share_subtitle"
    • track_id Required
      anyOf
      1. string

        minLength
        1
        maxLength
        36
      2. null

    additionalProperties

    No values allowed

Responses
HTTP 200Successful Response
application/json
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Join room voice

POST/partner/v1/playback-sessions/voice
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request

No parameters or request body declared.

Responses
HTTP 200Successful Response
application/json
Back to endpoints

Leave room voice

DELETE/partner/v1/playback-sessions/voice
Authentication Playback session token ScopedBearer http · bearer
Permalink
Request

No parameters or request body declared.

Responses
HTTP 204Successful Response

No response body declared.

Back to endpoints

rooms

Create a private room

POST/partner/v1/rooms
Authentication Site server key ScopedBearer http · bearer Scope playback:issue
Permalink
Request
Request body
Required
application/json

RoomInput

object

  • asset_id string Required
    minLength
    1
    maxLength
    150
  • host_viewer_id string Required
    minLength
    1
    maxLength
    200
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

RoomCreated

object

  • room_id string Required
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

watch-party-launches

Open a private room on Paradym

POST/partner/v1/watch-party-launches

Create an owner-consented launch for a private fixed-video Paradym member party.

Authentication Site server key ScopedBearer http · bearer Scope parties:launch
Permalink
Request
Request body
Required
application/json

HandoffHostInput

object

  • origin string Required
    maxLength
    512
  • asset_id string Required
    minLength
    1
    maxLength
    150
  • viewer_id string Required
    minLength
    1
    maxLength
    200
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

HandoffLaunchReceipt

object

  • launch_url string Required
  • expires_at string Required
    format
    "date-time"
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Read the asset in a guest request

POST/partner/v1/watch-party-launches/guest/inspect

Identify the exact edition to authorize before redeeming a member's guest request.

Authentication Site server key ScopedBearer http · bearer Scope parties:launch
Permalink
Request
Request body
Required
application/json

HandoffRequestInput

object

  • origin string Required
    maxLength
    512
  • request string Required
    format
    "password"
    minLength
    1
    maxLength
    180
    writeOnly
    true
additionalProperties

No values allowed

Responses
HTTP 200Successful Response
application/json

HandoffRequestReceipt

object

  • asset_id string Required
  • revision integer Required
  • expires_at string Required
    format
    "date-time"
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Authorize an admitted guest

POST/partner/v1/watch-party-launches/guest
Authentication Site server key ScopedBearer http · bearer Scope parties:launch
Permalink
Request
Request body
Required
application/json

HandoffGuestInput

object

  • origin string Required
    maxLength
    512
  • request string Required
    format
    "password"
    minLength
    1
    maxLength
    180
    writeOnly
    true
  • viewer_id string Required
    minLength
    1
    maxLength
    200
additionalProperties

No values allowed

Responses
HTTP 201Successful Response
application/json

HandoffLaunchReceipt

object

  • launch_url string Required
  • expires_at string Required
    format
    "date-time"
HTTP 422Validation Error
application/json

HTTPValidationError

object

  • detail array Optional
    items

    ValidationError

    object

    • loc array Required
      Location
      items
      anyOf
      1. string

      2. integer

    • msg string RequiredMessage
    • type string RequiredError Type
Back to endpoints

Search docs

Use the arrow keys to choose a guide.