PHPeerTube - A PHP‑based federated video platform, inspired by PeerTube.

Copyright (C) 2025 Lucentinian Works Co Ltd

API example

curl -i -X POST -H "Content-Type: application/json" -d '{"usernameOrEmail": "testuser", "password": "password123"}' http://phpeertube.ehehdada.com/login

Example successful response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "message": "Login successful",
    "accessToken": "eyJ...",
    "refreshToken": "eyJ...",
    "userId": 1
}