# Loyal Spark - List Rewards for Program

> Loyal Spark - List Rewards for Program 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-14).

Retrieves all ERC-20 reward tokens available within a specific loyalty program on the Base L2 blockchain

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/recipient-mcp-tools/list_rewards_for_program
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-list-rewards-for-program-f43b6426
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iLNhXh9PuWwVKAa47hHkW

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-list-rewards-for-program-f43b6426 -d '<json body>'
```

Example prompt: Show me all the reward tokens available in my Loyal Spark loyalty program — the program ID is lp_abc123.

## When to prefer this

Use this endpoint when you need to discover or display the full catalog of ERC-20 reward tokens configured within a specific Loyal Spark loyalty program on Base L2, particularly for building reward dashboards, agent-driven redemption flows, or P2P trading interfaces.

## Known failure modes

- Invalid or non-existent program ID returns error or empty list
- Payment failure (insufficient USDC) results in 402 response
- Network or Base L2 RPC unavailability causes timeout or 503
- Malformed request body returns 400 bad request

## 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

A JSON list of ERC-20 reward tokens associated with the specified loyalty program, including token names, contract addresses, and reward details available on Base L2.

## 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-list-rewards-for-program-f43b6426/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)
