API overview
The Vidopix UI calls a set of JSON and multipart APIs. This section documents the same endpoints used by the web app inai-emotion-ui/src.
Base URL
All endpoints are relative to the environment base URL:VITE_BASE_URL(front-end environment variable)
Authentication
- Most endpoints require an
access_tokenheader. - Tokens are refreshed via
PATCH /auth/refresh-tokenwhen a 401 occurs. - Auth endpoints are public (
/auth/login,/auth/sign-up).
Content types
- JSON requests use
Content-Type: application/json. - Uploads (videos, surveys) use
multipart/form-data.
Common responses
401 Unauthorizedtriggers a refresh token flow.403 Forbiddenreturns when the user lacks access to a plan or asset.429or5xxmay appear during high load or long-running analysis.
[email protected].