{"uid":"cap_Vr92X7w1gYb-biNrefz5J","slug":"loyal-spark-mint-loyalty-tokens-fd09602f","name":"Loyal Spark - Mint Loyalty Tokens","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/mint_loyalty_tokens","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":null,"exampleRequest":null,"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_VOMcLGgzsfqZSQHFQrTYw","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":"Mints ERC-20 loyalty reward tokens onchain on Base L2 for a given loyalty program","exampleAgentPrompt":"Mint 500 loyalty tokens for wallet address 0xAbC123... on my 'MorningBloom Coffee' rewards program using Loyal Spark on Base — the customer just made a qualifying purchase.","exampleUseCases":[{"title":"Reward customers after purchase","prompt":"A customer just completed a $75 order on my Sneaker District store — mint them 750 loyalty tokens on Base L2 through my Loyal Spark rewards program so they can start redeeming on their next visit."},{"title":"Onboard new loyalty program members","prompt":"We just had a new member sign up for our 'FreshFit Gym' loyalty program — mint 100 welcome bonus tokens to their wallet 0xDef456... on Base so they have something to start with right away."},{"title":"Automate check-in reward tokens","prompt":"One of our regulars just checked into our 'Harbor Bites' restaurant for the fifth time this month — automatically mint them 200 loyalty tokens on Loyal Spark as a milestone reward for their streak."}],"resultDescription":"Returns a JSON response confirming the onchain mint, including the transaction hash on Base L2, the recipient wallet address, the number of ERC-20 loyalty tokens minted, and the updated token balance for that address.","failureModes":["Invalid or missing recipient wallet address returns a 400 error","Insufficient funds or gas on Base L2 causes transaction failure","Unauthorized request if API credentials are missing or invalid","Token contract address not found or program not configured returns 404","Network congestion on Base L2 may cause delayed confirmation or timeout","Attempting to mint more tokens than the program cap allows returns a limit error"],"whenToPreferThis":"Use this endpoint when you need to programmatically issue onchain ERC-20 loyalty tokens to a specific wallet on Base L2, especially in automated agent workflows triggered by customer actions like purchases or check-ins. Prefer this over off-chain point systems when verifiable, tradeable, or composable token rewards are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:36.650Z","isFirstParty":false}