# Loyal Spark Resolve Recipient

> Loyal Spark Resolve Recipient is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-03).

Resolves a recipient identifier to a wallet address or onchain entity within the Loyal Spark loyalty protocol on Base L2.

## Facts

- Endpoint: GET https://api.loyalspark.online/x402-gateway/resolve-recipient?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-resolve-recipient-d06b08c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i_4AZH1xok_SgVqxmWeWd

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-resolve-recipient-d06b08c6
```

Example prompt: I need to resolve a recipient in my Loyal Spark loyalty program on Base — can you look up who they are and confirm their wallet address before I send them any B20 reward tokens?

## When to prefer this

Use this endpoint when you need to validate or resolve a recipient's onchain identity before sending B20 loyalty tokens, minting rewards, or executing any loyalty program action on Base L2. It is the correct pre-flight step before any token transfer or reward distribution in the Loyal Spark ecosystem, ensuring you have a valid wallet address. Prefer it over directly attempting a transfer when recipient identity is uncertain.

## Known failure modes

- Recipient not found — returns ok: false if the identifier doesn't map to any registered wallet
- Invalid query parameters — malformed input may result in a 400-level error
- Payment failure — missing or invalid x402 USDC payment header returns 402 Payment Required
- Network or Base L2 connectivity issues causing delayed or failed resolution
- Rate limiting if too many resolution requests are made in quick succession

## How this service works

Loyalty rewards: Resolve a customer email, wallet, or @username to a Base wallet. Full wallet only for your own customers; otherwise masked. Onchain loyalty on Base: brands launch rewards in minutes, customers earn with every purchase, AI agents automate the rest via REST and MCP. Pay-only works: the paying wallet is the caller; API key optional. Scoped t...

## Output

Returns a JSON object with an 'ok' boolean indicating success and a 'resource' field confirming 'resolve-recipient', along with the resolved recipient details such as wallet address or onchain identity for use in subsequent loyalty token operations.

## 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",
 "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-resolve-recipient-d06b08c6/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)
