Create a person
/partners/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.
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.404An account, position (`jobDetails.title`) or work location was not found.409Two positions share the name in `jobDetails.title`.401Missing or invalid HMAC signature, expired timestamp, or invalid Bearer token. Troubleshoot403The credential does not have access to this workspace or resource. Troubleshoot429Rate limit exceeded (100 requests per minute per user of each app, or 10,000 per minute per app). Retry after the Retry-After header. Troubleshoothttps://api.getcount.com/partners/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 ACCESS_TOKEN = process.env.COUNT_ACCESS_TOKEN;
const method = 'POST';
const signingPath = '/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}/partners/people`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
'Content-Type': 'application/json',
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
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"
}
}
}