{"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. On the paid retry send the payment together with header x-api-key: lsk_... or Authorization: Bearer lsk_.... A payment without a live key is not charged. Read key, no browser: POST https://api.loyalspark.online/x402-gateway/register-agent. HTTP 402 is $0.01 USDC on Base. Pay it and do not send an API key. You receive lsk_ once, scope read only: list your programs, rewards, balances, and analytics. That key cannot mint, deploy a program, create rewards, or trade. A new wallet gets a 45-day Pro trial (5 agents, 10,000 calls/month), then Free (1 agent, 200 calls/month, 1,000 tokens minted/month, 1.25% mint fee) unless that wallet pays. The $0.01 is the call price, not a subscription. No free seat returns 403 before any charge. Write scopes (mint, create_program, manage_rewards, trade) use the same plan: dashboard https://loyalspark.online/merchant → AI Agents, or free SIWE — POST https://api.loyalspark.online/siwe-nonce, sign Chain ID 8453 with the exact phrase 'Register Loyal Spark merchant agent', then POST {message, signature, name, scopes} to https://api.loyalspark.online/agent-register-siwe. Look first with no key: GET https://api.loyalspark.online/x402-gateway/public-programs ($0.001, active programs, not your own list). Guide: https://loyalspark.online/.well-known/skills/00-getting-started.md The call is scoped to the wallet behind that key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.","url":"https://api.loyalspark.online/x402-gateway/mint?utm_source=zero.xyz","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-10-28T06:33:39.172Z","isFirstParty":false,"canonicalSlug":"loyal-spark-onchain-loyalty-token-mint-b6129864"}