Authentication
Sign up, sign in, and sign out with email and password.
Sign up with email and password
/api/auth/sign-up/emailRegister a new user with email and password. With the username plugin enabled,
an optional username field is accepted (max 30 characters, admin is blocked).
Request Body
application/jsonstring <email>·max 254Email address. The 254-character bound is the RFC 5321 maximum.
string <password>·min 1·max 256Account password. The bound below is a documented request bound rather than a server-enforced limit.
string·min 1·max 256Human-readable account name. Documented request bound, not enforced by server-side validation.
Responses
Request Body
application/jsonstring <email>·max 254Email address. The 254-character bound is the RFC 5321 maximum.
Responses
Sign in with username and password
/api/auth/sign-in/usernameProvided by the username plugin. Behaves like sign-in with email, but identifies the user by username.
Request Body
application/jsonstring·min 1·max 30Username. The 30-character maximum is enforced by the username plugin
(maxUsernameLength: 30). The value admin is rejected.
Responses
Sign out and invalidate session
/api/auth/sign-outInvalidate the current session. Requires a session cookie or Bearer token.
This operation takes no request body.