Get users
Retrieve all users in an organization.
Permissions
This endpoint is impacted by the following permissions:
- Only users that the authenticated user has the User:GetUserInfo permission for are returned.
Request
- Base URLhttps://api.amigo.ai
- AuthHTTP bearer and API key in header X-ORG-ID and HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
The ID of the user.
The email of the user.
The maximum number of users to retrieve.
The token from the previous request to return the next page of users.
The fields to sort the sets by. Supported fields are first_name, last_name, email, user_stats.num_conversations, user_stats.num_messages, and user_stats.last_message_time. Specify a + before the field name to indicate ascending sorting and - for descending sorting. Multiple fields can be specified to break ties.
Headers
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Response
Succeeded.
Changes
No operation changes recorded.