Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. The Tokens API (https://tokens.shakesco.com) lets your backend interact with the Shakesco managed token contracts on Polygon. Customers hold loyalty tokens by email with no crypto wallet required.

Authentication

All requests require your API key in the Authorization header. The API resolves your key to your business token contract automatically.
Authorization: Bearer YOUR_API_KEY
Generate your API key at users.shakesco.com/user/api-tokens

How It Works

Your backend → POST tokens.shakesco.com/claim-tokens → On-chain tx → Tokens credited to customer
  • Customers are identified by email. You never handle private keys.
  • All write operations are submitted as on-chain transactions and return a tx_hash.
  • Read operations return data directly from the contract state.

Base URL

https://tokens.shakesco.com

Endpoint Groups

Rewards

Claim, redeem, expire tokens and award pending rewards

Transfer

Transfer tokens between users or migrate from another system

Staking

Lock tokens into stakes and collect staking rewards

Vesting

Create, claim, and cancel vesting grants

Promotions

Run happy hours and set daily earning caps

Governance & Cashback

Configure tiers, voting ratios, and cashback programs

Read & Query

Check balances, user info, and activity

Events

Manage token claim events on your BusinessToken contract

Common Error Codes

CodeErrorMeaning
400Invalid parametersCheck field types and values
400Insufficient token balanceCustomer does not have enough tokens
400No tokens are claimableVesting schedule has nothing to claim yet
401UnauthorizedMissing or invalid API key
403Caller not authorizedYour key is not linked to this contract
404Event not foundEvent name does not exist on the contract
409Event already claimedCustomer already claimed a one-time event
409Stake already unlockedCannot unstake an already-unlocked position
429Daily earning cap exceededCustomer hit the daily token earning limit
429Fee limit exceededYour API compute budget is exhausted
502On-chain transaction failedBlockchain reverted, check contract state