User List
This method retrieves a list of users who are participants of the specified project
Request Parameters
GET /api/clients/v1/users/
Headers
- Content-Type: application/json
- Authorization: Bearer
$access_token
Query
| Parameter | Type | Constraints | Description | Example |
|---|---|---|---|---|
| project_id | integer | > 0, required | Project ID | 2 |
Response Parameters
Examples
200 OK
List of users
[
{
"id": 22,
"email": "user1@example.com",
"phone": "+79998887766"
},
{
"id": 23,
"email": "user2@example.com",
"phone": "+79998887765"
}
]
400 Bad Request
Invalid or missing required query parameters
{
"project_id": [
"This field is required."
]
}
401 Unauthorized
Authentication credentials were missing or invalid
{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden
Only participants of the current user's project are available
{
"detail": "Only project participants can view other participants"
}