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).

GEThttps://app.toku.com/api/tokuApi/v1/getUserRoleInOrg

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'
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

Query parameters

emailstring<email>required

Login email of the person

Allowed: at most 320 characters

orgIDstring<uuid>required

Must be the token's org

Response

200Role details
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