Core architecture, API environments, authentication, and platform models.
Platform Overview & Models
Architecture
MyScoop is the India-first monetization and billing gateway for creators, developers, and community leaders. It enables 1-Click UPI & UPI AutoPay across three distinct fulfillment models.
Implementation Steps
1Model 1: Cloud SaaS & Web Apps
Hosted by the creator on their own cloud infrastructure (Vercel, AWS, or any cloud host). Buyers open directly in their browser with zero ZIP downloads. MyScoop manages recurring UPI AutoPay billing and account provisioning via authenticated webhooks.
2Model 2: Paid Telegram VIP Communities
Automated community daemon (@My_Scoop_Bot) generates single-use 60-minute invite links and automatically revokes access when monthly UPI AutoPay lapses.
3Model 3: Downloadable Software & Digital Files
Code boilerplates, desktop tools, and digital assets delivered via 15-minute expiring signed URLs with RFC 7233 byte-range connection resumption and cryptographic license keys.
Integration Guardrails
All API requests must use HTTPS. License routes authenticate WITH THE LICENSE KEY ITSELF as the credential (POST the key in the JSON body) -- there is no bearer-token or API-account scheme for buyers; the 'Log in with MyScoop' OAuth provider that will issue tokens is roadmap (see section 4).
Platform fee structure: Flat 10.0% constant commission across all plans (Digital Store & Communities at ₹0/mo upfront, and Video Academy at ₹999/mo with 30 GB private cloud video storage) with weekly Wednesday bank settlements (Min ₹500, KYC verified).
API Environments & Endpoints
Base URLs
MyScoop provides production and staging environments for developer testing. Use the live endpoints for production integrations.
Parameters & Schema
Field / Endpoint
Type
Description
Production Base URL
string
https://myscoop.in/api/v1
Telegram Webhook Endpoint
string
https://myscoop.in/api/webhooks/telegram
License Verification API
string
https://myscoop.in/api/v1/licenses/verify
License Activation API
string
https://myscoop.in/api/v1/licenses/activate
License Deactivation API
string
https://myscoop.in/api/v1/licenses/deactivate
Entitlement Check API
string
NOT BUILT -- roadmap (BUILD_PLAN row L8). The planned path is /api/v1/entitlements behind the 'Log in with MyScoop' OAuth provider: an identity/entitlement check answering fresh from the database (owns the product, or holds an active subscription), scoped to the calling creator's own products. An earlier revision of this page listed /api/v1/access/check as a live endpoint; that route does not exist and was removed in the 2026-11-12 honesty pass.
Ping Health Endpoint
curl -X GET "https://myscoop.in/api/health" \
-H "Accept: application/json"
2. Telegram VIP Automation
Automate private channel invites, member verification, and auto-kicking via @My_Scoop_Bot.
Connecting @My_Scoop_Bot to Channels
@My_Scoop_Bot
Zero code is required for creators. Simply add our official verified bot (@My_Scoop_Bot) as an administrator to your private Telegram channel or group.
Implementation Steps
1Step 1: Open Channel Settings in Telegram
Navigate to your private channel or supergroup settings -> Administrators -> Add Administrator.
2Step 2: Search for @My_Scoop_Bot
Type @My_Scoop_Bot (Display Name: MyScoopBot, ID: 8604392883) and select it.
3Step 3: Grant the 2 Required Permissions
Enable 'Invite Users via Link' (required to create single-use 1-time join links) and 'Ban Users' (required to gracefully remove members when recurring AutoPay lapses).
4Step 4: Link Channel in MyScoop Hub
In your creator hub (app.myscoop.in), enter your channel ID to complete the link.
Integration Guardrails
Do NOT grant permissions like 'Post Messages' or 'Change Channel Info' unless you want the bot to broadcast announcements.
Single-use join links have member_limit: 1 and expire in 60 minutes, preventing unauthorized link sharing in piracy groups.
Telegram Bot API Integration
Webhook API
For platform developers building custom community bots or inspecting webhook health.
import { createSingleUseInviteLink } from "@/lib/telegram";
// Creates a 60-minute, 1-member link automatically
const response = await createSingleUseInviteLink("-1001234567890", "VIP Member Pass", 60);
if (response.ok && response.result) {
console.log("Single-use invite link:", response.result.invite_link);
}
3. Cloud SaaS & Web Apps
Sell micro-SaaS and web applications with recurring UPI AutoPay and instant browser access.
The 'Open Directly & Use' Architecture
Web App SaaS
Unlike downloadable ZIP files, SaaS buyers access your tool directly in their browser. You host your web application on your own cloud (AWS, Vercel, or custom server). MyScoop handles the Indian checkout, recurring UPI AutoPay billing, and account provisioning.
Implementation Steps
11. Buyer Subscribes via 1-Click UPI
The customer authorizes a monthly recurring mandate on PhonePe, Google Pay, or Paytm.
ROADMAP -- NOT BUILT (2026-11-12). The 'Log in with MyScoop' OAuth provider does not exist yet; there is no /oauth/authorize route, no token exchange, and no entitlement check. This section is the specification being built (BUILD_PLAN row L8), researched against Patreon's and itch.io's own OAuth implementations -- do not integrate against these routes until the build row closes and this page is updated.
Planned Flow: How Buyers Log In With MyScoop
ROADMAP / OAuth 2.0
Design target, modeled on Patreon (docs.patreon.com: registration -> authorize with state-as-CSRF -> server-only token exchange -> identity -> fresh entitlement from currently_entitled_tiers) and itch.io (an OAuth app obtains an API key for the approving user; device login for desktop apps; ownership checks scoped to the app creator's own products). NOT AVAILABLE FOR INTEGRATION.
Implementation Steps
1Step 1: Register an OAuth client (planned)
Creators register their app in MyScoop (client_id, client_secret held hashed, exact-match redirect_uri whitelist). One creator's client never scopes another creator's products.
2Step 2: 'Log in with MyScoop' button (planned)
Redirect the browser to https://myscoop.in/oauth/authorize?client_id=...&redirect_uri=...&response_type=code&state=...&code_challenge=... The state parameter is CSRF protection; PKCE is required for public clients.
3Step 3: Server-only exchange (planned)
POST https://myscoop.in/api/oauth/token with grant_type=authorization_code (or refresh_token) returns a short-lived access token plus a rotated refresh token.
4Step 4: Identity + entitlement (planned)
GET /api/v1/identity (with the identity[email] scope for email) and GET /api/v1/entitlements?product_id=... answering FRESH from the database: the buyer owns the product or holds an active subscription. Entitlement is never cached in the token, and a refund or cancelled subscription revokes access at the next check.
5Desktop/CLI apps: device login (planned)
itch.io's model: the app displays a user code and verification URL, the user approves in a browser, and the app polls for its token. No redirect host is required on a native binary.
Authorization URL Example (SPEC -- route does not exist)
5. Software Licenses & Multi-Platform App Distribution
Distribute desktop apps, developer tools, CLI binaries, and plugins with multi-OS builds, semantic versioning, and seat activation APIs.
Multi-Platform Software Distribution Matrix & Semantic Versions
OS Builds & Artifact Matrix
Real-world software developers do not distribute a single generic .zip. MyScoop provides a multi-platform release infrastructure where creators publish versioned releases across macOS (Universal / Apple Silicon / Intel), Windows (x64 / ARM64), Linux (.AppImage / .deb), Source code archives, and Documentation. Releases carry semantic version tags (vMAJOR.MINOR.PATCH), release channels (stable, beta, alpha), and cryptographic SHA-256 integrity checksums.
Publish software releases using standard vMAJOR.MINOR.PATCH tags. Releases are assigned to channels ('stable', 'beta', 'alpha') with an automated database-level latest-stable pointer.
2Multi-OS Build Attachment
Attach platform-specific installers (e.g. .dmg, .exe, .AppImage) with exact file sizes and SHA-256 checksums. Designate one build as the primary download fallback.
3Storefront Release Transparency
Storefront visitors see supported operating systems, binary file sizes, cryptographic hashes, and changelog release notes before purchasing.
Parameters & Schema
Field / Endpoint
Type
Description
productId
string (UUID)
The unique identifier of the software listing.
version
string (SemVer)
Semantic version tag matching vMAJOR.MINOR.PATCH (e.g. v1.2.0).
channel
string
Release channel: 'stable', 'beta', or 'alpha'.
platform
string
Target OS: 'windows', 'macos', 'linux', 'source', or 'docs'.
fileUrl
string (HTTPS)
Direct HTTPS or S3 signed storage URL to the binary file.
checksumSha256
string (hex)
64-character lowercase SHA-256 digest for client tamper verification.
cURL: Query Published Software Versions & Artifacts
curl -X GET "https://myscoop.in/api/products/{productId}/versions" \
-H "Accept: application/json"
Validate software license keys on application startup or background check. Returns license validity, activation status, max seat count, and subscription synchronization state. If a recurring subscription payment lapses, the key immediately reflects 'SUBSCRIPTION_INACTIVE'.
Parameters & Schema
Field / Endpoint
Type
Description
license_key
string
The buyer's SCOOP-XXXX-XXXX-XXXX-XXXX license key.
device_fingerprint
string
Client machine identifier hash to check if this device is activated.
NOT_FOUND -- unknown key { "valid": false, "status": "revoked" }
REVOKED -- creator revoked it { "valid": false }
EXPIRED -- expiresAt is past { "valid": false, "status": "expired" }
SUBSCRIPTION_INACTIVE-- bound subscription lapsed/past-due { "valid": false, "status": "past_due" }
LIMIT_REACHED -- seat activations exhausted { "valid": false }
MISSING_KEY -- no license_key in body { "valid": false }
Machine Seat Activation & Deactivation APIs
POST /api/v1/licenses/activate
Bind client devices to a license key and enforce creator-configured seat limits (1 to 10 machines, or unlimited). Desktop applications, CLI tools, and plugins call '/activate' on initial setup to bind the machine fingerprint. When an application is uninstalled or moved to another machine, call '/deactivate' to release the seat.
Parameters & Schema
Field / Endpoint
Type
Description
license_key
string
The buyer's SCOOP-XXXX-XXXX-XXXX-XXXX license key.
device_fingerprint
string
Unique machine identifier (e.g. SHA-256 of motherboard UUID or MAC).
device_name
string
Human-readable label for device management (e.g. 'MacBook Pro M3').
Buyers receive immediate access to their software license keys, seat counters, and individual OS binary download buttons directly in their private Library (/portal/library). Downloads are fulfilled through the MyScoop Delivery Gateway via device-bound, single-use signed tickets that stream RFC 7233 byte-ranges without leaking raw storage URLs.
Digital files use 15-minute expiring cryptographic signed URLs. The 15-minute window only applies to the initial handshake. Once streaming begins, large files download to 100% completion regardless of connection speed. Network drops resume automatically via RFC 7233 byte-ranges.
6. Webhook Events Catalog
ROADMAP -- NOT BUILT (2026-11-12). MyScoop does not dispatch outbound webhooks to creator endpoints today: there is no subscriber, no delivery queue, no signing secret mint and no retry policy anywhere in the tree. (Inbound webhooks -- Razorpay payments, Telegram bot updates -- DO exist and are signature-verified inbound paths, documented separately.) The catalog below is the planned contract, matching the events our rails already produce internally; wire nothing against it until the dispatcher build row closes.
Planned Webhook Events (ROADMAP)
Planned / Event Catalog
PLANNED ONLY -- no delivery exists yet (2026-11-12). Each event will be delivered to your configured HTTPS endpoint with an 'x-myscoop-signature' HMAC-SHA256 header over the raw body, computed with your webhook secret -- verify the signature BEFORE parsing, per AGENTS.md section 1.3.
Parameters & Schema
Field / Endpoint
Type
Description
subscription.created
event
PLANNED: fired when a buyer completes initial UPI payment and mandate authorization. Provision user access.
subscription.renewed
event
PLANNED: fired when a recurring UPI AutoPay charge succeeds. Extend user validity to the next period end.
subscription.cancelled
event
PLANNED: fired when a mandate is revoked. Entitlement is held until current_period_end, then withdrawn.
subscription.halted
event
PLANNED: fired when a recurring bank debit fails. The dunning ladder (config/billing.ts -> DUNNING) decides the retry/halt schedule locally; this event only notifies.
order.refunded
event
PLANNED: fired when a refund is processed. For software, the same transaction revokes the licence (BUILD_PLAN L1).
MyScoop integrates omnichannel communications directly into your storefront. All transactional communication (order receipts, download links, tax invoices, abandoned cart recovery) is 100% Free Forever on all tiers. For marketing broadcasts, creators enjoy ₹0/month software fees—paying strictly per message via a flexible pre-paid wallet.
Implementation Steps
1Transactional Order Receipts & Invoices (₹0 Free)
Dispatched automatically over WhatsApp and Email upon payment completion. Includes secure 15-minute expiring download links, single-use Telegram invite keys, and GST tax invoices. Unlimited on all plans.
2Automated Abandoned Cart Recovery (₹0 Free)
Automatically triggers 15 minutes after a user drops out of checkout. Dispatches an automated WhatsApp message with a 1-click checkout recovery link, recovering 15% to 25% of lost creator revenue.
3Email Marketing Broadcasts (₹0.05 / email)
Send rich HTML product launch announcements, discount drops, and newsletters directly to customer inboxes with 99%+ deliverability. Charged at 5 paise per email sent via wallet balance.
4WhatsApp Marketing Broadcasts (₹1.25 / msg)
Send high-open rate (~98%) WhatsApp broadcast campaigns using 4 pre-approved templates with rich image banners and CTA buttons. Charged at ₹1.25 per delivered message via wallet balance.
Integration Guardrails
Pre-paid wallet top-ups are available via 1-Click UPI: ₹100 (2,000 emails or 80 WhatsApp), ₹500 (10,000 emails or 400 WhatsApp), and ₹2,000 (40,000 emails or 1,600 WhatsApp).
Unused wallet balance never expires. Zero monthly SaaS retainers.
Fully compliant with India's Digital Personal Data Protection Act (DPDP Act, 2023) with mandatory one-click unsubscribe headers.
Broadcast API & Dispatch Triggers
API Reference
Trigger programmatic WhatsApp and Email marketing campaigns to your verified audience using MyScoop's Marketing API.
Parameters & Schema
Field / Endpoint
Type
Description
channel
string (email | whatsapp)
The communication rail to dispatch across.
template_id
string
Pre-approved template identifier: 'product_launch', 'flash_discount', 'event_reminder', or 'community_update'.
audience_filter
object
Target criteria: e.g. { product_id: 'prod_123', status: 'active' } or audience CSV file reference.
import { MyScoop } from "@myscoop/sdk";
// Your API key — MyScoop dashboard -> Settings -> API keys. It is YOUR OWN
// project credential: read it from your secret store, keep it server-side,
// and note that no MyScoop server variable is involved (there is no
// MYSCOOP_API_KEY to set on our side).
const scoop = new MyScoop({ apiKey: "msk_live_YOUR_KEY" });
// Trigger high-converting WhatsApp flash drop
const broadcast = await scoop.marketing.broadcasts.create({
channel: "whatsapp",
templateId: "flash_discount",
audienceFilter: { productId: "prod_options_algo" },
variables: {
discountPercent: "25",
validityHours: "24",
ctaUrl: "https://myscoop.in/c/aaravtrades?coupon=FLASH25",
},
});
console.log(`Dispatched to ${broadcast.recipientCount} buyers. Cost: ₹${broadcast.costInr}`);
Integration Guardrails
The API key is YOUR OWN project credential, minted in the MyScoop dashboard (Settings -> API keys). Load it in your application the way you load any other secret of yours (an env var such as MYSCOOP_API_TOKEN on YOUR server) and keep it server-side. It is not a MyScoop deployment variable: no variable of that name exists on our side, and there is nothing for an operator to set here.
8. Search & Discovery Engine
Typo-tolerant fuzzy search, PostgreSQL trigram matching, and marketplace discovery endpoints.
Product & Listing Discovery API
GET /api/v1/search
Programmatically query products, software, courses, and digital assets with automatic typo tolerance and relevance ranking.
Parameters & Schema
Field / Endpoint
Type
Description
q
string
Keyword or phrase query with typo tolerance (e.g. 'notion temp' or 'lightrom').
Fuzzy matching evaluates exact substring, word boundary prefix, acronyms, and Damerau-Levenshtein edit distances (up to 2 character substitutions/transpositions for queries >= 7 characters).
Typeahead Suggestions & Spellcheck API
GET /api/v1/search/suggestions
Fetch dynamic typeahead completions, 'Did you mean?' spellcheck corrections, and popular search suggestions.
Parameters & Schema
Field / Endpoint
Type
Description
q
string
Partial query string typed by user (e.g. 'telegr' or 'softwear').
surface
string
Contextual surface: 'docs', 'marketplace', 'storefront', or 'admin'.
limit
number
Maximum number of quick-jump suggestions (default: 5).
Fetch Typeahead Suggestions
curl -X GET "https://api.myscoop.in/v1/search/suggestions?q=telegrame&surface=docs" \
-H "Authorization: Bearer $MYSCOOP_API_TOKEN"
PostgreSQL pg_trgm extension powers server-side catalog discovery in searchPublicListings() with GIN trigram indexes on product titles, descriptions, and creator handles, returning results ordered by similarity score.
3Layer 3: Typo Tolerance & Ranking Thresholds
Queries of 1-3 characters require exact prefix matching. Queries of 4-6 characters permit 1 edit distance. Queries of 7+ characters permit up to 2 edit distances or transpositions.
Integration Guardrails
Adheres strictly to Rule 15 (Zero Sloppy Nulls: all optional fields are defined as '?: T', with zero '?: T | null').
Technical specification for marketplace pagination, SafeSearch content moderation, dynamic ranking, and catalog query preservation.
Implementation Steps
11. Two-Way Accessible Pagination Bar
Renders Previous button (disabled with aria-disabled='true' on page 1), windowed numbered page buttons ([ 1 ], [ 2 ]), and Next button (disabled on last page).
22. SafeSearch & Mature Content Partitioning
Default searchPublicListings() enforces is_mature = false, partitioning 18+ content unless user explicitly unchecks SafeSearch in filter sidebar.
33. Freshness Ordering & Multi-Page Traversal
By default, listings order by updated_at DESC. Items beyond rank 24 are accessible on subsequent pages with state preservation across all active filters.
Parameters & Schema
Field / Endpoint
Type
Description
page
number
1-based page index (default: 1). Omitted from URL on page 1 for clean canonical SEO routing.
pageSize
number
Number of listings displayed per page (EXPLORE_PAGE_SIZE = 24 listings).