# Loyal Spark Create Reward

> Loyal Spark Create Reward is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Creates a new ERC-20 loyalty reward token on Base L2 for a loyalty program via the Loyal Spark onchain protocol

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/create_reward
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-create-reward-ad900e4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9608ByaNlOIO9CTpIxKKm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-create-reward-ad900e4e -d '<json body>'
```

Example prompt: Launch a new loyalty rewards token on Loyal Spark for my coffee shop Morning Bloom — call the token 'Morning Bloom Rewards' with symbol 'MBR' and set it up so customers can earn and redeem it onchain.

## When to prefer this

Use this endpoint when you need to programmatically deploy a new ERC-20 loyalty reward token on Base L2 as part of setting up a customer loyalty program. Prefer this over manual token deployment tools when building AI-automated loyalty systems or integrating onchain rewards into existing business workflows via REST or MCP.

## Known failure modes

- Insufficient USDC for the $0.01 per-call fee — payment fails via x402 protocol
- Invalid token name or symbol format — returns validation error
- Base L2 network congestion causing transaction timeout
- Duplicate token symbol conflict — returns conflict error
- Missing required reward configuration parameters — returns 400 bad request
- Smart contract deployment failure on Base L2 — returns blockchain error

## How this service works

Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

## Output

Returns a JSON object containing the newly deployed ERC-20 reward token contract address on Base L2, the reward program ID, transaction hash, and configuration details confirming the loyalty program has been created onchain.

## Example request

```json
{
 "id": 1,
 "method": "tools/call",
 "params": {
  "name": "get_platform_info",
  "arguments": {}
 },
 "jsonrpc": "2.0"
}
```

## Request schema (JSON Schema)

```json
{
 "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": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-create-reward-ad900e4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
