API Reference
ZYNC uses tRPC for type-safe API access. All endpoints are available through the tRPC client.
https://api.zyncd.in/trpc
Authentication
Authenticate users via Telegram, Farcaster, or email.
/api/auth/telegramAuthenticate with Telegram initData
/api/auth/callbackOAuth callback handler
/api/auth/sessionGet current session
/api/auth/signoutSign out current user
Campaigns
Create, manage, and query campaigns.
campaigns.listList campaigns with filters (status, visibility, brand)
campaigns.getGet a single campaign by ID
campaigns.joinJoin a campaign (creates participation)
campaigns.participationGet user participation for a campaign
campaigns.myParticipationsList all campaigns the user has joined
campaigns.submitMissionSubmit mission evidence
campaigns.claimClaim reward for completed campaign
Wallets
Manage wallet addresses and on-chain operations.
wallets.getMyWalletGet current user's wallet
wallets.upsertWalletRegister or update wallet address
wallets.deleteWalletRemove wallet from account
Ledger
Query balances, assets, and transaction history.
ledger.getAssetsList available assets
ledger.getMyBalancesGet all balances for current user
ledger.getMyEntriesGet transaction history
ledger.transferTransfer balance between identities
Identity
Manage identity providers and profile.
identity.getMeGet current user's identity
identity.getMyProvidersList linked identity providers
identity.updateProfileLink a new identity provider
Webhooks
Receive real-time event notifications.
/webhooks/campaign.completedFired when a user completes all campaign missions
/webhooks/reward.claimedFired when a reward is claimed
/webhooks/mission.verifiedFired when a mission submission is verified
Rate Limits
API requests are rate limited per identity:
- Read operations: 100 requests per minute
- Write operations: 20 requests per minute
- Financial operations: 5 requests per minute
Need help with the API? Contact our developer support team