Grants
Get Employee Grants
Returns all grants (any status, oldest grant date first) for one employee seat that is not revoked. Provide payrollEmployeeID or externalEmployeeID. No match returns 'No active employee found' (HTTP 500).
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/getEmployeeGrants' \
--header 'Authorization: Bearer <token>' \
--header 'x-role-type: CLIENT_ORG_ADMIN'{
"data": [
{
"grantID": "550e8400-e29b-41d4-a716-446655440000",
"grantName": "Q1 2026 Token Grant",
"grantDescription": "Annual token compensation",
"grantStatus": "ACCEPTED",
"grantAmount": 50000,
"grantAmountInFiat": 25000,
"pricePerUnit": 0.5,
"pricePerUnitCurrencyCode": "USD",
"grantDate": "2025-12-15T00:00:00.000Z",
"vestingStartDate": "2026-01-01T00:00:00.000Z",
"vestingFrequencyType": "MONTHLY",
"vestingCliffPercentage": 25,
"vestingCliffPeriods": 12,
"vestingPeriods": 48,
"terminationDate": null,
"futureTerminationDate": null,
"tags": [
"engineering"
]
}
],
"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
payrollEmployeeIDstringPayroll identifier. Takes precedence when both are provided.
externalEmployeeIDstringExternal HRIS identifier. At least one ID is required.
Response
200Employee grants
dataobject[]requiredShow child attributes
grantIDstring<uuid>grantNamestringgrantDescriptionstring | nullgrantStatusstringgrantAmountnumbergrantAmountInFiatnumber | nullpricePerUnitnumber | nullpricePerUnitCurrencyCodestring | nullgrantDatestring<date-time> | nullvestingStartDatestring<date-time> | nullvestingFrequencyTypestring | nullvestingCliffPercentagenumber | nullvestingCliffPeriodsinteger | nullvestingPeriodsnumber | nullterminationDatestring<date-time> | nullfutureTerminationDatestring<date-time> | nulltagsstring[]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