π Vibie REST API Reference
The Vibie backend exposes a FastAPI REST API for authentication, funnel management, video assets, and webhook processing.
π Authentication & Session Tokens
Vibie uses Dual JWT Tokens:
- Access Token: 15-minute expiration (transmitted via
Authorization: Bearer <token>). - Refresh Token: 7-day expiration (rotated upon refresh).
Endpoints:
POST /api/v1/auth/loginβ Authenticate and receive dual tokens.POST /api/v1/auth/registerβ Create a new creator account & default organization.POST /api/v1/auth/refreshβ Exchange a valid refresh token for a new access/refresh pair.POST /api/v1/auth/logoutβ Revoke tokens and add JTI to the Redis blacklist.GET /api/v1/auth/meβ Get current user profile and active organization context.
π¬ Custom Video & Embed SDK Endpoints
Protected (Creator Access):
GET /api/v1/videos/?org_id={org_id}β List organizationβs video assets.POST /api/v1/videos/?org_id={org_id}β Create a new video asset.GET /api/v1/videos/{video_id}β Retrieve video asset details.PATCH /api/v1/videos/{video_id}β Update video metadata, aspect ratio, CTA, or lead capture.DELETE /api/v1/videos/{video_id}β Delete a video asset.
Public (SDK & Standalone Viewer):
GET /api/v1/videos/public/{video_id}β Public metadata for SDK rendering (increments view count).POST /api/v1/videos/public/{video_id}/clickβ Track CTA button clicks.POST /api/v1/videos/public/{video_id}/leadβ In-video lead capture form submissions.
β‘ Media & Webhook Endpoints
POST /api/v1/media/direct-uploadβ Generate Cloudflare Stream TUS direct upload URL.POST /api/v1/media/cloudflare-webhookβ Cloudflare Stream encoding completion webhook.
