List firm members
GET
/firm-partners/firm/membersLists the people on the firm’s team and their roles.
`id` is the membership UUID; `user.id` is the person’s user UUID, which is what `assigneeUuid` on firm tasks takes. Suspended members are included. Not paginated. Needs the `firm:read` scope.
HMAC signature only
Responses
200The firm’s members.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The API key is inactive, its scope does not cover this route, or it is limited to selected client workspaces and the route is firm-wide. Troubleshoot429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). TroubleshootGET
https://api.getcount.com/firm-partners/firm/membersRequest
import crypto from 'node:crypto';
const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const method = 'GET';
const signingPath = '/firm/members';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';
const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');
const response = await fetch(`${BASE_URL}/firm-partners/firm/members`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
},
});
console.log(await response.json());Response · 200
{
"status": "success",
"message": "Success on fetching firm members.",
"data": {
"members": [
{
"id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
"role": "owner",
"user": {
"id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
"firstName": "Dana",
"lastName": "Okafor",
"email": "dana@northwind.example"
}
}
]
}
}