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.

All endpoints require a valid JWT Bearer token in the Authorization header.

List company members

Returns a paginated list of all users who belong to a specific company. Supports filtering by role, name, and email.
GET /company/{company_id}/users

Path parameters

company_id
integer
required
The ID of the company whose members you want to retrieve.

Query parameters

page
integer
default:"1"
Page number to retrieve. Must be 1 or greater.
limit
integer
default:"10"
Number of records per page. Accepted range: 1100.
role_name
string
Filter results to members with this role name.
first_name
string
Filter results by user first name.
last_name
string
Filter results by user last name.
email
string
Filter results by user email address.

Response fields

message
string
Human-readable confirmation message.
data
object
Paginated response wrapper.

Error codes

StatusDescription
400The request contains invalid query parameters.
404No company found with the given company_id.
500An unexpected server error occurred.

Example

curl --request GET \
  --url 'https://api.example.com/company/42/users?page=1&limit=20&role_name=Viewer' \
  --header 'Authorization: Bearer <token>'

Add a member

Adds an existing user to a company and assigns them a role.
POST /company/{company_id}/users

Path parameters

company_id
integer
required
The ID of the company to add the user to.

Request body

email
string
required
Email address of the user to add. Example: "user.one@email.com".
role
string
default:"Viewer"
Name of the role to assign to the user within the company. Defaults to "Viewer" if not specified.

Response fields

message
string
Human-readable confirmation message.
data
object
The updated company record.

Error codes

StatusDescription
400The user is already a member of this company, or the request body is invalid.
500An unexpected server error occurred.

Example

curl --request POST \
  --url https://api.example.com/company/42/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "user.one@email.com",
    "role": "Administrator"
  }'

Remove a member

Removes a user from a company. The user’s account is not deleted.
DELETE /company/{company_id}/user/{user_id}
This action cannot be undone. The user will lose all access to the company immediately. Superadmin users cannot be removed.

Path parameters

company_id
integer
required
The ID of the company to remove the user from.
user_id
integer
required
The ID of the user to remove.

Response fields

message
string
Human-readable confirmation message.
data
object
The removed user’s membership record.

Error codes

StatusDescription
400The user is not a member of this company, or the user is a superadmin.
500An unexpected server error occurred.

Example

curl --request DELETE \
  --url https://api.example.com/company/42/user/7 \
  --header 'Authorization: Bearer <token>'

Build docs developers (and LLMs) love