Hixbe Account API
The Hixbe Account API is a comprehensive identity and access management platform that provides secure user authentication, multi-tenant organization management, granular role-based access control (RBAC), and service entitlement tracking. It serves as the central hub for managing users, permissions, and access across all Hixbe services.🚀 Key Features
- Secure Authentication: JWT-based authentication with automatic token refresh
- Multi-Tenant Organizations: Complete organization management with member administration
- Granular RBAC: Flexible permission system with roles and direct assignments
- Service Entitlements: Subscription management and usage tracking for all Hixbe services
- Audit & Compliance: Comprehensive logging and compliance reporting
- Developer-Friendly: RESTful API with OpenAPI 3.0 specification
🔐 Authentication
The Account API uses industry-standard JWT authentication with secure token management.Authentication Headers
Token Lifecycle
- Access Tokens: Expire after 15 minutes for security
- Refresh Tokens: Stored in HTTP-only cookies, valid for 30 days
- Automatic Refresh: API calls automatically refresh tokens when needed
Quick Start Authentication
🏢 Organization Management
Organizations are the top-level entities that contain users, roles, permissions, and service entitlements.Creating and Managing Organizations
🔒 Role-Based Access Control (RBAC)
The Account API implements a sophisticated RBAC system with granular permissions and flexible assignment options.Permission Structure
Permissions follow a consistent naming convention:resource.action
Role Management
Direct Permission Assignment
📊 Service Entitlements
Track and manage subscriptions to Hixbe’s various services with usage monitoring and quota management.Available Services
- PAYMENT_GATEWAY: Process online payments
- SMS_GATEWAY: Send SMS messages
- LINK_SHORTENER: Create and manage short links
- PBX_CALL_CENTER: VoIP calling solutions
- HOSTING: Web hosting services
- NATIONAL_ISP: Internet service provision
- CERTIFICATION_BADGE: Digital credential management
Subscription Management
📈 API Endpoints Overview
The Account API is organized into several functional areas:Authentication Endpoints
- User registration and login
- Token refresh and session management
- Account deletion and recovery
Organization Endpoints
- Organization CRUD operations
- Member management and invitations
- Role assignments within organizations
Permission System Endpoints
- Role and permission management
- Direct user permission assignments
- Permission checking and validation
Entitlement Endpoints
- Service subscription management
- Usage tracking and quota monitoring
- Plan changes and cancellations
RBAC Examples
- Practical examples of permission checking
- User and role management workflows
- System configuration with proper authorization
⚡ Rate Limits & Performance
- Authenticated Requests: 1000 requests per minute per user
- Unauthenticated Requests: 100 requests per hour per IP
- Bulk Operations: 50 items per request maximum
- File Uploads: 10MB maximum file size
🔧 Error Handling
All API errors follow a consistent JSON structure:Common Error Codes
UNAUTHORIZED: Missing or invalid authenticationFORBIDDEN: Insufficient permissionsNOT_FOUND: Resource not foundVALIDATION_ERROR: Invalid request dataRATE_LIMITED: Too many requestsSERVICE_UNAVAILABLE: Temporary service issues
🌐 Webhooks & Events
The Account API supports webhooks for real-time notifications:Supported Events
user.created,user.updated,user.deletedorganization.created,organization.updatedrole.assigned,role.removedpermission.granted,permission.revokedentitlement.activated,entitlement.suspended
🛡️ Security Best Practices
- Token Storage: Never store tokens in localStorage; use secure HTTP-only cookies
- Password Requirements: Minimum 8 characters with mixed case, numbers, and symbols
- API Keys: Rotate regularly and use appropriate scopes
- HTTPS Only: All API calls must use HTTPS
- Input Validation: Always validate and sanitize user inputs
- Audit Logging: Monitor and log all sensitive operations
📚 Getting Started
Quickstart Guide
Step-by-step setup and first API calls
Authentication Guide
Complete authentication and security guide
Best Practices
Security, performance, and integration tips
API Reference
Complete endpoint documentation
Support
Get help from our support team
OpenAPI Spec
Download the complete API specification
📞 Support & Resources
- Documentation: Comprehensive guides and API reference
- Community: Join our developer community for discussions
- Support: Email support@hixbe.com for technical assistance
- Status Page: Check service status at status.hixbe.com
- Changelog: Stay updated with API changes and new features
Ready to build secure, scalable applications with Hixbe’s Account API? Start with our Quickstart Guide and create your first organization today.