VideoBibblo Dashboard Get started

API reference

Base URL: https://video.bibblo.ca. Every request needs your secret key: Authorization: Bearer vb_sk_…. Call the API from your server only.

How it fits together

  1. Your server calls POST /v1/videos and gets an upload URL.
  2. Your app PUTs the file to that URL directly (valid for 1 hour).
  3. Your server calls POST /v1/videos/:id/complete. We encode it.
  4. We send a video.ready webhook.
  5. When a signed-in user may watch, your server calls POST /v1/videos/:id/playback and returns the hlsUrl to the app.
POST/v1/videos

Create a video and get an upload URL.

titlestring, optional
metadataobject of strings, optional (≤ 20 keys) — e.g. your user or post id. Returned in webhooks.
contentTypee.g. video/mp4 (default) or video/quicktime. The upload must use the same Content-Type.
sizeBytesnumber, optional — rejected early if above your limit (5 GB).
{
  "video": { "id": "vid_…", "status": "awaiting_upload", … },
  "upload": { "method": "PUT", "url": "https://…", "headers": { "Content-Type": "video/mp4" }, "expiresAt": "…" }
}
POST/v1/videos/:id/complete

Call after the upload finishes. Starts encoding; status becomes processing. Safe to call twice.

GET/v1/videos/:id

Returns the video. status is one of awaiting_upload, processing, ready, failed.

{ "id": "vid_…", "title": "…", "status": "ready", "durationSec": 92.4,
  "renditions": [{ "name": "1080p", "width": 1920, "height": 1080 }, …],
  "storageBytes": 81234567, "metadata": { … }, "createdAt": "…", "readyAt": "…" }
GET/v1/videos?limit=50

Newest first, up to 200.

POST/v1/videos/:id/playback

Create a private playback link for one viewer. Only call this after you have checked the user may watch (e.g. they're a premium subscriber).

expiresInSecoptional, default 21600 (6 h), min 60, max 604800 (7 days)
{ "hlsUrl": "https://video.bibblo.ca/v1/play/…/master.m3u8",
  "thumbnailUrl": "https://video.bibblo.ca/v1/play/…/thumbnail.jpg",
  "expiresAt": "…" }
DELETE/v1/videos/:id

Deletes the video and all of its files. Existing playback links stop working.

GET/v1/usage

Current storage and the last 12 months of uploads, encoded seconds and plays.

Webhooks

Set your endpoint in the dashboard. Each event is a JSON POST:

{ "id": "evt_…", "type": "video.ready", "createdAt": "…", "data": { "video": { … } } }

Types: video.ready, video.failed, test.ping. Respond with any 2xx. We retry up to 3 times on network errors and 5xx.

Verify the VideoBibblo-Signature header (t=<unix>,v1=<hex>): compute HMAC-SHA256 of "<t>.<raw body>" with your signing secret, compare in constant time, and reject timestamps older than 5 minutes.

Errors

{ "error": { "code": "not_ready", "message": "Video is processing; playback is available once it is ready." } }
400Invalid input
401Missing, invalid or revoked API key
404Not found (or belongs to another workspace)
409Wrong state — e.g. upload missing, or video not ready
413File too large

Code samples