# Loyal Spark Register Program

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

Registers a new onchain loyalty rewards program on the Base L2 network via the Loyal Spark protocol

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/register-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-register-program-9e501d1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0O0jQk_eiaIWQVzWJ35Rz

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-register-program-9e501d1e -d '<json body>'
```

Example prompt: Register a new loyalty rewards program for my coffee shop 'Morning Bloom' on Loyal Spark's onchain protocol — launch it as a branded ERC-20 rewards token on Base so my customers can earn and redeem points.

## When to prefer this

Use this endpoint when you need to programmatically register a new onchain loyalty rewards program on Base L2 via the Loyal Spark protocol, especially when automating business onboarding workflows with AI agents or integrating loyalty program creation into a larger application pipeline. Prefer this over manual dashboard setup when speed, automation, and API-first integration are priorities.

## Known failure modes

- Missing required body fields returns a validation error
- Invalid body type (not json/form-data/text) causes a 400 error
- Payment of $0.01 USDC not included results in 402 Payment Required
- Duplicate program registration may return a conflict error
- Malformed JSON body causes a parsing error
- Network or Base L2 contract failure may result in a 500 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 with an 'ok' boolean indicating success and a 'resource' field confirming the 'register-program' action was completed, signifying the loyalty program has been created onchain 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",
    "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-register-program-9e501d1e/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)
