{"uid":"cap_MAIG70_g3JhpDqlaxHpFz","slug":"loyal-spark-create-loyalty-program-ab01fe13","name":"Loyal Spark - Create 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/create_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_ityyD-uiYw_fk7ezlQkYP","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":"Creates a new onchain ERC-20 loyalty rewards program on Base L2 for a business or brand","exampleAgentPrompt":"Can you launch a new onchain loyalty rewards program on Loyal Spark for my coffee shop called 'Morning Bloom Rewards', with a token named MBLOOM, so my customers can earn, redeem, and trade reward tokens on Base?","exampleUseCases":[{"title":"Launch branded rewards for e-commerce store","prompt":"I need you to set up an onchain loyalty program on Loyal Spark for my online boutique. Create a token called STYLE that customers can earn when they shop, redeem for discounts, and trade with each other on Base. Make sure it's ready to go live next week."},{"title":"Create community token for restaurant loyalty","prompt":"Can you deploy a blockchain-based rewards program on Loyal Spark for my restaurant group? I want to call it DINE and let our regulars accumulate tokens with every meal, swap them for free dishes, and even trade tokens with friends. Set it up on Base L2 please."},{"title":"Build Web3 loyalty system for fitness brand","prompt":"Help me launch a crypto loyalty program on Loyal Spark for my gym chain. I'd like to create a FITCOIN token that members earn through classes and referrals, can redeem for personal training sessions, and can buy or sell on the open market. Deploy it on Base and get it automated."}],"resultDescription":"Returns a JSON object containing the newly created loyalty program's ID, the deployed ERC-20 token contract address on Base L2, program configuration details, and the onchain transaction reference confirming deployment.","failureModes":["Insufficient USDC balance to cover the $0.01 per-call fee via x402 payment gateway","Invalid or missing required program parameters such as token name or symbol","Smart contract deployment failure on Base L2 due to network congestion","Duplicate program name or token symbol conflict","Authentication or wallet signature verification failure","Malformed request body resulting in a 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need to deploy a new branded ERC-20 loyalty token and program on Base L2 that supports earn, redeem, and peer-to-peer trading mechanics, especially when you want AI agent automation support via REST or MCP. Prefer this over traditional loyalty SaaS when onchain transparency, token tradability, and Web3 composability are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:54:39.632Z","isFirstParty":false}