HTTP Basic Auth is used for the small set of endpoints where Userverse needs to verify your identity before issuing or replacing a JWT token. You do not use Basic Auth for general API calls — only for the entry-point and credential-change endpoints listed below.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SoftwareVerse/userverse/llms.txt
Use this file to discover all available pages before exploring further.
How it works
The HTTP Basic Auth scheme encodes your credentials asusername:password in base64 and sends them in the Authorization request header. Userverse treats your email address as the username and your password as the password.
ada@example.com:s3cr3t encode to:
Endpoints that require Basic Auth
| Method | Path | Purpose |
|---|---|---|
POST | /user/create | Register a new user account |
PATCH | /user/login | Log in and receive a JWT token pair |
PATCH | /password-reset/validate-otp | Validate a one-time PIN and set a new password |
For
PATCH /password-reset/validate-otp, pass your email as the username and your new password as the password. The endpoint also requires the OTP you received by email, passed as the one_time_pin query parameter.Examples
- Create user
- Log in
- Reset password
Register a new account. Pass optional profile fields in the JSON body alongside your Basic Auth credentials.A successful response returns the created user:
Error responses
| Status | Message | Cause |
|---|---|---|
401 Unauthorized | "Invalid credentials" | Missing email, missing password, invalid email format, or wrong password |
401 Unauthorized | "Invalid credentials" | Malformed or missing Authorization header |
Next steps
Once you have an access token fromPATCH /user/login, read the JWT authentication page to learn how to pass it in requests to protected endpoints.