This guide covers the full company lifecycle: creating a company, fetching and updating its details, and adding or removing members.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 company endpoints require a valid JWT Bearer token. Obtain one by logging in with
PATCH /user/login. See the user management guide.Create a company
Create the company
Send a A successful response returns
POST request to /company with the company details. The authenticated user becomes the company’s owner and is automatically added as a member with the Administrator role.Two default roles are created for every new company:- Administrator — full access to manage users and data.
- Viewer — read-only access to company data.
Company email address. Used as a unique identifier when looking up the company.
Company display name.
Short description of the company.
Industry the company operates in.
Contact phone number, e.g.
1236547899.Optional postal address.
201 Created with the new company record.Add users to the company
Use A successful response returns
POST /company/{company_id}/users to invite existing Userverse users by email. You must specify a role — any role that exists on the company.Email address of the user to add.
Role name to assign. Defaults to
Viewer if omitted.201 Created.Fetch a company
Send aGET request to /company and provide either email or company_id as a query parameter. When both are provided, email takes priority.
200 OK with the company record.
Update a company
Send aPATCH request to /company/{company_id} with the fields you want to change. All fields are optional.
200 OK with the updated company record.
Manage company members
List members
Send aGET request to /company/{company_id}/users to retrieve a paginated list of members.
| Parameter | Type | Description |
|---|---|---|
role_name | string | Filter by role name. |
first_name | string | Filter by user first name. |
last_name | string | Filter by user last name. |
email | string | Filter by user email address. |
role_name field indicating the user’s role in this company.
Add a member
Send aPOST request to /company/{company_id}/users with the user’s email and the role to assign.
Remove a member
Send aDELETE request to /company/{company_id}/user/{user_id} to remove a specific user.
200 OK with the removed user’s record.
Related guides
Roles and permissions
Create and manage custom roles within a company.
User management
Register, log in, and manage user profiles.