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.

Get user profile

GET /user/get Returns the profile of the currently authenticated user.

Request

Authorization
string
required
JWT Bearer token. Example: Bearer <access_token>

Response

Returns a 200 OK response with the user’s profile.
message
string
Human-readable status message. Example: "User found"
data
object

Error codes

CodeDescription
400Malformed request.
401Missing or invalid Bearer token.
404User not found.
500Internal server error.

Example

curl --request GET \
  --url https://api.example.com/user/get \
  --header 'Authorization: Bearer <access_token>'

Update user profile

PATCH /user/update Updates one or more fields on the authenticated user’s profile. All body fields are optional — only the fields you include will be changed.

Request

Authorization
string
required
JWT Bearer token. Example: Bearer <access_token>
Body
first_name
string
New first name.
last_name
string
New last name.
phone_number
string
New phone number. Example: "1236547899"
password
string
New password.

Response

Returns a 201 Created response with the updated user profile.
message
string
Human-readable status message. Example: "User updated successfully"
data
object

Error codes

CodeDescription
400Malformed request body or validation error.
401Missing or invalid Bearer token.
404User not found.
500Internal server error.

Example

curl --request PATCH \
  --url https://api.example.com/user/update \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "first_name": "Jane",
    "phone_number": "1236547899"
  }'

List user companies

GET /user/companies Returns a paginated list of companies associated with the authenticated user.
This endpoint enforces an account status check. The request will be rejected if the user’s account is not active.

Request

Authorization
string
required
JWT Bearer token. Example: Bearer <access_token>
Query parameters
limit
integer
default:"10"
Number of records to return per page. Minimum 1, maximum 100.
page
integer
default:"1"
Page number to retrieve (1-indexed).
role_name
string
Filter results by the user’s role name within the company.
name
string
Filter results by company name.
description
string
Filter results by company description.
industry
string
Filter results by industry.
email
string
Filter results by company email address.

Response

Returns a 200 OK response with a paginated list of companies.
message
string
Human-readable status message.
data
object

Error codes

CodeDescription
400Malformed request or validation error.
401Missing or invalid Bearer token.
403Account is not active.
404User not found.
500Internal server error.

Example

curl --request GET \
  --url 'https://api.example.com/user/companies?page=1&limit=10&industry=Technology' \
  --header 'Authorization: Bearer <access_token>'

Build docs developers (and LLMs) love