{"uid":"cap_sjZl22iO62C7WukQwZ74w","slug":"loyal-spark-onchain-loyalty-token-mint-b6129864","name":"Loyal Spark Onchain Loyalty Token Mint","description":"Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.","url":"https://api.loyalspark.online/x402-gateway/mint","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}},"inputSchema":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema"},"description":"JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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_Ms6WhSYmQnlU7udlnwyiR","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 on Base Network for a business's loyalty program via the x402 gateway","exampleAgentPrompt":"Mint some Loyal Spark loyalty reward tokens for customer wallet 0xABC123 on my coffee shop Morning Bloom's program — they just made a $25 purchase and should receive their branded ERC-20 points on Base network.","exampleUseCases":[{"title":"Automate post-purchase rewards for ecommerce","prompt":"Every time someone completes a purchase in our online store, automatically mint our branded loyalty tokens to their wallet on Base — give them 1 token per dollar spent so they can start accumulating rewards right away."},{"title":"Incentivize referrals with onchain points","prompt":"When a customer successfully refers a friend to our fitness app and that friend signs up, mint referral bonus tokens to the referrer's wallet — make it 50 branded ERC-20 points per successful referral so we can track engagement onchain."},{"title":"Reward customer milestones with tokens","prompt":"Check our customer database for anyone hitting their 10th visit this month, then mint them a special loyalty token bonus on Base Network — give them 100 points to celebrate the milestone and encourage them to keep coming back."}],"resultDescription":"Returns a JSON response from the Loyal Spark agent-api or recipient-api confirming the token mint, including transaction details, token amount issued, recipient address, and onchain status on Base Network.","failureModes":["Invalid or missing required body fields (type, method, bodyType, body) returns 400 validation error","Insufficient USDC payment ($0.01 required) causes x402 payment failure","Unsupported HTTP method (only POST, PUT, PATCH allowed) returns schema validation error","Invalid wallet address or business account returns API-level error","Base Network congestion or RPC failure causes delayed or failed mint","Malformed JSON body returns parse error"],"whenToPreferThis":"Choose this endpoint when you need to programmatically mint ERC-20 loyalty tokens on Base Network as part of a Loyal Spark rewards program — specifically when automating post-purchase reward issuance for businesses using the Loyal Spark platform. Prefer this over generic NFT mint APIs when the use case is fungible loyalty points tied to a business's branded program on Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:30:27.350Z","isFirstParty":false}