API Playground

HTTP examples for the public API. There is no official SDK. Base URL https://api.loyalty.dog/v2. Header Authorization: Bearer.

Interactive features coming soon - explore examples below

Interactive Playground Features

We're building powerful tools to help you test and explore our API capabilities.

Interactive Code Editor

Write and test API calls in real-time with syntax highlighting and auto-completion.

Coming Soon

Live API Testing

Connect your API key and test real endpoints with your actual data.

Coming Soon

Response Visualization

Beautiful charts and graphs to visualize API responses and data insights.

Coming Soon

HTTP samples

There is no official SDK. The examples on this page are HTTP requests, not a client library.

Coming Soon

API Code Examples

Requests below are HTTP against the public OpenAPI. They are not an SDK, and the public API does not publish ML model ids.

HTTP

List programs

HTTP GET. The quickstart says a successful call returns a JSON array of programs, and an empty array is success when you have none yet. This is not an SDK call.

list_programs.http
GET /v2/loyalty/programs HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Accept: application/json

API Response

HTTP/1.1 200
Content-Type: application/json

[]
HTTP

Add points

HTTP POST. The public OpenAPI requires a JSON body with an integer points field and returns the updated customer as a JSON object.

add_points.http
POST /v2/loyalty/programs/{programId}/customers/{customerId}/points/add HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Content-Type: application/json

{"points": 10}

API Response

HTTP/1.1 200
Content-Type: application/json

A JSON object of the updated customer.
The public schema does not list those fields.
HTTP

Customer push

HTTP POST sends a push notification to an installed customer pass. The public OpenAPI marks the message field as optional.

customer_push.http
POST /v2/loyalty/programs/{programId}/customers/{customerId}/push HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Content-Type: application/json

{"message": "Your points were updated"}

API Response

HTTP/1.1 200
HTTP

List gift cards

HTTP GET under /v2/giftcards. Authenticate with Authorization: Bearer. Public routes use the /v2 prefix on https://api.loyalty.dog.

list_gift_cards.http
GET /v2/giftcards/programs/{programId}/cards HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Accept: application/json

API Response

HTTP/1.1 200
Content-Type: application/json
Available Now

MCP Integration

The MCP server is a local HTTP wrapper around the REST API. Install the published package with uvx loyaltydog-mcp (Python 3.10+). pipx run loyaltydog-mcp and pip install loyaltydog-mcp also work. It still calls https://api.loyalty.dog/v2 with Authorization: Bearer.

17 tools in loyaltydog-mcp 0.1.0

Docs say package 0.1.0 exposes 17 tools and that five of them write. The server in core_api also registers get_square_health and get_wordpress_eligible_awards, so that tree has 19 tools. list_program_rules and lookup_gift_card_balance are documented for the next package and are not registered in the current server. search_customers on that server takes email or name, not phone.

list_programs

List loyalty programs

get_program

Get one program

update_program

Write. Changes program settings

search_customers

Search by email or name

get_customer

Get one customer

update_customer

Write. Changes customer fields and can set points

get_customer_transactions

List transactions for one customer

list_passes

List wallet passes

get_pass

Get a pass by pass type identifier

regenerate_pass

Write. Pushes a wallet pass update

list_gift_cards

List gift cards

get_gift_card

Get one gift card

get_gift_card_transactions

List gift card transactions

issue_gift_card

Write. Issues a gift card

redeem_gift_card

Write. Redeems a balance

get_gift_card_business_report

Gift card business report

get_system_health

API health

Setup

Published install guide: set LOYALTYDOG_API_KEY to an ld_live_, ld_test_, or JWT app key. LOYALTYDOG_API_URL is optional and defaults to https://api.loyalty.dog/v2 in that guide. The same guide says LOYALTYDOG_API_TOKEN still works when LOYALTYDOG_API_KEY is unset.

The MCP server checked into core_api reads LOYALTYDOG_API_TOKEN and does not define LOYALTYDOG_API_KEY. Its default LOYALTYDOG_API_URL is http://localhost:8000/v2 unless you set the production URL.

uvx loyaltydog-mcp
Claude Desktopclaude_desktop_config.json (macOS or Windows)
{
  "mcpServers": {
    "loyaltydog": {
      "command": "uvx",
      "args": ["loyaltydog-mcp"],
      "env": {
        "LOYALTYDOG_API_KEY": "ld_live_your_key_here"
      }
    }
  }
}
Claude Code (CLI)Run once in your terminal
claude mcp add loyaltydog --env LOYALTYDOG_API_KEY=ld_live_your_key_here -- uvx loyaltydog-mcp
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "loyaltydog": {
      "command": "uvx",
      "args": ["loyaltydog-mcp"],
      "env": {
        "LOYALTYDOG_API_KEY": "ld_live_your_key_here"
      }
    }
  }
}
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "loyaltydog": {
      "command": "uvx",
      "args": ["loyaltydog-mcp"],
      "env": {
        "LOYALTYDOG_API_KEY": "ld_live_your_key_here"
      }
    }
  }
}

Ready to Start Building?

The interactive editor is not live. Call the HTTP API from the docs. There is no free Public API plan. Standard is $29, Growth is $59, and Scale is $119 per month.

Get Notified When Playground Launches

Be the first to know when our interactive playground goes live with hands-on API testing tools.