# Loyal Spark - Program Status Workflow

> Loyal Spark - Program Status Workflow is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Checks the current status of a loyalty rewards program on the Loyal Spark onchain platform (Base L2)

## Facts

- Endpoint: GET https://api.loyalspark.online/x402-gateway/workflow/program-status?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-program-status-workflow-8d5ce3d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DncCkBR8DoF_3jAxgL9pT

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-program-status-workflow-8d5ce3d3
```

Example prompt: Can you check the current status of my loyalty rewards program on Loyal Spark — is it active and running on Base?

## When to prefer this

Use this endpoint when you need to programmatically verify that a Loyal Spark loyalty program is active and operational on Base L2 before issuing rewards, onboarding customers, or triggering downstream loyalty workflows. Prefer this over general blockchain explorers when you want a structured, API-level status response tied to Loyal Spark's workflow orchestration layer.

## Known failure modes

- Invalid or missing program identifier in request body returns an error
- Program not found or not yet deployed returns a failed status
- Malformed request body (wrong bodyType or missing required fields) causes a 400-level error
- Payment failure or insufficient USDC balance blocks the x402-gated request
- Base L2 node connectivity issues may cause timeouts or unavailable responses

## 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. On the paid retry send the payment together with header x-api-key: lsk_... or Authorization: Bearer lsk_.... A payment without a live key is not charged. Read key, no browser: POST https://api.loyalspark.online/x402-gateway/register-agent. HTTP 402 is $0.01 USDC on Base. Pay it and do not send an API key. You receive lsk_ once, scope read only: list your programs, rewards, balances, and analytics. That key cannot mint, deploy a program, create rewards, or trade. A new wallet gets a 45-day Pro trial (5 agents, 10,000 calls/month), then Free (1 agent, 200 calls/month, 1,000 tokens minted/month, 1.25% mint fee) unless that wallet pays. The $0.01 is the call price, not a subscription. No free seat returns 403 before any charge. Write scopes (mint, create_program, manage_rewards, trade) use the same plan: dashboard https://loyalspark.online/merchant → AI Agents, or free SIWE — POST https://api.loyalspark.online/siwe-nonce, sign Chain ID 8453 with the exact phrase 'Register Loyal Spark merchant agent', then POST {message, signature, name, scopes} to https://api.loyalspark.online/agent-register-siwe. Look first with no key: GET https://api.loyalspark.online/x402-gateway/public-programs ($0.001, active programs, not your own list). Guide: https://loyalspark.online/.well-known/skills/00-getting-started.md The call is scoped to the wallet behind that 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 workflow endpoint path (e.g. workflow/program-status), along with the current status details of the queried loyalty program.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "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-program-status-workflow-8d5ce3d3/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)
