> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.whizcozy.com/api-reference/whiz-board-api/firms/list-clients-api-v-1-firms-firm-slug-clients-get/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.whizcozy.com/_mcp/server. # List Clients GET https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/{firm_slug}/clients List client members for a firm with upload summary fields. Requires that the authenticated user is a member of the firm. Reference: https://docs.whizcozy.com/api-reference/whiz-board-api/firms/list-clients-api-v-1-firms-firm-slug-clients-get ## Authentication - `Authorization` header (required) — API Key authentication via header ## Request ### Path parameters - `firm_slug` (string, required) ### Query parameters - `page` (integer, optional, default: 1) - `page_size` (integer, optional, default: 20) - `search` (string, optional, nullable) — Search by client name - `sort` (list of string, optional, default: ["priority:desc","last_file_modified:desc"]) — Multi-sort as repeated values or comma-separated values. Allowed fields: name, priority, last_file_modified, completed_files_uploaded_count, user_id, member_id. Example: sort=priority:desc,last_file_modified:desc - `label_ids` (list of integer, optional, default: []) — Filter by label ids. Repeat label_ids or pass multiple values. - `label_match` (enum, optional, default: any) - Allowed values: `any`, `all` ## Response ### 200 Successful Response - `data` (ClientListResponse, required) - `status` (string, optional, default: success) ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### ClientListResponse - `items` (list of ClientListItem, required) - `page` (integer, required) - `page_size` (integer, required) - `total` (integer, required) - `total_pages` (integer, required) ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### ClientListItem - `name` (string, required, nullable) - `last_file_modified_at` (datetime, required, nullable) - `priority` (enum, required) — Priority assigned to a firm membership. - Allowed values: `LOW`, `NORMAL`, `HIGH`, `CRITICAL` - `user_id` (integer, required) - `member_id` (integer, required) - `completed_files_uploaded_count` (integer, required) - `labels` (list of LabelResponse, optional) ### ValidationErrorLocItems ### ValidationErrorCtx ### LabelResponse - `id` (integer, required) - `label` (string, required) - `color` (string, required) - `created_at` (datetime, optional, nullable) - `updated_at` (datetime, optional, nullable) ## Examples **Response** ```json { "data": { "items": [ { "name": "string", "last_file_modified_at": "2024-01-15T09:30:00Z", "priority": "LOW", "user_id": 1, "member_id": 1, "completed_files_uploaded_count": 1, "labels": [ { "id": 1, "label": "string", "color": "string", "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z" } ] } ], "page": 1, "page_size": 1, "total": 1, "total_pages": 1 }, "status": "success" } ``` **SDK Code** ```python import requests url = "https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients" headers = {"Authorization": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients'; const options = {method: 'GET', headers: {Authorization: ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = '' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients") .header("Authorization", "") .asString(); ``` ```php request('GET', 'https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients', [ 'headers' => [ 'Authorization' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", ""); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://prod-whizboard-be-680473615767.asia-southeast1.run.app/api/v1/firms/firm_slug/clients")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```