{"uid":"cap__OO5RwhZIrWZER9hI-9GQ","slug":"loyal-spark-activate-loyalty-program-6206a558","name":"Loyal Spark - Activate Loyalty Program","description":"Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.","url":"https://api.loyalspark.online/x402-gateway/mcp-tools/activate_loyalty_program","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","toolName","inputSchema"],"properties":{"type":{"type":"string","const":"mcp"},"example":{"type":"object"},"toolName":{"type":"string"},"transport":{"enum":["streamable-http","sse"],"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json"},"example":{"request":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"response":{"id":1,"result":{"content":[{"text":"{\"name\":\"Loyal Spark\",\"chain\":\"Base L2\",\"chain_id\":8453,\"token_standard\":\"ERC-20\",\"features\":[\"loyalty_programs\",\"rewards\",\"marketplace\",\"tiers\",\"referrals\",\"vouchers\",\"analytics\"],\"api_docs\":\"https://loyalspark.online/api-docs\"}","type":"text"}]},"jsonrpc":"2.0"}},"exampleRequest":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GrWwgtjUfoTyzH8edfnbD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Activates an onchain ERC-20 loyalty rewards program on Base L2 for a business or protocol via the Loyal Spark platform","exampleAgentPrompt":"Activate a new Loyal Spark loyalty program for my coffee shop 'Morning Bloom' on Base L2 — I want to launch an ERC-20 rewards token so customers can earn, redeem, and trade points peer-to-peer.","exampleUseCases":null,"resultDescription":"Returns a JSON object confirming the loyalty program activation, including the deployed ERC-20 token contract address on Base L2, the assigned program ID, and onchain transaction details confirming the program is live and ready for reward issuance.","failureModes":["Invalid or missing program configuration parameters — returns 400 with validation error","Insufficient USDC for the $0.01 x402 payment — returns 402 Payment Required","Duplicate program activation attempt for same merchant — returns 409 Conflict","Base L2 network congestion causing timeout — returns 503 Service Unavailable","Unauthorized caller without valid credentials — returns 401 Unauthorized","Smart contract deployment failure on Base — returns 500 with onchain error details"],"whenToPreferThis":"Choose this endpoint when you need to bootstrap a brand-new onchain loyalty program on Base L2 for a business or protocol — specifically when the goal is to deploy an ERC-20 token that supports earning, redemption, and P2P trading. Prefer this over generic token deployment tools because it bundles loyalty-specific logic, AI agent automation hooks, and REST/MCP interoperability in a single activation step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:51.444Z","isFirstParty":false}