{"uid":"cap_cK_SKPynFe6VAE0DV7rPc","slug":"loyal-spark-create-personalized-offer-b057e5ab","name":"Loyal Spark Create Personalized Offer","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_personalized_offer","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_V2X5-nntOa3XPaUgSWg4Q","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":"Generates an AI-driven personalized loyalty offer for a specific customer based on their onchain activity and preferences on the Loyal Spark Base L2 protocol.","exampleAgentPrompt":"Using Loyal Spark, create a personalized loyalty offer for wallet 0xABC123 in my rewards program 'CoffeeClub' — give them 50 SPARK tokens if they make 3 purchases this week, valid for 7 days.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the generated personalized offer details including a unique offer ID, the targeted wallet address, reward token amount, qualifying conditions, activation status, and offer expiry timestamp on the Loyal Spark Base L2 protocol.","failureModes":["Invalid or missing wallet address returns 400 Bad Request","Unknown loyalty program ID returns 404 Not Found","Insufficient offer parameters returns 422 Unprocessable Entity","Payment of $0.01 USDC not received returns 402 Payment Required","Rate limiting or quota exceeded returns 429 Too Many Requests","Base L2 network congestion may cause delayed offer creation"],"whenToPreferThis":"Choose this endpoint when you need to generate AI-personalized, onchain loyalty offers for individual customers within the Loyal Spark protocol on Base L2, especially when automating reward campaigns via AI agents or MCP tooling. Prefer this over generic offer creation when personalization based on customer wallet history and behavior is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:43:24.833Z","isFirstParty":false}