API Reference
The Lamma+ Central API provides REST endpoints for all platform features. All endpoints are scoped to a tenant via the X-Domain-Id header or automatic domain detection from the request origin.
Authentication
Most endpoints require a Firebase Auth ID token in the Authorization header. Admin endpoints additionally require the admin custom claim.
curl -H "Authorization: Bearer <firebase-id-token>" \
-H "X-Domain-Id: islamic" \
https://api.lammaplus.com/api/creatorsCreators
CRUD operations for creator profiles. Supports filtering by category, region, and topic.
/api/creatorsList creators with pagination, filtering by category, region, topic
/api/creators/:idGet a single creator profile with enriched data
/api/creatorsCreate a new creator (admin)
/api/creators/:idUpdate creator profile (admin)
/api/creators/:id/analyticsGet creator engagement analytics
Search
Multi-mode search across creator directory. Supports keyword, semantic, and hybrid search modes.
/api/search?q=&mode=keywordKeyword search with Firestore text matching
/api/search?q=&mode=semanticSemantic search using vector embeddings
/api/search?q=&mode=hybridHybrid search combining keyword and semantic results
Videos
Video management powered by Mux. Upload, encode, and stream original content.
/api/videosList videos with pagination and filtering
/api/videos/:idGet video details including playback URL
/api/videos/uploadInitiate video upload (returns Mux upload URL)
/api/videos/discoveryCurated video discovery feed
/api/clipsList short-form video clips (reels)
Community
Forum posts, comments, reactions, and moderation. Supports premium gating.
/api/community/postsList forum posts with sorting and filtering
/api/community/postsCreate a new forum post
/api/community/posts/:idGet post with comments
/api/community/posts/:id/commentsAdd a comment to a post
/api/community/posts/:id/reactionsAdd/remove reaction to a post
Brands & Campaigns
Brand directory and campaign management for the creator marketplace.
/api/brandsList brands in the directory
/api/brands/:idGet brand details
/api/campaignsList campaigns with filtering
/api/campaignsCreate a new campaign
/api/campaigns/:id/dealsCreate a deal for a campaign
Channels
Real-time group communication with threads, reactions, and typing indicators.
/api/channelsList available channels
/api/channelsCreate a new channel
/api/channels/:id/messagesGet channel messages with pagination
/api/channels/:id/messagesSend a message to a channel
/api/channels/:id/threads/:threadIdGet thread messages
Commerce
Creator commerce features — affiliate links, product tracking, and analytics.
/api/commerce/products/:creatorIdGet products for a creator
/api/commerce/clicksTrack affiliate link click
/api/commerce/analyticsCommerce analytics dashboard data
Tenant Management
Multi-tenant administration — billing, usage, domains, and settings.
/api/tenants/:idGet tenant details and settings
/api/tenants/:idUpdate tenant settings
/api/tenants/:id/usageGet resource usage (video, storage)
/api/tenants/:id/billingGet billing details and subscription status
/api/tenants/:id/domainsAdd custom domain to tenant
Response Format
All API responses follow a consistent JSON structure:
{
"success": true,
"data": { ... },
"pagination": {
"page": 1,
"limit": 20,
"total": 150,
"hasMore": true
}
}Error responses include a descriptive message:
{
"success": false,
"error": "Creator not found",
"code": "NOT_FOUND"
}