ViewTube API

REST API reference. All endpoints accept and return application/json unless noted. = requires login session.

Base URL

https://your-app.replit.app

Authentication

Login via POST /api/auth/login with -c cookies.txt (curl) or credentials: "include" (fetch). The session cookie is automatically sent on all subsequent requests.
AI-Ready Formats
NEW

This API ships machine-readable specs so any AI assistant or tool can understand and call it correctly — no manual reading required.

Authentication

4 endpoints

Video Upload

3 endpoints

Videos

10 endpoints

Channels

4 endpoints

Creator Studio

2 endpoints

Media Proxy

1 endpoint
ViewTube API — All times are UTC · Responses use camelCase JSON