v20

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-271727149.6 KB
Workers

Create a new contractor. The worker will be created in draft status and must be invited separately via the invite endpoint. For business contractors, the businessName field is required.

post/v1/workers/contractor

Request body

entityType'individual' | 'business' required

Whether the contractor is an individual person or a business entity.

firstNamestring required

a string with no leading or trailing whitespace

lastNamestring required

a string with no leading or trailing whitespace

positionstring required

a string with no leading or trailing whitespace

businessNamestring

a string with no leading or trailing whitespace

scopeOfWorkstring nullable

A description of the work the contractor will perform.

startDatestring required

A date string in the form YYYY-MM-DD

emailstring required

Personal email address. The invite will be sent here.

workEmailstring nullable

An email with a reasonably valid regex (shamelessly taken from zod)

departmentIdstring required

The department to assign this contractor to.

managerIdstring required

The worker id of this contractor's direct manager.

workCountry'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' required
paySchedule'weekly' | 'biweekly' | 'monthly' | 'semimonthly' | 'quarterly' | 'annually' nullable

The contractor's pay schedule. Must be a pay schedule that the company has configured.

Example request

{
  "scopeOfWork": "Frontend development for the customer dashboard",
  "startDate": "2000-01-01",
  "email": "john@joinwarp.com",
  "workEmail": "john@joinwarp.com",
  "departmentId": "dpt_1234",
  "managerId": "wrk_1234"
}

Response

Success

idstring required

The id of the worker.

positionstring required
type'employee' | 'contractor' required
status'draft' | 'invited' | 'onboarding' | 'active' | 'offboarding' | 'inactive' required
startDatestring required

A date string in the form YYYY-MM-DD

endDatestring nullable required

A date string in the form YYYY-MM-DD

isBusinessboolean nullable required
businessNamestring nullable required
firstNamestring required
lastNamestring required
emailstring required

An email with a reasonably valid regex (shamelessly taken from zod)

workEmailstring nullable required

An email with a reasonably valid regex (shamelessly taken from zod)

preferredNamestring nullable required
displayNamestring required

The "ui" name of a worker. If it's a business contractor business name is used. Otherwise we default to preferred name, then first-last.

timeZonestring nullable required

The IANA timezone of the worker (e.g., America/New_York).

Example response

{
  "id": "wrk_1234",
  "position": "Research Engineer",
  "startDate": "2000-01-01",
  "endDate": "2000-01-01",
  "firstName": "Jonathan",
  "lastName": "Galt",
  "email": "john@joinwarp.com",
  "workEmail": "john@joinwarp.com",
  "preferredName": "John",
  "displayName": "Jack Galt",
  "timeZone": "America/New_York",
  "department": {
    "id": "dpt_1234",
    "name": "Engineering"
  }
}