# The Power Plugin (TPP) — Public API v1.34.2 > Rewards and loyalty redemption platform for casinos and operators: player onboarding, coin wallet, reward catalog, orders with real-world fulfilment, hosted storefront with SSO, webhooks, an events engine for automatic points, and an MCP server so AI agents can operate it. Base URL https://demo-api.thepowerplugin.com. Auth: `Authorization: Bearer tpp__<32 hex>` scoped to one sub-brand. JSON snake_case, money in integer ISO 4217 minor units of `currency` (EUR 15.00 = 1500; CLP has no decimals, 1.000 CLP = 1000). ## Environments Each environment issues its own keys; a key works only where it was issued. - Production: https://api.thepowerplugin.com — `tpp_live_*` keys only - Staging: https://stg-api.thepowerplugin.com — `tpp_test_*` keys issued on staging - Demo (sandbox): https://sandbox.thepowerplugin.com — `tpp_test_*` keys issued on demo Build and verify against staging or demo; the reference's "Try it" console calls those two, never production. ## Start here - [Agent skill (SKILL.md)](https://demo-api.thepowerplugin.com/api/v1/SKILL.md): guided setup an AI coding agent follows — interview, plan, build per surface, verify - [OpenAPI 3.1 specification](https://demo-api.thepowerplugin.com/api/v1/openapi.json): the authoritative, always-current contract - [Integration guide](https://demo-api.thepowerplugin.com/api/v1/guide): the five calls, quick start, partner guarantees - [API reference](https://demo-api.thepowerplugin.com/api/v1/docs): interactive Scalar reference with a live "Try it" console - [Agentic integration](https://demo-api.thepowerplugin.com/api/v1/agents): install the skill in Claude Code, Cursor, Codex or any agent ## Skill references (load per surface) - [api-core](https://demo-api.thepowerplugin.com/api/v1/skill/references/api-core.md) - [events-engine](https://demo-api.thepowerplugin.com/api/v1/skill/references/events-engine.md) - [mcp](https://demo-api.thepowerplugin.com/api/v1/skill/references/mcp.md) - [order-confirmation](https://demo-api.thepowerplugin.com/api/v1/skill/references/order-confirmation.md) - [raffles](https://demo-api.thepowerplugin.com/api/v1/skill/references/raffles.md) - [shipping-window](https://demo-api.thepowerplugin.com/api/v1/skill/references/shipping-window.md) - [storefront-embed](https://demo-api.thepowerplugin.com/api/v1/skill/references/storefront-embed.md) - [tpp-side-checklist](https://demo-api.thepowerplugin.com/api/v1/skill/references/tpp-side-checklist.md) - [verify](https://demo-api.thepowerplugin.com/api/v1/skill/references/verify.md) - [webhook-events](https://demo-api.thepowerplugin.com/api/v1/skill/references/webhook-events.md) - [webhook-operations](https://demo-api.thepowerplugin.com/api/v1/skill/references/webhook-operations.md) - [webhooks](https://demo-api.thepowerplugin.com/api/v1/skill/references/webhooks.md) - [verify.sh](https://demo-api.thepowerplugin.com/api/v1/skill/scripts/verify.sh): acceptance checks against a test environment - [install.sh](https://demo-api.thepowerplugin.com/api/v1/skill/install.sh): install the whole bundle into a skills folder ## Agents and automation - [MCP endpoint](https://demo.thepowerplugin.com/api/mcp): Streamable HTTP, stateless, same bearer key as the API of that environment - [MCP tool manifest](https://demo.thepowerplugin.com/api/mcp/tools): JSON Schema per tool - [MCP connector guide](https://demo-api.thepowerplugin.com/api/v1/mcp) - [Events Engine guide](https://demo-api.thepowerplugin.com/api/v1/engine): deliver events, TPP moves points exactly once ## Optional - [Health check](https://demo-api.thepowerplugin.com/api/v1/health): verify a key (requires the bearer)