Get All Admins
Retrieve a paginated list of all administrator accounts.Request
Method:GETRoute:
/api/admins/page/{page}Auth: SuperAdmin required
Page number (1-based)
Number of admins per page
Response
List of admin accounts
Total number of admin accounts
Current page number
Items per page
Total number of pages
Example Response
200 OK
Create Admin
Create a new administrator account.Request
Method:POSTRoute:
/api/adminsAuth: SuperAdmin required
Admin email address (must be unique)
Admin password (minimum 8 characters, must contain uppercase, lowercase, digit, and special character)
Admin first name
Admin last name
Response
204 No Content
Error Responses
400 Bad Request
400 Bad Request
Delete Admin
Delete an administrator account.Request
Method:DELETERoute:
/api/admins/{adminId}Auth: SuperAdmin required
Admin account ID (Guid) to delete
Response
204 No Content
Error Responses
404 Not Found
400 Bad Request
500 Internal Server Error
Authorization
All Admin endpoints require the SuperAdmin role:To obtain a SuperAdmin token, log in with a SuperAdmin account using the Login endpoint and select the SuperAdmin role.
Related Endpoints
Identity Module
Learn about the Identity module and role management
Authentication
Understand JWT authentication and role-based access