Skip to content

Admin API Overview

Introduction

The Authrim Admin API is a RESTful API that allows tenant administrators and system administrators to programmatically manage the Authrim platform. With this API, you can automate management operations such as:

  • Admin user management (console access users)
  • End user management (application users)
  • Client application management
  • Session management
  • Organization & role management (RBAC)
  • Attribute-based access control (ABAC)
  • Relationship-based access control (ReBAC)
  • Policy management
  • Authentication flow management
  • Audit logs & compliance
  • Security alerts
  • Statistics & analytics

Base URL

https://{tenant-domain}/api/admin

Database Architecture

Authrim uses a separated database architecture for enhanced security:

DatabaseDescriptionTarget Users
DB_ADMINAdmin databaseAdmin users who access the management console
DB_CORECore databaseEnd users who use your application

This separation ensures:

  • Admin credentials are isolated from end user data
  • Compromised end user data does not affect admin access
  • Compliance with security best practices

Main Feature Categories

Admin Console Management

APIs for managing admin users who access the management console. Data is stored in DB_ADMIN.

CategoryDescription
Admin User ManagementCRUD operations for admin users
Admin Role ManagementDefine and assign admin roles
IP AllowlistIP address access control
Admin Audit LogAudit logs for admin operations

EndUser Management

APIs for managing end users who use your application. Data is stored in DB_CORE.

CategoryDescription
EndUser ManagementCRUD operations for end users, suspend, lock, anonymize
Session ManagementList active sessions, revoke, force logout
External ProvidersManage external identity providers (OAuth/OIDC)

EndUser Access Control

CategoryDescription
Organization ManagementCRUD operations for organizations, member management, hierarchy
Role ManagementDefine roles, assign to end users
ABACAttribute-based access control, user attribute management
ReBACRelationship-based access control (Zanzibar DSL)
Policy ManagementDefine policy rules, simulation

Application Management

CategoryDescription
Client ManagementCRUD operations for OAuth clients, secret regeneration
Flow ManagementDefine authentication flows, validate, compile
Webhook ManagementConfigure webhook endpoints, test
Plugin ManagementEnable and configure plugins

Security & Audit

CategoryDescription
EndUser Audit LogsSearch and export end user audit logs
Access TracePermission check audit logs, statistics
ComplianceCompliance status, access reviews

Configuration & Operations

CategoryDescription
Settings ManagementTenant settings, feature flags
Tokens & CredentialsSigning keys, SCIM tokens, IAT
Job ManagementAsync jobs (import, export, reports)

API Characteristics

RESTful Design

The Admin API follows RESTful design principles:

  • Resources are identified by URLs
  • HTTP methods express operations (GET, POST, PUT, DELETE)
  • Data is exchanged in JSON format

Tenant Isolation

All API operations are executed within the tenant scope. Requests are routed to the appropriate tenant based on the authentication token, and data is strictly isolated.

PII Separation Architecture

Personally Identifiable Information (PII) is stored in a separate PII database from the core database. This makes compliance with data protection regulations easier.

Cursor-based Pagination

List APIs use cursor-based pagination. This allows efficient retrieval of large amounts of data.

Next Steps