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
- Your server calls
POST /v1/videosand gets an upload URL. - Your app
PUTs the file to that URL directly (valid for 1 hour). - Your server calls
POST /v1/videos/:id/complete. We encode it. - We send a
video.readywebhook. - When a signed-in user may watch, your server calls
POST /v1/videos/:id/playbackand returns thehlsUrlto the app.
/v1/videosCreate a video and get an upload URL.
title | string, optional |
metadata | object of strings, optional (≤ 20 keys) — e.g. your user or post id. Returned in webhooks. |
contentType | e.g. video/mp4 (default) or video/quicktime. The upload must use the same Content-Type. |
sizeBytes | number, 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": "…" }
}
/v1/videos/:id/completeCall after the upload finishes. Starts encoding; status becomes processing. Safe to call twice.
/v1/videos/:idReturns 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": "…" }
/v1/videos?limit=50Newest first, up to 200.
/v1/videos/:id/playbackCreate 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).
expiresInSec | optional, 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": "…" }
/v1/videos/:idDeletes the video and all of its files. Existing playback links stop working.
/v1/usageCurrent 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." } }
| 400 | Invalid input |
| 401 | Missing, invalid or revoked API key |
| 404 | Not found (or belongs to another workspace) |
| 409 | Wrong state — e.g. upload missing, or video not ready |
| 413 | File too large |