# Loyal Spark - Activate Loyalty Program

> Loyal Spark - Activate Loyalty 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).

Activates an onchain ERC-20 loyalty rewards program on Base L2 for a business or protocol via the Loyal Spark platform

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/activate_loyalty_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-activate-loyalty-program-6206a558
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__OO5RwhZIrWZER9hI-9GQ

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-activate-loyalty-program-6206a558 -d '<json body>'
```

Example prompt: Activate a new Loyal Spark loyalty program for my coffee shop 'Morning Bloom' on Base L2 — I want to launch an ERC-20 rewards token so customers can earn, redeem, and trade points peer-to-peer.

## When to prefer this

Choose this endpoint when you need to bootstrap a brand-new onchain loyalty program on Base L2 for a business or protocol — specifically when the goal is to deploy an ERC-20 token that supports earning, redemption, and P2P trading. Prefer this over generic token deployment tools because it bundles loyalty-specific logic, AI agent automation hooks, and REST/MCP interoperability in a single activation step.

## Known failure modes

- Invalid or missing program configuration parameters — returns 400 with validation error
- Insufficient USDC for the $0.01 x402 payment — returns 402 Payment Required
- Duplicate program activation attempt for same merchant — returns 409 Conflict
- Base L2 network congestion causing timeout — returns 503 Service Unavailable
- Unauthorized caller without valid credentials — returns 401 Unauthorized
- Smart contract deployment failure on Base — returns 500 with onchain error details

## 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 confirming the loyalty program activation, including the deployed ERC-20 token contract address on Base L2, the assigned program ID, and onchain transaction details confirming the program is live and ready for reward issuance.

## 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-activate-loyalty-program-6206a558/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)
