API Playground
HTTP examples for the public API. There is no official SDK. Base URL https://api.loyalty.dog/v2. Header Authorization: Bearer.
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.
Live API Testing
Connect your API key and test real endpoints with your actual data.
Response Visualization
Beautiful charts and graphs to visualize API responses and data insights.
HTTP samples
There is no official SDK. The examples on this page are HTTP requests, not a client library.
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.
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.
GET /v2/loyalty/programs HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Accept: application/jsonAPI Response
HTTP/1.1 200
Content-Type: application/json
[]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.
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.Customer push
HTTP POST sends a push notification to an installed customer pass. The public OpenAPI marks the message field as optional.
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 200List gift cards
HTTP GET under /v2/giftcards. Authenticate with Authorization: Bearer. Public routes use the /v2 prefix on https://api.loyalty.dog.
GET /v2/giftcards/programs/{programId}/cards HTTP/1.1
Host: api.loyalty.dog
Authorization: Bearer <secret>
Accept: application/jsonAPI Response
HTTP/1.1 200
Content-Type: application/jsonMCP 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_programsList loyalty programs
get_programGet one program
update_programWrite. Changes program settings
search_customersSearch by email or name
get_customerGet one customer
update_customerWrite. Changes customer fields and can set points
get_customer_transactionsList transactions for one customer
list_passesList wallet passes
get_passGet a pass by pass type identifier
regenerate_passWrite. Pushes a wallet pass update
list_gift_cardsList gift cards
get_gift_cardGet one gift card
get_gift_card_transactionsList gift card transactions
issue_gift_cardWrite. Issues a gift card
redeem_gift_cardWrite. Redeems a balance
get_gift_card_business_reportGift card business report
get_system_healthAPI 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
{
"mcpServers": {
"loyaltydog": {
"command": "uvx",
"args": ["loyaltydog-mcp"],
"env": {
"LOYALTYDOG_API_KEY": "ld_live_your_key_here"
}
}
}
}claude mcp add loyaltydog --env LOYALTYDOG_API_KEY=ld_live_your_key_here -- uvx loyaltydog-mcp
{
"mcpServers": {
"loyaltydog": {
"command": "uvx",
"args": ["loyaltydog-mcp"],
"env": {
"LOYALTYDOG_API_KEY": "ld_live_your_key_here"
}
}
}
}{
"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.