List Clients
Get a paginated list of clients associated with a project.
Endpoint
/api/v1/projects/{project_id}/clientsMethod
GET
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Unique ID of the project |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer access token: Bearer <access_token> |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_num | integer | No | Page number (default: 1) |
page_size | integer | No | Results per page (default: 10) |
sort_by | string | No | Field name to sort by. Option:
|
sort_dir | string | No | Sort direction. Option:
|
search | string | No | Search keyword for client name |
is_active | boolean | No | Filter by active status |
Required Permission
clients:read
Examples
curl --request GET \
--url https://auth.roled.id/api/v1/projects/2JUSLUee46xG6iEwG8JwPc/clients \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJo...'Error Codes
| Code | HTTP Status | Description |
|---|---|---|
invalid_authorization_token | 401 | Missing or invalid authorization token |
insufficient_permission | 403 | Insufficient permission |
project_not_found | 404 | Project not found |
system_error | 500 | Internal server error |