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.

POSThttps://app.toku.com/api/tokuApi/v1/addSingleGrant

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"
}'
200 response
{
  "data": {
    "grantID": "550e8400-e29b-41d4-a716-446655440000"
  },
  "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

Body

application/json

grantNamestringrequired

Allowed: 1 to 500 characters

grantDescriptionstringrequired

May be empty.

Allowed: at most 10000 characters

grantConfigurationIDstring<uuid>required
grantAmountnumberrequired

Token units. Must be greater than 0 unless grantAmountInFiat is set.

grantAmountInFiatnumber

Size the grant in fiat; the token amount is derived from the price per unit.

Allowed: at least 0

tokenTypeIDstring<uuid> | null

Token the grant pays in. Must be one of your org's token types.

pricePerUnitnumber

Defaults to the current token price.

Allowed: at least 0

fmvPerUnitnumber

Conversion FMV for an exercisable grant sized in fiat (payout routing orgs).

pricePerUnitCurrencyCodestring

Defaults to USD.

Allowed: at most 20 characters

scheduleStringOverridestring

Allowed: at most 10000 characters

vestingStartDatestring<date-time>required
vestingFrequencyTypestringrequired

Available options: MONTHLY, QUARTERLY, SEMIANNUALLY, YEARLY, CUSTOM, DAILY, WEEKLY

vestingCliffPercentagenumberrequired

Allowed: 0 to 100

vestingCliffPeriodsintegerrequired

Cannot exceed vestingPeriods.

Allowed: 0 to 1000

vestingPeriodsintegerrequired

Allowed: 0 to 10000

lockupintegerrequired

Lockup in months after vestingStartDate. 0 means no lockup.

Allowed: 0 to 1000

recipientIDstring<uuid>required

roleInOrgID of the recipient (must be in your org)

isSection83bElectionEligibleboolean

Defaults to false.

isTaxableboolean

Defaults to true.

offPlatformDatestring<date-time>
tagsstring[]required

May be empty.

Allowed: at most 500 items

grantDatestring<date-time>required
autoVestingboolean

Defaults to false.

isCashCompensationboolean
grantAssetTypestring

Available options: TOKEN, FIAT

grantTemplateIDstring<uuid>

Vesting template. Must be one of your org's templates.

Response

200Grant created
dataobjectrequired
Show child attributes
grantIDstring<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