REST v1-only operations

Get Employee Grants

Lists an employee's grants by externalEmployeeID or payrollEmployeeID (payroll ID takes precedence).

POSThttps://api.toku.com/platform/get-employee-grants

Required scope: grants:read. People First only: the TOKEN_GRANTS module must be active and the service seat must hold token_grants.view at COMPANY scope. For API v2 and MCP, use an organization API key; personal access tokens use REST v1.

curl --request POST \
  --url 'https://api.toku.com/platform/get-employee-grants' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "externalEmployeeID": "string",
  "payrollEmployeeID": "string"
}'
200 response
[
  {
    "grantID": "string",
    "grantName": "string",
    "grantDescription": "string",
    "grantStatus": "PENDING",
    "grantAmount": 0,
    "grantAmountInFiat": 0,
    "pricePerUnit": 0,
    "pricePerUnitCurrencyCode": "string",
    "grantDate": "string",
    "vestingStartDate": "string",
    "vestingFrequencyType": "string",
    "vestingCliffPercentage": 0,
    "vestingCliffPeriods": 0,
    "vestingPeriods": 0,
    "terminationDate": "string",
    "futureTerminationDate": "string",
    "tags": [
      "string"
    ]
  }
]

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

externalEmployeeIDstring | string[] | any

NOTE(ck): a .transform() rule is not mirrored here; TGA still enforces it NOTE(ck): a .transform() rule is not mirrored here; TGA still enforces it

payrollEmployeeIDstring | string[] | any

NOTE(ck): a .transform() rule is not mirrored here; TGA still enforces it NOTE(ck): a .transform() rule is not mirrored here; TGA still enforces it

Response

200Successful response
grantIDstringrequired
grantNamestringrequired
grantDescriptionstring | nullrequired
grantStatusstringrequired

Available options: PENDING, REJECTED, ACCEPTED, COMPLETED, TERMINATED, PAUSED, MARKED_FOR_FUTURE_TERMINATION

grantAmountnumberrequired
grantAmountInFiatnumber | nullrequired
pricePerUnitnumber | nullrequired
pricePerUnitCurrencyCodestring | nullrequired
grantDatestring | nullrequired

Allowed: matches ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

vestingStartDatestring | nullrequired

Allowed: matches ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

vestingFrequencyTypestring | nullrequired
vestingCliffPercentagenumber | nullrequired
vestingCliffPeriodsinteger | nullrequired
vestingPeriodsnumber | nullrequired
terminationDatestring | nullrequired

Allowed: matches ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

futureTerminationDatestring | nullrequired

Allowed: matches ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

tagsstring[]required
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits