# Loyal Spark - Get My Profile

> Loyal Spark - Get My Profile 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).

Retrieves the authenticated user's profile information from the Loyal Spark onchain loyalty protocol on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/get_my_profile
- 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-get-my-profile-9718c96d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DtUSimMyIklw366D14b2U

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-get-my-profile-9718c96d -d '<json body>'
```

Example prompt: Pull up my profile on Loyal Spark — I want to see my loyalty account details, token balances, and any membership info tied to my wallet on the Base network.

## When to prefer this

Use this endpoint when an AI agent needs to retrieve the current authenticated user's own loyalty profile, account status, token balances, or membership details from the Loyal Spark platform. Prefer this over platform info endpoints when the query is user-specific rather than platform-wide.

## Known failure modes

- Authentication failure if wallet credentials are invalid or missing
- JSON-RPC method mismatch if 'method' or 'name' fields are incorrect
- Profile not found if the wallet has no Loyal Spark account
- Network error connecting to Base L2
- Payment failure if 0.01 USDC micropayment via x402 is not completed
- Rate limiting if too many requests are made in quick succession

## 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-RPC 2.0 response containing the authenticated user's profile data from the Loyal Spark loyalty protocol, likely including wallet address, loyalty token balances, membership tier, earned and redeemable rewards, and account metadata.

## 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-get-my-profile-9718c96d/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)
