Profile API
This page covers the current signed-in user's profile and preferences. Broader user-management workflows are intentionally not documented in the public API reference.
Get profile
http
GET /api/auth/me
Authorization: Bearer <token>bash
curl -sS \
-H "Authorization: Bearer $OMNILUX_TOKEN" \
"http://your-server:4000/api/auth/me"Response:
json
{
"id": 1,
"username": "your-username",
"role": "user",
"preferences": {
"defaultQuality": "original",
"defaultSubtitleLanguage": "en",
"defaultAudioLanguage": "en",
"theme": "dark"
},
"createdAt": "2024-01-01T00:00:00Z"
}Update preferences
http
PUT /api/auth/me/preferences
Authorization: Bearer <token>
Content-Type: application/json
{
"defaultQuality": "1080p",
"defaultSubtitleLanguage": "es",
"theme": "dark"
}bash
curl -sS \
-X PUT \
-H "Authorization: Bearer $OMNILUX_TOKEN" \
-H "Content-Type: application/json" \
--data @- \
"http://your-server:4000/api/auth/me/preferences" <<'EOF'
{
"defaultQuality": "1080p",
"defaultSubtitleLanguage": "es",
"theme": "dark"
}
EOFResponse:
json
{
"saved": true
}