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_ADMINaccess - A personal API token
- Your organization’s
orgID(found in Settings → Organization 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:Step 4: Add Recipients
Create users who will receive grants:Step 5: Get Grant Configurations
Before creating grants, you need a grant configuration (template):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
Step 8: Set Up Wallets
Add a wallet for a recipient
Verify the wallet (test transaction flow)
Bulk upload wallets
Step 9: Configure Distributions
Set how tokens are distributed across a recipient’s wallets: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
