Admin endpoints.
Platform administration via the Agent API, covering partner management, member search, and analytics.
On this page
Admin Integration API keys give platform administrators programmatic access to manage partners, view cross-platform member data, and pull analytics. Ideal for CRM syncs and SaaS billing dashboards.
This page covers the core admin endpoints. The platform, records, search, support, settings and approval endpoints are in Admin tools and in the OpenAPI spec at /api/agent/docs.json.
Base URL
/api/agent/v1/admin/
All endpoints require an admin-type Integration API key (rl_admin_***).
Partners
List partners
GET /api/agent/v1/admin/partners
Scope: read:partners
| Parameter | Type | Description |
|---|---|---|
is_active |
boolean | Filter by active status |
search |
string | Search by name or email |
per_page |
integer | Results per page (1–100, default 25) |
page |
integer | Page number |
Response:
{
"error": false,
"data": [
{
"id": "uuid",
"name": "Coffee Corner",
"email": "[email protected]",
"locale": "en_US",
"currency": "USD",
"time_zone": "America/New_York",
"is_active": true,
"avatar": null,
"created_at": "2026-01-15T10:00:00Z"
}
],
"pagination": {
"current_page": 1,
"last_page": 3,
"per_page": 25,
"total": 72
}
}
Show partner
GET /api/agent/v1/admin/partners/{id}
Scope: read:partners
Returns the partner profile along with their permissions and usage counts.
{
"error": false,
"data": {
"id": "uuid",
"name": "Coffee Corner",
"email": "[email protected]",
"is_active": true,
"permissions": {
"loyalty_cards_permission": true,
"loyalty_cards_limit": -1,
"stamp_cards_permission": true,
"stamp_cards_limit": -1,
"vouchers_permission": true,
"agent_api_permission": true,
"agent_keys_limit": 10
},
"usage": {
"loyalty_cards": 3,
"stamp_cards": 1,
"vouchers": 5,
"rewards": 8,
"staff_members": 2
}
}
}
Update permissions
PATCH /api/agent/v1/admin/partners/{id}/permissions
Scope: write:partners
Update a partner's feature permissions and usage limits. Use this when your billing integration changes a partner's limits.
| Field | Type | Description |
|---|---|---|
loyalty_cards_permission |
boolean | Whether partner can create loyalty cards |
loyalty_cards_limit |
integer | Max loyalty cards (-1 = unlimited) |
stamp_cards_permission |
boolean | Whether partner can create stamp cards |
stamp_cards_limit |
integer | Max stamp cards (-1 = unlimited) |
vouchers_permission |
boolean | Whether partner can create vouchers |
voucher_batches_permission |
boolean | Whether partner can generate voucher batches |
vouchers_limit |
integer | Max vouchers (-1 = unlimited) |
rewards_limit |
integer | Max rewards (-1 = unlimited) |
staff_members_limit |
integer | Max staff members (-1 = unlimited) |
email_campaigns_permission |
boolean | Whether partner can send email campaigns |
activity_permission |
boolean | Whether partner can view activity logs |
agent_api_permission |
boolean | Whether partner can create Integration API keys |
apple_wallet_permission |
boolean | Override Apple Wallet access for this partner |
agent_keys_limit |
integer | Max Integration API keys (-1 = unlimited, default: 5) |
cards_on_homepage |
boolean | Whether partner's cards appear on the homepage |
Request:
{
"agent_api_permission": true,
"agent_keys_limit": 10,
"loyalty_cards_limit": 5
}
Activate / deactivate partner
POST /api/agent/v1/admin/partners/{id}/activate
POST /api/agent/v1/admin/partners/{id}/deactivate
Scope: write:partners
Sets the partner's is_active flag. Once a partner is deactivated, every Integration API key it owns stops working (the auth middleware checks ownerIsActive).
Activating works at once. Deactivating answers 202 with an approval and changes nothing until the platform owner approves it on the review page, like any change marked confirm. See Idempotency and approvals.
Members
List and show read members. Update member changes a member's profile and email choices. Other member records change through partner transactions (auto-enrollment) or member self-service. The endpoints listed in Admin tools can also delete and correct members.
List members
GET /api/agent/v1/admin/members
Scope: read:members
| Parameter | Type | Description |
|---|---|---|
search |
string | Search by name, email, or unique_identifier |
is_active |
boolean | Filter by active status |
per_page |
integer | Results per page (1–100, default 25) |
Each member in the list carries the same profile fields and consents as Show member.
Show member
GET /api/agent/v1/admin/members/{id}
Scope: read:members
Returns member profile with all card balances.
{
"error": false,
"data": {
"id": "uuid",
"name": "Jane Doe",
"email": "[email protected]",
"unique_identifier": "846-346-383-611",
"is_active": true,
"is_anonymous": false,
"birthday": "1990-04-12",
"gender": "female",
"phone": "+5215512345678",
"phone_country": "MX",
"time_zone": "America/Mexico_City",
"currency": "MXN",
"email_verified_at": "2026-01-01T00:05:00+00:00",
"consents": {
"loyalty_emails": { "state": "subscribed", "updated_at": "2026-01-01T00:00:00+00:00", "source": "registration" },
"marketing_emails": { "state": "not_subscribed", "updated_at": null, "source": null }
},
"accepts_emails": false,
"accepts_loyalty_emails": true,
"card_balances": [
{
"card_id": "uuid",
"card_title": "Coffee Rewards",
"club_name": "General",
"balance": 250,
"currency": "USD"
}
]
}
}
The profile fields use the same formats as Get profile on the member API: gender is male, female, prefer_not_to_say, or null; phone is E.164 with its two-letter phone_country.
Update member
PATCH /api/agent/v1/admin/members/{id}
Scope: write:members
This is the admin_update_member operation. Send only the fields that change. Next to name, email, language, time zone, the active switch, and email choices, it accepts:
| Field | Accepts |
|---|---|
birthday |
YYYY-MM-DD, before today. null removes it |
gender |
male, female, prefer_not_to_say, or null |
phone |
E.164 number, such as +5215512345678. null removes it |
phone_country |
Two-letter country, such as MX. Required with phone |
{
"birthday": "1990-04-12",
"phone": "+5215512345678",
"phone_country": "MX"
}
The API checks that the dial code belongs to phone_country and that the number has at most 15 digits. Two members can share a phone number. A change to an email choice is recorded as consent evidence with the admin as the actor.
Stored-money oversight
Both routes require an admin key with the explicit read:money scope. The admin scope alone does not grant access. They read records across businesses and have no prepaid-sales plan gate.
| Method | Endpoint | Operation |
|---|---|---|
GET |
/admin/money/overview |
admin_get_money_overview |
GET |
/admin/money/records/{kind}/{id} |
admin_get_money_record |
The overview accepts kind=accounts (default) or kind=sales, currency, and state. Account states are pending or restricted; sale states are unclaimed, issued, pending, refunded or voided.
Both routes accept history filters: event, source, actor_type, from, and to. Dates use YYYY-MM-DD in the key owner's time zone. Use page and per_page for pagination, with 25 rows by default and at most 100. Tool discovery lists the current filter enums.
The overview returns kind, data, pagination, a dashboard url and basis explanations. Use a returned ID with {kind} set to accounts or sales to open one record. The record response contains data, newest-first history, and pagination, including issuer details, amounts, state, retention and hold information. Account records also include refunds. Amounts use integer minor units and a currency code.
Refunds, corrections, holds and setup changes stay in the web dashboard. These endpoints cannot move money or confirm an external payment.
Analytics
Platform overview
GET /api/agent/v1/admin/analytics/overview
Scope: read:analytics
Returns platform-wide aggregate metrics.
{
"error": false,
"data": {
"total_partners": 45,
"active_partners": 42,
"total_members": 12500,
"total_cards": 38,
"total_stamp_cards": 15,
"total_vouchers": 92,
"transactions_today": 340,
"transactions_this_week": 2100,
"transactions_this_month": 8500
}
}
Per-partner metrics
GET /api/agent/v1/admin/analytics/partners/{id}
Scope: read:analytics
Detailed usage breakdown for a specific partner.
{
"error": false,
"data": {
"partner_id": "uuid",
"partner_name": "Coffee Corner",
"is_active": true,
"loyalty_cards": 3,
"stamp_cards": 1,
"vouchers": 5,
"rewards": 8,
"staff_members": 2,
"total_transactions": 15420,
"transactions_today": 45,
"total_members_enrolled": 1250
}
}
Admin scopes
| Scope | Grants |
|---|---|
read:partners |
List and view all partners |
write:partners |
Update permissions and limits; activate/deactivate partners |
read:members |
Platform-wide member search and details |
read:analytics |
Platform and per-partner analytics |
admin |
All of the above (super-scope) |
Integration recipes
CRM sync
# Sync partner list to CRM
GET /api/agent/v1/admin/partners?is_active=true
# Push metrics to monitoring dashboard
GET /api/agent/v1/admin/analytics/overview
SaaS billing tier change
# Upgrade partner to premium tier
PATCH /api/agent/v1/admin/partners/{id}/permissions
{
"loyalty_cards_limit": -1,
"stamp_cards_limit": -1,
"vouchers_limit": -1,
"agent_api_permission": true,
"agent_keys_limit": 20
}
Member lookup
# Find a member across all partners
GET /api/agent/v1/admin/[email protected]
# Get their card balances
GET /api/agent/v1/admin/members/{id}