Skip to main content

Overview

This guide walks you through building a complete token grant management integration with the Toku API. By the end, you’ll have everything needed to:
  • Onboard recipients and assign roles
  • Create and manage token grants with vesting schedules
  • Set up and verify recipient wallets
  • Configure token distributions
  • Handle terminations and reversals
  • Monitor vesting progress

Prerequisites

  • A Toku organization with CLIENT_ORG_ADMIN access
  • A personal API token
  • Your organization’s orgID (found in SettingsOrganization ID)

Base Setup

Every request needs these headers:

Step 1: Verify Your Connection


Step 2: Get Your Organization Info


Step 3: Configure Networks & Tokens

Check what networks and tokens are available:
If you need to set your token contract address:

Step 4: Add Recipients

Create users who will receive grants:
For bulk onboarding, use batch updates:

Step 5: Get Grant Configurations

Before creating grants, you need a grant configuration (template):
Grant configurations define the grant type (RTU, RTA, TPA, TOKEN_BONUS) and signing requirements. Create them in the TGA dashboard first.

Step 6: Create Grants

Single Grant

New Hire Grant (creates user + grant in one call)


Step 7: Monitor Grants

List all grants

Get grants for a specific employee

List endpoints return all results (no pagination). For large organizations, cache results locally and poll periodically rather than calling on every page load.

Step 8: Set Up Wallets

Add a wallet for a recipient

Verify the wallet (test transaction flow)

Bulk upload wallets

See Wallet Verification Flow for the complete state machine.

Step 9: Configure Distributions

Set how tokens are distributed across a recipient’s wallets:
Or set token-level distribution (applies to all grants):

Step 10: Handle Terminations

Terminate a single grant

Terminate all grants for a departing employee

Revert a termination (mistake recovery)


Step 11: Polling for Status Changes

Since webhooks are not yet available, poll for changes:

Complete Example: Onboard & Grant


Next Steps

Grant Lifecycle

Understand grant status transitions and edge cases

Wallet Verification

Complete wallet setup and verification flow

Best Practices

Rate limiting, caching, and error handling

Permissions

Role-based access control matrix