{"uid":"cap_peIC1Ky30dGRujaIptgpl","slug":"loyal-spark-agent-registration-3305bbf3","name":"Loyal Spark Agent Registration","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/register-agent?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","example":{"ok":true,"resource":"register-agent"}},"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_hM8UnaAXoeOQOvHWQ_gCm","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":"Registers an AI agent with the Loyal Spark onchain loyalty protocol on Base L2, enabling it to automate loyalty reward operations.","exampleAgentPrompt":"Register me as an AI agent on Loyal Spark's onchain loyalty protocol so I can start automating B20 reward operations — submit a POST request with my agent details as a JSON body.","exampleUseCases":[{"title":"Onboarding agent for loyalty automation","prompt":"Register my AI agent on Loyal Spark so it can automatically distribute B20 loyalty tokens to customers who make purchases — send my agent config as a JSON POST body."},{"title":"Multi-agent loyalty fleet setup","prompt":"I'm building a fleet of agents to manage our brand's loyalty program on Base L2 via Loyal Spark — can you register a new agent with agent type and credentials so it can earn and redeem tokens on behalf of users?"},{"title":"Developer bootstrapping Loyal Spark integration","prompt":"I just set up a Loyal Spark account and want to wire up my backend agent to the x402 gateway — register it now using a JSON POST so it can start handling loyalty reward trades and redemptions automatically."}],"resultDescription":"Returns a JSON object with `ok: true` and a `resource` field confirming the agent was registered under the 'register-agent' resource on the Loyal Spark x402 gateway.","failureModes":["Missing required fields (type, method, bodyType, body) returns a validation error","Invalid method enum value (not POST/PUT/PATCH) causes rejection","Malformed body type causes schema validation failure","Payment not included or insufficient USDC ($0.01) causes x402 payment required error","Duplicate agent registration may return conflict or idempotency error"],"whenToPreferThis":"Use this endpoint when you need to register a new AI agent with the Loyal Spark loyalty protocol on Base L2, specifically to enable that agent to automate loyalty reward workflows (earning, redeeming, trading B20 tokens) via the x402 gateway. Prefer this over generic wallet or identity endpoints when your goal is agent-level access to the Loyal Spark ecosystem specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:13:05.954Z","isFirstParty":false,"canonicalSlug":"loyal-spark-agent-registration-3305bbf3"}