Overview

Quick Start

Make your first Toku API call in under 5 minutes

Prerequisites#

  • A Toku account with CLIENT_ORG_ADMIN access
  • A personal API token (see Authentication)

Your First API Call#

Verify your token works by calling the hello endpoint:

curl https://app.toku.com/api/tokuApi/v1/hello \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "x-role-type: CLIENT_ORG_ADMIN"

Response:

{
  "data": {
    "message": "Hello World"
  },
  "error": null
}

Every successful response wraps the result in data, with error set to null. Failed calls return an error instead (see Errors).

List Your Grants#

Retrieve all grants in your organization:

curl https://app.toku.com/api/tokuApi/v1/listGrants \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "x-role-type: CLIENT_ORG_ADMIN"

Response:

{
  "data": [
    {
      "grantID": "550e8400-e29b-41d4-a716-446655440000",
      "grantName": "Q1 2026 Token Grant",
      "externalEmployeeID": "EMP-001",
      "grantAmount": 50000,
      "grantAmountInFiat": 0,
      "grantAssetType": "TOKEN",
      "grantStatus": "ACCEPTED",
      "grantConfigurationName": "Standard Vesting",
      "vestingStartDate": "2026-01-01T00:00:00.000Z",
      "finalVestingDate": "2029-12-01T00:00:00.000Z",
      "vestingPeriods": 48,
      "vestingFrequencyType": "MONTHLY",
      "vestingCliffPeriods": 12,
      "vestingCliffPercentage": 25,
      "percentageOfUnitsVested": 16.67,
      "recipientFullName": "Jane Smith",
      "grantDate": "2025-12-15T00:00:00.000Z",
      "tags": ["engineering", "2026"],
      "roleInOrgID": "660e8400-e29b-41d4-a716-446655440001",
      "roleInOrgExternalID": 12345
    }
  ],
  "error": null
}

Each grant has more fields than shown here, such as pricePerUnit, lockups and tokenSymbol.

Create a Grant#

Add a new token grant for an employee:

curl -X POST https://app.toku.com/api/tokuApi/v1/addSingleGrant \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "x-role-type: CLIENT_ORG_ADMIN" \
  -H "Content-Type: application/json" \
  -d '{
    "grantName": "New Hire Grant",
    "grantDescription": "Token grant for a new hire",
    "grantConfigurationID": "YOUR_GRANT_CONFIG_ID",
    "grantAmount": 10000,
    "grantDate": "2026-04-01T00:00:00.000Z",
    "vestingStartDate": "2026-04-01T00:00:00.000Z",
    "vestingFrequencyType": "MONTHLY",
    "vestingPeriods": 48,
    "vestingCliffPeriods": 12,
    "vestingCliffPercentage": 25,
    "lockup": 0,
    "recipientID": "ROLE_IN_ORG_ID",
    "tags": ["new-hire", "2026"]
  }'

grantConfigurationID comes from listGrantConfigurations, and recipientID is the recipient's roleInOrgID. Every field above is required; unknown fields are rejected.

Response:

{
  "data": {
    "grantID": "770e8400-e29b-41d4-a716-446655440002"
  },
  "error": null
}

Common Workflows#

Next Steps#

  1. Explore the API reference

    Browse the full Grants API, Wallets API, and Employees API

  2. Poll for changes

    The API has no webhooks. Poll list endpoints such as listGrants to pick up changes (see Build a Dashboard)

  3. Handle errors

    Review error codes and implement proper error handling

Was this page helpful? Suggest edits