Skip to main content

Admin

Info

The Admin API provides endpoints for user authentication, session management, user creation, API key management, and audit logging.

Features

Authentication

JWT-based login with refresh token rotation

User Management

Create and manage system users with roles

API Keys

Generate and manage API keys for integrations

Audit Logs

Track all system actions and changes


Endpoints


User Roles

RoleAccess Level
system_adminFull system access
compliance_userCompliance monitoring
support_userCustomer support
sales_userSales operations
audit_userRead-only audit access
super_agentAgent network management
sub_agentField agent operations
processorPOS merchant dashboard

Authentication Flow

Login

Call /admin/login with credentials to receive access token (15 min) and refresh token (7 days)

Use Token

Include access token in Authorization: Bearer <token> header for all requests

Refresh

When access token expires, call /admin/refresh with refresh token

Logout

Call /admin/logout to revoke refresh token