Authentication API¶
Login¶
Authenticates via HTTP Basic Auth and returns a session cookie.
Headers: Authorization: Basic base64(username:password)
Response: 200 OK with Set-Cookie: sessionid=...
curl -X POST "http://localhost:3005/api/2/auth/myuser/login.json" \
-H "Authorization: Basic $(echo -n myuser:mypass | base64)" \
-c cookies.txt
Logout¶
Invalidates the session cookie.
Register¶
Create a new account. Behavior depends on the registration mode:
open: always succeedsclosed: returns 403invite: requires email, sends activation link
Body:
Response:
Or for invite mode:
Note
If no active users exist, registration always succeeds and the first user becomes admin.
Current user info¶
Returns info about the authenticated user.
Response:
Change password¶
Body:
SSO users can omit old_password.
Password reset (request)¶
Body: {"email": "user@example.com"}
Always returns 200 (anti-enumeration). Sends email if account exists and SMTP is configured.
Password reset (confirm)¶
Body: {"token": "uuid-from-email", "new_password": "newpass123"}
HTTPS upgrades¶
Lists subscriptions that have an HTTPS alternative available.
Response:
[
{
"http_url": "http://example.com/feed.xml",
"https_url": "https://example.com/feed.xml",
"title": "My Podcast"
}
]