Employees
Get User Role in Org
Returns one seat of the person with this login email in your org: a live seat first, else the oldest. orgID must be your own org (403 otherwise).
This is the v1 (legacy) API. The current API is in the API reference.
curl --request GET \
--url 'https://app.toku.com/api/tokuApi/v1/getUserRoleInOrg?email=%3Cemail%3E&orgID=%3CorgID%3E' \
--header 'Authorization: Bearer <token>' \
--header 'x-role-type: CLIENT_ORG_ADMIN'{
"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
Query parameters
emailstring<email>requiredLogin email of the person
Allowed: at most 320 characters
orgIDstring<uuid>requiredMust be the token's org
Response
200Role details
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