POST
/
sandbox
/
directory
import Finch from '@tryfinch/finch-api';

const finch = new Finch();

async function main() {
  const directoryCreateResponse = await finch.sandbox.directory.create({ body: [{}] });

  console.log(directoryCreateResponse);
}

main();
[
  {}
]

Authorizations

Authorization
string
headerrequired

Please use your Access Token

Body

application/json · object[]
first_name
string | null

The legal first name of the individual.

middle_name
string | null

The legal middle name of the individual.

last_name
string | null

The legal last name of the individual.

preferred_name
string | null

The preferred name of the individual.

emails
object[] | null
phone_numbers
array | null
gender
enum<string> | null

The gender of the individual.

Available options:
female,
male,
other,
decline_to_specify,
ethnicity
enum<string> | null

The EEOC-defined ethnicity of the individual.

Available options:
asian,
white,
black_or_african_american,
native_hawaiian_or_pacific_islander,
american_indian_or_alaska_native,
hispanic_or_latino,
two_or_more_races,
decline_to_specify,
dob
string | null
ssn
string | null

Social Security Number of the individual. This field is only available with the ssn scope enabled and the options: { include: ['ssn'] } param set in the body.

encrypted_ssn
string | null

Social Security Number of the individual in encrypted format. This field is only available with the ssn scope enabled and the options: { include: ['ssn'] } param set in the body.

residence
object | null
title
string | null

The current title of the individual.

manager
object | null

The manager object representing the manager of the individual within the org.

department
object | null

The department object.

employment
object | null

The employment object.

start_date
string | null
end_date
string | null
is_active
boolean | null

true if the individual an an active employee or contractor at the company.

class_code
string | null

Worker's compensation classification code for this employee

location
object | null
income
object | null

The employee's income as reported by the provider. This may not always be annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc, depending on what information the provider returns.

income_history
array | null

The array of income history.

custom_fields
object[]

Custom fields for the individual. These are fields which are defined by the employer in the system. Custom fields are not currently supported for assisted connections.

source_id
string

The source system's unique employment identifier for this individual

Response

200 - application/json

The individuals which were created