Get all corporate users
GET/v1/corporates/:id/users
Retrieves a paginated list of corporate users for a specific corporate account. Supports filtering by name, phone, and email.
Request
Path Parameters
Corporate ID
Query Parameters
Possible values: >= 1
Default value: 1
Page number (default: 1)
Possible values: >= 1
Default value: 10
Items per page (default: 10)
Filter by corporate ID
Filter by user name (case-insensitive)
Filter by phone number
Filter by email
Responses
- 200
- 404
List of corporate users retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
The data of the paginated response
The ID of the corporate user
The user ID of the corporate user
The first name of the corporate user
The last name of the corporate user
The user name of the corporate user
The email of the corporate user
The phone of the corporate user
Whether the corporate user is active
The total number of items
The current page
The number of items per page
The total number of pages
{
"data": [
{
"_id": "1234567890",
"userId": "1234567890",
"firstName": "James",
"lastName": "Bond",
"username": "jamesbond",
"email": "jamesbond@goodjourney.io",
"phone": "+1234567890",
"isActive": true
}
],
"total": 100,
"page": 1,
"limit": 10,
"totalPages": 10
}
Corporate not found