Skip to main content

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.

Log in

PATCH /user/login Authenticates a user and returns a JWT access token and refresh token pair.
This endpoint uses HTTP Basic Auth. Provide the user’s email as the username and their password as the password.

Request

No request body is required. Credentials are passed via the Authorization header.
Authorization
string
required
Basic Auth credentials encoded as Base64(email:password). Example: Basic dXNlckBleGFtcGxlLmNvbTpwYXNzd29yZA==

Response

Returns a 202 Accepted response with a token payload on success.
message
string
Human-readable status message. Example: "User logged in successfully"
data
object

Error codes

CodeDescription
400Malformed request or missing credentials.
401Invalid email or password.
404No account found for the provided email.
500Internal server error.

Example

curl --request PATCH \
  --url https://api.example.com/user/login \
  --header 'Authorization: Basic dXNlckBleGFtcGxlLmNvbTpwYXNzd29yZA=='

Create a user

POST /user/create Creates a new user account. Credentials are supplied via Basic Auth and additional profile fields are provided in the request body.
This endpoint uses HTTP Basic Auth. Provide the new user’s email as the username and their desired password as the password.

Request

Authorization
string
required
Basic Auth credentials encoded as Base64(email:password). The email and password become the new user’s login credentials.
Body
first_name
string
User’s first name.
last_name
string
User’s last name.
phone_number
string
User’s phone number. Example: "1236547899"

Response

Returns a 201 Created response with the new user’s profile on success.
message
string
Human-readable status message. Example: "User created successfully"
data
object

Error codes

CodeDescription
400Malformed request body or validation error.
401Missing or invalid Basic Auth credentials.
404Resource not found.
500Internal server error.

Example

curl --request POST \
  --url https://api.example.com/user/create \
  --header 'Authorization: Basic dXNlckBleGFtcGxlLmNvbTpwYXNzd29yZA==' \
  --header 'Content-Type: application/json' \
  --data '{
    "first_name": "Jane",
    "last_name": "Doe",
    "phone_number": "1236547899"
  }'

Build docs developers (and LLMs) love