Skip to content

Quick Start

Get your first video streaming through VaultStream in under 15 minutes.

Prerequisites

  • A CYFR Technologies account with VaultStream enabled
  • An API token with content:write and content:read scopes
  • A video file (MP4, MOV, MKV, AVI, WebM)

Step 1: Create an API Token

# Log into Partner Portal → Settings → API Tokens → Generate
export VS_TOKEN="vst_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Step 2: Upload a Video

curl -X POST https://api.cyfr.technology/v1/content/upload \
  -H "Authorization: Bearer $VS_TOKEN" \
  -F "file=@training-welcome.mp4" \
  -F "title=Welcome to Acme Corp" \
  -F "visibility=private"

Response: {"status": "ok", "content_id": "c_7a3b9f1d", "state": "processing"}

Step 3: Verify Transcoding

curl -H "Authorization: Bearer $VS_TOKEN" \
  https://api.cyfr.technology/v1/content/c_7a3b9f1d

When state is ready, your video is available for streaming.

Step 4: Embed the Player

<script src="https://player.cyfr.technology/v2/vaultstream-player.js"></script>
<div id="player" data-content="c_7a3b9f1d" data-jwt="<USER_JWT>"></div>
<script>
  VSPlayer.mount('#player', { contentId: 'c_7a3b9f1d', jwt: '<JWT>', theme: 'dark' });
</script>

Step 5: Verify

  • Video plays with audio
  • Resolution adapts when resizing
  • Encryption lock icon appears in controls

Next Steps