Grants
Add Single Grant
Creates an accepted token grant for an existing recipient and generates its vesting schedule. Needs the Token Grants module. Unknown body fields are refused.
This is the v1 (legacy) API. The current API is in the API reference.
curl --request POST \
--url 'https://app.toku.com/api/tokuApi/v1/addSingleGrant' \
--header 'Authorization: Bearer <token>' \
--header 'x-role-type: CLIENT_ORG_ADMIN' \
--header 'Content-Type: application/json' \
--data '{
"grantName": "Q1 2026 Token Grant - Jane Smith",
"grantDescription": "Annual token compensation",
"grantConfigurationID": "770e8400-e29b-41d4-a716-446655440002",
"grantAmount": 50000,
"grantAmountInFiat": 0,
"tokenTypeID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"pricePerUnit": 0,
"fmvPerUnit": 0,
"pricePerUnitCurrencyCode": "string",
"scheduleStringOverride": "string",
"vestingStartDate": "2026-01-01T00:00:00.000Z",
"vestingFrequencyType": "MONTHLY",
"vestingCliffPercentage": 25,
"vestingCliffPeriods": 12,
"vestingPeriods": 48,
"lockup": 0,
"recipientID": "660e8400-e29b-41d4-a716-446655440001",
"isSection83bElectionEligible": true,
"isTaxable": true,
"offPlatformDate": "2026-01-01T00:00:00Z",
"tags": [
"engineering"
],
"grantDate": "2025-12-15T00:00:00.000Z",
"autoVesting": true,
"isCashCompensation": true,
"grantAssetType": "TOKEN",
"grantTemplateID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'{
"data": {
"grantID": "550e8400-e29b-41d4-a716-446655440000"
},
"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
grantNamestringrequiredAllowed: 1 to 500 characters
grantDescriptionstringrequiredMay be empty.
Allowed: at most 10000 characters
grantConfigurationIDstring<uuid>requiredgrantAmountnumberrequiredToken units. Must be greater than 0 unless grantAmountInFiat is set.
grantAmountInFiatnumberSize the grant in fiat; the token amount is derived from the price per unit.
Allowed: at least 0
tokenTypeIDstring<uuid> | nullToken the grant pays in. Must be one of your org's token types.
pricePerUnitnumberDefaults to the current token price.
Allowed: at least 0
fmvPerUnitnumberConversion FMV for an exercisable grant sized in fiat (payout routing orgs).
pricePerUnitCurrencyCodestringDefaults to USD.
Allowed: at most 20 characters
scheduleStringOverridestringAllowed: at most 10000 characters
vestingStartDatestring<date-time>requiredvestingFrequencyTypestringrequiredAvailable options: MONTHLY, QUARTERLY, SEMIANNUALLY, YEARLY, CUSTOM, DAILY, WEEKLY
vestingCliffPercentagenumberrequiredAllowed: 0 to 100
vestingCliffPeriodsintegerrequiredCannot exceed vestingPeriods.
Allowed: 0 to 1000
vestingPeriodsintegerrequiredAllowed: 0 to 10000
lockupintegerrequiredLockup in months after vestingStartDate. 0 means no lockup.
Allowed: 0 to 1000
recipientIDstring<uuid>requiredroleInOrgID of the recipient (must be in your org)
isSection83bElectionEligiblebooleanDefaults to false.
isTaxablebooleanDefaults to true.
offPlatformDatestring<date-time>tagsstring[]requiredMay be empty.
Allowed: at most 500 items
grantDatestring<date-time>requiredautoVestingbooleanDefaults to false.
isCashCompensationbooleangrantAssetTypestringAvailable options: TOKEN, FIAT
grantTemplateIDstring<uuid>Vesting template. Must be one of your org's templates.
Response
200Grant created
dataobjectrequiredShow child attributes
grantIDstring<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