PeopleCreate a person

Create a person

POST/firm-partners/workspace/people

Creates 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.

HMAC signature only

Headers

count-workspace-iduuidrequired

UUID 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

typeenum

Kind of person.

One of: Employee, Contractor, Volunteer, Donor, Other

firstNamestring

First name.

middleNamestring

Middle name.

lastNamestring

Last name.

emailstring

Email address.

phonestring

Phone number.

employeeNumberstring

Your own number for the person.

rolearray

Any of `time tracking`, `sales rep`, `expense reporting`. `payroll` is refused.

accountUuidsarray

Up 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.

sendEmailboolean

Email the person their sign-in invite.

addressobject

Home address: `street`, `street2`, `city`, `state`, `zipCode`, `country`.

jobDetailsobject

The person's primary job, with the fields of Create a job.

titlestring

The name of an existing position in the workspace, matched without regard to case. The job takes that position. Required on create.

ratestring

Wage, zero or more. Required on create.

paymentUnitstring

What the rate is paid per, for example `hour`. Required on create.

compensationTypeenum

Required on create.

One of: hourly, salary, commission

hireDatedate

First day in the job (YYYY-MM-DD).

employmentStatusenum

Employment status.

One of: full_time, part_time, seasonal, variable

jobLocationTypestring

Where the job is worked, for example `office` or `remote`.

locationUuiduuid

Work location UUID, the `location.id` on one of the workspace's jobs; null clears it. A location from another workspace returns 404.

flsaStatusstring

FLSA status.

paymentMethodenum

How the job is paid.

One of: direct_deposit, check

overtimeEligibleboolean

Whether the job earns overtime.

primaryboolean

Whether this is the person's primary job. A person has one.

notesstring

Notes.

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. Troubleshoot
403The 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. Troubleshoot
404An 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). Troubleshoot
POSThttps://api.getcount.com/firm-partners/workspace/people
Request
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 = '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());
Response · 201
{
  "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"
    }
  }
}