We offer customization solutions and support ([email protected]) | Visit us on bitbyte3 for complete VOD solutions with apps.
NixStream
API Reference

Shareable Links

Create share links via the Client API

POST /shareable-links

Create a share link for a video, live stream, or collection. Public or password-protected.

Request body

FieldTypeRequiredDescription
media_idstringYesID of the video, stream, or collection
media_typestringYesvod, live, or collection
visibilitystringYespublic or password
passwordstringIf passwordMin 6 characters
expires_in_daysintegerNoExpiry in days (1-365)

Example request

curl -X POST "https://your-domain.com/api/client/v1/shareable-links" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_id": "019f2581-e0cf-719e-a060-95ef7567c7c7",
    "media_type": "vod",
    "visibility": "password",
    "password": "secret123",
    "expires_in_days": 30
  }'

Response (201)

{
  "link": "https://your-domain.com/share/abc123token",
  "token": "abc123token",
  "visibility": "password",
  "expires_at": "2026-08-02T12:00:00+00:00"
}

Errors

StatusDescription
404Media resource not found or not in your tenant
422Validation error (invalid media_type, missing password, etc.)

Media types

Typemedia_typeDescription
VideovodSingle video share
Live streamliveLive stream share page
CollectioncollectionEntire folder/collection

See Sharing & Embeds for how viewers access links and verify passwords.

On this page