# 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-13).

Activates a new onchain ERC-20 loyalty rewards program on Base L2 for a business or brand.

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/activate-program
- 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-activate-loyalty-program-9f485f23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q-8cNbGwhD9-27Hf0jKk6

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-9f485f23 -d '<json body>'
```

Example prompt: Activate a new Loyal Spark onchain loyalty program for my coffee shop 'Morning Bloom' — set it up on Base L2 so customers can earn ERC-20 reward tokens, redeem them, and trade them peer-to-peer.

## When to prefer this

Choose this endpoint when you need to deploy a new branded onchain loyalty rewards program using ERC-20 tokens on Base L2, especially when you want AI agent automation support, peer-to-peer token trading, and REST/MCP integration. Prefer this over traditional Web2 loyalty SaaS when blockchain transparency, token portability, and crypto-native reward mechanics are required.

## Known failure modes

- Missing required input fields returns a 400 validation error
- Invalid body type or method enum value causes a schema rejection
- Insufficient USDC balance to cover the $0.01 x402 payment fee causes a 402 payment required error
- Malformed program configuration body may return a 422 unprocessable entity
- Network or blockchain congestion may cause a timeout or 503 error

## How this service works

Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.

## Output

Returns a JSON object confirming activation with {ok: true, resource: 'activate-program'}, indicating the loyalty program has been successfully initialized on the Base L2 blockchain.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
 },
 "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-activate-loyalty-program-9f485f23/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)
