Skip to content

Agent API for loyalty operations.

Connect POS systems, backend services, and software agents to Reward Loyalty through scoped, key-based access.

Access by role.

Every key belongs to an administrator, partner, or verified member. Its owner and scopes determine which operations it can perform.

Administrator
Manage installation-level resources with administrator-owned keys and scopes.
Partner
Manage one business’s programs, staff, transactions, passes, achievements, and reports within partner scope.
Member
Read and act for the verified member who owns the key, without exposing another member or partner relationship.

Make your first request.

Enable the Agent API, create a key, and call the health endpoint to confirm its role, scopes, and owner.

GET /api/agent/v1/health HTTP/1.1
Host: your-domain.com
Accept: application/json
X-Agent-Key: <YOUR_API_KEY>

Send the request over HTTPS to your installation. Keep the API key on your server.

Integration responsibilities
  • Your integration controls prompts, tool selection, secret handling, and business authorization. Some changes answer with an approval request and wait for the owner in Reward Loyalty. The Agent API does not include an AI.
  • Member, partner, and administrator keys have different scope and ownership rules. Use the narrowest key that can complete the workflow.
  • Before live writes, test invalid input, missing scope, wrong tenant, rate limits, duplicate commands, and timeout handling. Keep monitoring, key rotation, and revocation in place.
  • Use the generated specification and maintained documentation for current endpoints, scopes, and tool definitions.

Choose the right interface.

Agent API
Use scoped Integration API keys for machine-to-machine requests. Each key has an owner and explicit permissions; requests leave audit records.
REST API
Use session-based authentication for signed-in product clients and custom interfaces.
Webhooks
Receive signed notifications after supported loyalty events commit, with delivery history and retry behavior.
AI connections
Let a person ask Claude, ChatGPT, Claude Code or another MCP client to run Agent API operations at one address, /mcp, with browser sign-in or a key. Risky changes wait for the owner’s approval. Run Reward Loyalty from an AI client