Grants

Create Grant for New Hire

Creates a new employee seat for the person and an accepted grant for that seat, dated today, then generates vestings. Fails with 409 if the email already has an employee seat in your org. The body is not schema-validated; send exactly the documented types.

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

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/createGrantForNewHire' \
  --header 'Authorization: Bearer <token>' \
  --header 'x-role-type: CLIENT_ORG_ADMIN' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jane.smith@example.com",
  "givenName": "Jane",
  "familyName": "Smith",
  "employmentType": "CONTRACTOR",
  "grantName": "string",
  "grantDescription": "string",
  "grantConfigurationID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "grantAmount": 0,
  "vestingStartDate": "2026-01-01T00:00:00Z",
  "vestingFrequencyType": "MONTHLY",
  "vestingCliffPercentage": 0,
  "vestingCliffPeriods": 0,
  "vestingPeriods": 0,
  "isSection83bElectionEligible": true,
  "offPlatformDate": "2026-01-01T00:00:00Z",
  "tags": [
    "string"
  ],
  "tokenTypeID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "pricePerUnit": 0
}'
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

emailstring<email>required
givenNamestringrequired
familyNamestringrequired
employmentTypestring | null

TGA employment type. Defaults to EMPLOYEE.

Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER

grantNamestringrequired
grantDescriptionstringrequired
grantConfigurationIDstring<uuid>required
grantAmountnumberrequired

Token units

vestingStartDatestring<date-time>required

Full ISO 8601 date-time.

vestingFrequencyTypestringrequired

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

vestingCliffPercentagenumberrequired
vestingCliffPeriodsintegerrequired
vestingPeriodsnumberrequired
isSection83bElectionEligibleboolean | null

Defaults to false.

offPlatformDatestring<date-time> | null
tagsstring[]required

May be empty.

tokenTypeIDstring<uuid> | null

Token the grant pays in (payout routing orgs only).

pricePerUnitnumber

Used only when the org has grant payout routing enabled; otherwise the current token price is used.

Response

200Grant created for new hire
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