API REFERENCEIntegrate ViewFi into your applications. All API endpoints use the base URL:
ViewFi API Documentation
Integrate ViewFi into your applications. All API endpoints use the base URL: https://viewfi.live
Authentication
Authenticated endpoints require a wallet address header or JWT token. SDK endpoints (for widget integration) do not require authentication.
GET
/gateway/sdk/ads/nextGet the next available ad for the SDK widget
Parameters
partnerId*string
Your Partner ID
Response
{
"campaign": {
"id": "uuid",
"title": "Campaign Title",
"videoUrl": "https://...",
"reward": 0.33,
"landingPage": "https://..."
}
}POST
/gateway/sdk/ads/completeReport completed ad view and credit rewards
Parameters
walletAddress*string
User wallet address
partnerId*string
Partner ID
campaignId*string
Campaign ID
Response
{
"success": true,
"reward": 0.33,
"remainingViews": 4
}GET
/gateway/sdk/ads/user/remaining-viewsGet remaining ad views for a user
Parameters
walletAddress*string
User wallet address
partnerId*string
Partner ID
Response
{
"remainingViews": 5,
"dailyLimit": 5,
"subscriptionTier": "free"
}Need Help with Integration?
Our developer support team is available to help with technical questions.
Contact Developer Support