Company Users

Retrieve users associated with a company

get

Fetches a list of users associated with the specified company. Supports pagination and optional retrieval of only user IDs.

Query parameters
company_idintegerRequired

The ID of the company for which to retrieve users.

Example: 98765
limitintegerOptional

The number of users to retrieve per page.

Example: 10
pageintegerOptional

The page number to retrieve.

Example: 1
only_idsbooleanOptional

Flag to indicate if only user IDs should be returned.

Example: false
Responses
200

A list of users or user IDs associated with the company.

application/json
Responseone of
or
integer[]Optional
get
/company/users
200

A list of users or user IDs associated with the company.

get

Searches for users in a company based on a query string. Supports limiting the number of results returned.

Query parameters
company_idintegerRequired

The ID of the company in which to search for users.

Example: 385
querystringRequired

The search query to use for finding users.

Example: John
limitintegerOptional

The maximum number of users to return.

Example: 10
Responses
200

A successful response with the list of users matching the search query.

application/json
get
/company/users/search
200

A successful response with the list of users matching the search query.

Get Users and Roles

get

Retrieves a list of users and their associated roles for a specified company.

Body
company_idintegerRequired

The ID of the company to retrieve users and roles for.

Example: 385
Responses
200

List of users and their roles

application/json
get
/company/users/roles
200

List of users and their roles

Update User Roles

put

Updates the roles for a specific user within a company. If the user does not exist, they will be created and invited.

Body
company_idintegerRequired

The ID of the company.

Example: 385
user_idintegerOptional

The ID of the user. Required if user_email is not provided.

Example: 12345
user_emailstringOptional

The email of the user. Required if user_id is not provided.

Example: [email protected]
rolesstring[]Required

Array of roles to assign to the user.

Example: admin
Responses
200

Updated list of users and their roles

application/json
put
/company/users/roles
200

Updated list of users and their roles

Delete User Roles

delete

Removes all roles from a specified user within a company.

Body
company_idintegerRequired

The ID of the company.

Example: 385
user_idintegerRequired

The ID of the user.

Example: 12345
Responses
200

Updated list of users and their roles

application/json
delete
/company/users/roles
200

Updated list of users and their roles

Last updated