Employees

Create User Role in Org

Creates an employee (USER) seat in your organization, or restores the seat of someone removed from it. Use employmentType CONTRACTOR for a contractor. Does not execute an AOR agreement or confirm onboarding/compliance completion. Fails with 409 if the person already has an employee seat. Unknown fields are ignored.

POSThttps://app.toku.com/api/tokuApi/v1/createUserRoleInOrg

This is the v1 (legacy) API. The current API is in the API reference.

Contractor scope#

Use employmentType: CONTRACTOR when creating a contractor role. Creating a role is a platform record operation. It does not by itself create or execute an Agent of Record agreement, return an embedded onboarding session, or confirm completion of KYC, tax, banking or country-specific compliance.

Arrange the applicable contractor onboarding process with Toku. This operation ignores a sendEmailImmediately field.

curl --request POST \
  --url 'https://app.toku.com/api/tokuApi/v1/createUserRoleInOrg' \
  --header 'Authorization: Bearer <token>' \
  --header 'x-role-type: CLIENT_ORG_ADMIN' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jane.smith@example.com",
  "givenName": "Jane",
  "familyName": "Smith",
  "externalEmployeeID": "EMP-001",
  "country": "US",
  "employmentType": "CONTRACTOR",
  "subEmploymentType": "string",
  "department": "string",
  "legalEntity": "string",
  "address": "string",
  "remarks": "string",
  "taxMethod": "NO_TAX",
  "withholdingPercentage": 0,
  "recipientType": "PERSON",
  "baseSalary": 0,
  "baseSalaryCurrency": "string",
  "employeeSyncedSource": "CSV_UPLOAD",
  "isExternalEmployee": true
}'
200 response
{
  "data": {
    "invoiceApproverRoutingUpdatedAt": "2026-01-01T00:00:00Z",
    "legacyMigratedAt": "2026-01-01T00:00:00Z",
    "legacyModelID": 0,
    "roleInOrgID": "660e8400-e29b-41d4-a716-446655440001",
    "personID": "bb0e8400-e29b-41d4-a716-446655440006",
    "orgID": "aa0e8400-e29b-41d4-a716-446655440005",
    "invitedByInvestorID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "invitedByRecipientID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "roleInOrgExternalID": 12345,
    "externalEmployeeID": "EMP-001",
    "positionID": "string",
    "jobTitle": "string",
    "country": "US",
    "countryCode": "USA",
    "preferredInvoiceCurrency": "string",
    "status": "string",
    "lifecycleStatus": "INVITED",
    "workEmail": "string",
    "department": "string",
    "legalEntity": "string",
    "payrollEntity": "string",
    "contractEntityID": "string",
    "onboarded": true,
    "isTerminated": true,
    "privilegedAdmin": true,
    "isPrimaryAdmin": true,
    "isOrgMarketMaker": true,
    "role": "USER",
    "employmentType": "EMPLOYEE",
    "revokedAt": null,
    "createdAt": "2025-12-15T10:30:00.000Z",
    "updatedAt": "2026-01-01T00:00:00Z",
    "payrollEmployeeID": "PAY-12345",
    "hasWelcomeEmailSent": true,
    "subEmploymentType": "string",
    "remarks": "string",
    "isITAdmin": true,
    "isExternalEmployee": true,
    "employeeSyncedSource": "CSV_UPLOAD",
    "investorFullName": "string",
    "baseSalary": "120000",
    "baseSalaryCurrency": "USD",
    "baseSalaryPaymentType": "FIAT",
    "baseSalaryTokenTypeID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "baseSalaryTokenSymbol": "string",
    "baseSalaryTokenNetwork": "string",
    "baseSalaryPeriod": "HOURLY",
    "stablecoinPayPercentage": 0,
    "maxStablecoinPercentage": 0,
    "taxMethod": "NO_TAX",
    "withholdingPercentage": "22",
    "lastLogin": "2026-01-01T00:00:00Z",
    "lastTestTxReminderBy": "string",
    "lastTestTxReminderAt": "2026-01-01T00:00:00Z",
    "payrollFileNumber": "string",
    "externalPayrollId": "string",
    "lastOnboardingReminderBy": "string",
    "lastOnboardingReminderAt": "2026-01-01T00:00:00Z",
    "address": "string",
    "payrollGroup": "string",
    "lastInactiveWalletReminderBy": "string",
    "lastInactiveWalletReminderAt": "2026-01-01T00:00:00Z",
    "recipientType": "PERSON",
    "receiveNotificationEmails": true,
    "receiveInAppNotifications": true,
    "notificationEmailFrequency": "OFF",
    "receiveSlackNotifications": true,
    "selfServeContractorOnboardingStatus": "NOT_STARTED",
    "selfServeContractorOnboardingCompletedAt": "2026-01-01T00:00:00Z",
    "selfServeWelcomeEmailSentAt": "2026-01-01T00:00:00Z",
    "numberOfPayPeriodsPerYear": 0,
    "managerRoleInOrgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "managerPath": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  },
  "error": null
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your API token.

Headers

x-role-typestringrequired

Seat role the token acts as. The token's creator must hold this role in the token's org; TOKU_ADMIN and unknown values are refused with 401. This operation accepts CLIENT_ORG_ADMIN only; other roles get 403.

Available options: CLIENT_ORG_ADMIN

Body

application/json

emailstring<email>required
givenNamestringrequired
familyNamestringrequired
externalEmployeeIDstring
countrystring
employmentTypestring

TGA employment type. Defaults to EMPLOYEE.

Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER

subEmploymentTypestring
departmentstring
legalEntitystring
addressstring
remarksstring
taxMethodstring | null

Available options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD

withholdingPercentagenumber | string

Number or decimal string from 0 to 100.

recipientTypestring | null

Available options: PERSON, ENTITY

baseSalarynumber | string

Number or decimal string.

baseSalaryCurrencystring

Currency code (TaxCurrencyCode), e.g. USD.

employeeSyncedSourcestring

Available options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER

isExternalEmployeeboolean

Response

200User role created
dataobjectrequired

A seat (role) of a person in an organization: the full stored row.

Show child attributes
invoiceApproverRoutingUpdatedAtstring<date-time> | null
legacyMigratedAtstring<date-time> | null
legacyModelIDinteger | null
roleInOrgIDstring<uuid>
personIDstring<uuid>
orgIDstring<uuid>
invitedByInvestorIDstring<uuid> | null
invitedByRecipientIDstring<uuid> | null
roleInOrgExternalIDinteger
externalEmployeeIDstring | null
positionIDstring | null
jobTitlestring | null
countrystring | null
countryCodestring | null

ISO 3166-1 alpha-3 country code.

preferredInvoiceCurrencystring | null
statusstring | null
lifecycleStatusstring | null

Available options: INVITED, ONBOARDING, ACTIVE, OFFBOARDING, TERMINATED, ARCHIVED

workEmailstring | null
departmentstring | null
legalEntitystring | null
payrollEntitystring | null
contractEntityIDstring | null
onboardedboolean
isTerminatedboolean
privilegedAdminboolean
isPrimaryAdminboolean
isOrgMarketMakerboolean
rolestring

Seat role.

Available options: TOKU_ADMIN, CLIENT_ORG_ADMIN, CLIENT_ORG_APPROVER, FINANCE_ADMIN, USER, INVESTOR, SUB_INVESTOR, SUB_RECIPIENT

employmentTypestring | null

TGA employment type.

Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER

revokedAtstring<date-time> | null
createdAtstring<date-time>
updatedAtstring<date-time>
payrollEmployeeIDstring | null
hasWelcomeEmailSentboolean
subEmploymentTypestring | null
remarksstring | null
isITAdminboolean
isExternalEmployeeboolean
employeeSyncedSourcestring | null

Available options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER

investorFullNamestring | null
baseSalarystring | null

Decimal, serialized as a string.

baseSalaryCurrencystring | null

Currency code (TaxCurrencyCode), e.g. USD.

baseSalaryPaymentTypestring

Available options: FIAT, TOKEN

baseSalaryTokenTypeIDstring<uuid> | null
baseSalaryTokenSymbolstring | null
baseSalaryTokenNetworkstring | null
baseSalaryPeriodstring | null

Available options: HOURLY, MONTHLY, YEARLY

stablecoinPayPercentagenumber | null
maxStablecoinPercentagenumber | null
taxMethodstring | null

Available options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD

withholdingPercentagestring | null

Decimal 0-100, serialized as a string.

lastLoginstring<date-time> | null
lastTestTxReminderBystring | null
lastTestTxReminderAtstring<date-time> | null
payrollFileNumberstring | null
externalPayrollIdstring | null
lastOnboardingReminderBystring | null
lastOnboardingReminderAtstring<date-time> | null
addressstring | null
payrollGroupstring | null
lastInactiveWalletReminderBystring | null
lastInactiveWalletReminderAtstring<date-time> | null
recipientTypestring | null

Available options: PERSON, ENTITY

receiveNotificationEmailsboolean
receiveInAppNotificationsboolean
notificationEmailFrequencystring

Available options: OFF, IMMEDIATE, DAILY

receiveSlackNotificationsboolean
selfServeContractorOnboardingStatusstring

Available options: NOT_STARTED, IN_PROGRESS, COMPLETED

selfServeContractorOnboardingCompletedAtstring<date-time> | null
selfServeWelcomeEmailSentAtstring<date-time> | null
numberOfPayPeriodsPerYearinteger
managerRoleInOrgIDstring<uuid> | null
managerPathstring<uuid>[]
errorobject | nullrequired

Always null on success

401The token is missing, invalid or expired
errorstringrequired

What went wrong

403The token's seat doesn't have the permission this operation needs
errorobjectrequired
Show child attributes
messagestringrequired
429Too many requests from this address or token. Wait for the number of seconds in the Retry-After header, then retry.
errorstringrequired

What went wrong

500The operation failed. This includes input that doesn't match what the operation accepts; error.message says what was wrong.
errorobjectrequired
Show child attributes
messagestringrequired
Was this page helpful? Suggest edits