Create a person
/firm-partners/workspace/peopleCreates a person, optionally with a primary job and expense reporting accounts.
Giving the person a role that signs in (`time tracking`, `sales rep`, `expense reporting`) needs an email address. Bank accounts (`externalAccounts`), a tax identification number (`taxInfo.taxNumber`) and the `payroll` role are refused with 400.
Headers
count-workspace-iduuidrequiredUUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.
Request body
typeenumKind of person.
One of: Employee, Contractor, Volunteer, Donor, Other
firstNamestringFirst name.
middleNamestringMiddle name.
lastNamestringLast name.
emailstringEmail address.
phonestringPhone number.
employeeNumberstringYour own number for the person.
rolearrayAny of `time tracking`, `sales rep`, `expense reporting`. `payroll` is refused.
accountUuidsarrayUp to 200 transacting account UUIDs (`isPhysicalAccount: true` in List accounts) the person spends from as an expense reporter. Any other account is refused with 400.
sendEmailbooleanEmail the person their sign-in invite.
addressobjectHome address: `street`, `street2`, `city`, `state`, `zipCode`, `country`.
jobDetailsobjectThe person's primary job, with the fields of Create a job.
titlestringThe name of an existing position in the workspace, matched without regard to case. The job takes that position. Required on create.
ratestringWage, zero or more. Required on create.
paymentUnitstringWhat the rate is paid per, for example `hour`. Required on create.
compensationTypeenumRequired on create.
One of: hourly, salary, commission
hireDatedateFirst day in the job (YYYY-MM-DD).
employmentStatusenumEmployment status.
One of: full_time, part_time, seasonal, variable
jobLocationTypestringWhere the job is worked, for example `office` or `remote`.
locationUuiduuidWork location UUID, the `location.id` on one of the workspace's jobs; null clears it. A location from another workspace returns 404.
flsaStatusstringFLSA status.
paymentMethodenumHow the job is paid.
One of: direct_deposit, check
overtimeEligiblebooleanWhether the job earns overtime.
primarybooleanWhether this is the person's primary job. A person has one.
notesstringNotes.
Responses
201The new person.400Validation failed; a role that signs in without an email; `externalAccounts`, `taxInfo.taxNumber` or the `payroll` role sent; `accountIDs` sent instead of `accountUuids`; or an account that is not a transacting account.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. Troubleshoot404An account, position (`jobDetails.title`) or work location was not found.409Two positions share the name in `jobDetails.title`.429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). Troubleshoothttps://api.getcount.com/firm-partners/workspace/peopleimport 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 = 'POST';
const signingPath = '/workspace/people';
const timestamp = Math.floor(Date.now() / 1000).toString();
const body = {
"type": "Employee",
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@acme.com",
"role": [
"time tracking"
],
"sendEmail": true,
"jobDetails": {
"title": "Barista",
"rate": "25",
"paymentUnit": "hour",
"compensationType": "hourly",
"hireDate": "2026-11-01"
}
};
const bodyString = JSON.stringify(body);
const bodyHash = crypto.createHash('sha256').update(bodyString).digest('hex');
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/workspace/people`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
'Content-Type': 'application/json',
'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
},
body: bodyString,
});
console.log(await response.json());{
"status": "success",
"message": "Success on creating a person",
"data": {
"people": {
"id": "f1a2b3c4-d5e6-4789-a012-3456789abcde",
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@acme.com",
"phone": "+19876543210",
"type": "Employee",
"enabled": true,
"terminated": false,
"role": [
"time tracking"
],
"position": "Barista",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-28T14:22:30.000Z"
}
}
}