API Documentation

Comprehensive documentation for the SocialEarn API. Build powerful integrations and applications with our RESTful API.

REST API

JSON over HTTPS

OAuth 2.0

Secure authentication

Rate Limited

1000 req/hour

Mobile Ready

Optimized endpoints

Authentication
POST/api/auth/register

Register a new user account

nameemailpasswordrole?referralCode?
GET/api/auth/session

Get current user session

GET/api/auth/token

Generate JWT token for WebSocket authentication

User Management
GET/api/user/status

Get current user's status and subscription info

GET/api/profile

Get user profile information

PUT/api/profile

Update user profile

name?bio?avatar?
Tasks & Campaigns
GET/api/tasks

Get available tasks for users

platform?targetType?minReward?maxReward?
GET/api/campaigns

Get user's campaigns

POST/api/campaigns

Create a new campaign

titledescriptionplatformtargetTypetargetUrlreward
Payments
POST/api/payments/stripe

Create Stripe payment intent

amountcurrencyplanTypesubscriptionId?
POST/api/payments/paypal

Create PayPal payment order

amountcurrencyplanType
POST/api/payments/momo

Create Mobile Money payment

amountcurrencyphoneNumberplanType
Analytics
GET/api/analytics

Get platform analytics

timeRange?metric?
GET/api/analytics/geographic

Get geographic analytics data

GET/api/platform/revenue

Get revenue analytics

period?
Currency & Subscriptions
GET/api/currency

Get exchange rates and currency conversion

actionfrom?to?amount?
GET/api/subscriptions

Get subscription plans and user's current subscription

GET/api/achievements

Get user's achievements and progress

Ready to Start Building?

Get your API key and start integrating with SocialEarn today!