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.
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
}'{
"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
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your API token.
Headers
x-role-typestringrequiredSeat 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>requiredgivenNamestringrequiredfamilyNamestringrequiredexternalEmployeeIDstringcountrystringemploymentTypestringTGA employment type. Defaults to EMPLOYEE.
Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER
subEmploymentTypestringdepartmentstringlegalEntitystringaddressstringremarksstringtaxMethodstring | nullAvailable options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD
withholdingPercentagenumber | stringNumber or decimal string from 0 to 100.
recipientTypestring | nullAvailable options: PERSON, ENTITY
baseSalarynumber | stringNumber or decimal string.
baseSalaryCurrencystringCurrency code (TaxCurrencyCode), e.g. USD.
employeeSyncedSourcestringAvailable options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER
isExternalEmployeebooleanResponse
200User role created
dataobjectrequiredA seat (role) of a person in an organization: the full stored row.
Show child attributes
invoiceApproverRoutingUpdatedAtstring<date-time> | nulllegacyMigratedAtstring<date-time> | nulllegacyModelIDinteger | nullroleInOrgIDstring<uuid>personIDstring<uuid>orgIDstring<uuid>invitedByInvestorIDstring<uuid> | nullinvitedByRecipientIDstring<uuid> | nullroleInOrgExternalIDintegerexternalEmployeeIDstring | nullpositionIDstring | nulljobTitlestring | nullcountrystring | nullcountryCodestring | nullISO 3166-1 alpha-3 country code.
preferredInvoiceCurrencystring | nullstatusstring | nulllifecycleStatusstring | nullAvailable options: INVITED, ONBOARDING, ACTIVE, OFFBOARDING, TERMINATED, ARCHIVED
workEmailstring | nulldepartmentstring | nulllegalEntitystring | nullpayrollEntitystring | nullcontractEntityIDstring | nullonboardedbooleanisTerminatedbooleanprivilegedAdminbooleanisPrimaryAdminbooleanisOrgMarketMakerbooleanrolestringSeat role.
Available options: TOKU_ADMIN, CLIENT_ORG_ADMIN, CLIENT_ORG_APPROVER, FINANCE_ADMIN, USER, INVESTOR, SUB_INVESTOR, SUB_RECIPIENT
employmentTypestring | nullTGA employment type.
Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER
revokedAtstring<date-time> | nullcreatedAtstring<date-time>updatedAtstring<date-time>payrollEmployeeIDstring | nullhasWelcomeEmailSentbooleansubEmploymentTypestring | nullremarksstring | nullisITAdminbooleanisExternalEmployeebooleanemployeeSyncedSourcestring | nullAvailable options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER
investorFullNamestring | nullbaseSalarystring | nullDecimal, serialized as a string.
baseSalaryCurrencystring | nullCurrency code (TaxCurrencyCode), e.g. USD.
baseSalaryPaymentTypestringAvailable options: FIAT, TOKEN
baseSalaryTokenTypeIDstring<uuid> | nullbaseSalaryTokenSymbolstring | nullbaseSalaryTokenNetworkstring | nullbaseSalaryPeriodstring | nullAvailable options: HOURLY, MONTHLY, YEARLY
stablecoinPayPercentagenumber | nullmaxStablecoinPercentagenumber | nulltaxMethodstring | nullAvailable options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD
withholdingPercentagestring | nullDecimal 0-100, serialized as a string.
lastLoginstring<date-time> | nulllastTestTxReminderBystring | nulllastTestTxReminderAtstring<date-time> | nullpayrollFileNumberstring | nullexternalPayrollIdstring | nulllastOnboardingReminderBystring | nulllastOnboardingReminderAtstring<date-time> | nulladdressstring | nullpayrollGroupstring | nulllastInactiveWalletReminderBystring | nulllastInactiveWalletReminderAtstring<date-time> | nullrecipientTypestring | nullAvailable options: PERSON, ENTITY
receiveNotificationEmailsbooleanreceiveInAppNotificationsbooleannotificationEmailFrequencystringAvailable options: OFF, IMMEDIATE, DAILY
receiveSlackNotificationsbooleanselfServeContractorOnboardingStatusstringAvailable options: NOT_STARTED, IN_PROGRESS, COMPLETED
selfServeContractorOnboardingCompletedAtstring<date-time> | nullselfServeWelcomeEmailSentAtstring<date-time> | nullnumberOfPayPeriodsPerYearintegermanagerRoleInOrgIDstring<uuid> | nullmanagerPathstring<uuid>[]errorobject | nullrequiredAlways null on success
401The token is missing, invalid or expired
errorstringrequiredWhat went wrong
403The token's seat doesn't have the permission this operation needs
errorobjectrequiredShow child attributes
messagestringrequired429Too many requests from this address or token. Wait for the number of seconds in the Retry-After header, then retry.
errorstringrequiredWhat went wrong
500The operation failed. This includes input that doesn't match what the operation accepts; error.message says what was wrong.
errorobjectrequiredShow child attributes
messagestringrequired