Instagram Creator Commerce & Campaign Platform
Ongoing build — brands, creators, Meta/Instagram APIs, payments, KYC, voice, and chat in one marketplace
Overview
We engineered a full creator-commerce marketplace: brand campaigns, creator packages, cart checkout, KYC verification, wallet ledger, social account linking, in-app voice calls, real-time chat, and AI-assisted content tools — web, admin, and native mobile.
Context
A confidential client needed a production-grade platform where brands discover creators, run campaigns, purchase packages, submit requirements, pay securely, and collaborate through chat and voice — while creators onboard with identity verification, link social accounts for insights, and manage portfolios and earnings.
Real-world scenario
A brand builds a campaign targeting Instagram reels in Mumbai, adds creator packages to cart, fills content requirements with reference uploads, pays via Razorpay, and tracks order milestones. A creator links Instagram for audience insights, completes Aadhaar/PAN/GST verification, chats with the brand via Stream, and receives campaign briefs. Support agents place outbound calls through Exotel WebRTC when disputes arise.
Constraints
- India-specific payments (Razorpay) with idempotent checkout — no duplicate orders on retry
- Regulatory KYC: Aadhaar, PAN, GST verification via licensed API provider
- Social OAuth token encryption and Meta/Instagram data-deletion compliance
- High-volume media uploads to S3 with signed URLs and CloudFront delivery
- SMS OTP delivery via Exotel with production fallback paths
- Background job processing for recommendations, metrics sync, and notifications
- Sensitive data logging redaction (OTP, tokens, KYC payloads, payment details)
What we built
- Express + Prisma backend with 40+ feature modules: campaigns, packages, cart, orders, payments, wallet, KYC, portfolio, chat, voice, referrals, CRM, admin
- Next.js web app with Redux Toolkit, TanStack Query, atomic design system
- Expo React Native mobile app with EAS builds, Firebase Cloud Messaging, Razorpay native checkout
- Unified payment flow with order intents, advisory locks, and Razorpay order reuse on retry
- Wallet ledger as source of truth — automatic CREDIT/DEBIT entries on referral unlock and withdrawals
- Campaign engine with category, location, and package preference matching across Instagram, YouTube, TikTok, LinkedIn, Facebook, Twitter
- AI script generator (Anthropic Claude) for ad briefs and content ideation
- Admin dashboard for database ops, staff provisioning, and support workflows
Architecture
- AWS ECS Fargate (Spot) behind Application Load Balancer — webapp, admin, backend services
- Amazon RDS PostgreSQL with safe Prisma migration deploy via one-off ECS tasks
- Amazon S3 + CloudFront for portfolio, profile, cover, and campaign media with signed GET URLs
- BullMQ + Redis for async jobs: metrics sync, recommendations, notifications, cron pipelines
- AWS SSM Parameter Store + KMS for secrets; ECR for container images
- GitHub Actions CI/CD with path-based triggers and automated migration on deploy
Integrations & platforms
- Meta: Facebook OAuth, Instagram Graph API (insights, business discovery, page metrics), Meta webhooks, signed-request verification, data deletion callbacks
- Exotel: SMS OTP delivery, outbound voice via Connect API, WebRTC browser agent calling, flow apps, NDNC handling, call status webhooks
- Razorpay: unified web + native checkout, webhook signature verification, idempotent order intents
- Stream Chat: brand–creator messaging, team chat channels
- Google OAuth: sign-in and account linking
- LinkedIn OAuth: creator profile connection and token revocation on account deletion
- YouTube: metrics and content performance modules
- Sandbox.co.in: Aadhaar verification, PAN validation, GST lookup, penny-drop bank verification
- Firebase Cloud Messaging: push notifications on iOS and Android
- Anthropic Claude API: AI script and brief generation
- Twilio: supplementary telephony service layer
Reliability & security
- Winston logger with global metadata redaction — no OTPs, tokens, or KYC values in logs
- Payment idempotency keys with PostgreSQL advisory locks on checkout
- JWT auth with soft-deleted user guard on optionalAuth middleware
- Prisma append-only migration policy — never edit applied migrations
- Super-admin gated debug endpoints; cart debug returns metadata only
- Structured error codes for KYC and payment flows instead of raw exception leaks
Outcomes
- Full marketplace loop: discover → cart → pay → fulfill → chat → settle
- Creators verified through multi-step KYC before receiving paid work
- Social insights power campaign matching without manual spreadsheet research
- Voice and chat embedded in operations — not bolted on as separate tools
- Production AWS deployment targeting $20–50/month with Fargate Spot optimization
Technology stack
Web
Mobile
Backend
Cloud & DevOps
Integrations
FAQ
Why is this case study confidential?
The client platform includes KYC, payments, and creator data under NDA. We describe architecture and outcomes without naming the brand.
What integrations were involved?
Razorpay payments, Amazon S3 media, social account linking, chat, voice, and 40+ backend modules on Express and Prisma.
Related services
For social · LinkedIn hook
Creator marketplaces fail when payments, KYC, social data, and collaboration live in four different tools. We built them as one.
- → Problem: brands and creators need one place to campaign, pay, verify, and collaborate
- → Built: web + native mobile + admin + 40+ backend modules on AWS ECS
- → Integrations: Meta/Instagram, Exotel SMS+Voice, Razorpay, Stream Chat, KYC APIs
- → Hard parts solved: payment idempotency, token encryption, log redaction, safe migrations
Building a marketplace, creator platform, or campaign ops tool? We integrate payments, KYC, social APIs, and voice — as one system.
Discuss a similar project