/staff endpoints let you manage the human operators who access your Avalex dashboard and API. You can list all staff accounts, look up an individual member, reassign roles, deactivate or reactivate accounts, and permanently remove a staff member. All management actions require the staff:manage permission, while read-only lookups require staff:read.
Creating a new staff account requires a valid, unused registration key. Registration keys are generated by the Master Admin and consumed on first use. See the Registration Keys page for details.
Required Permissions
List All Staff
Returns an array of all staff accounts asStaffPublicView objects.
Get a Staff Member by ID
Returns a singleStaffPublicView. Responds with 404 Not Found if no staff member with that ID exists.
Update Staff Roles
Complete list of role IDs to assign to this staff member. Replaces the current set entirely.
404 Not Found if the staff member does not exist.
This endpoint replaces all existing role assignments. To add a role without removing others, retrieve the current
roleIds first, append the new ID, then submit the full updated array.Update Staff Active Status
Toggles the active status of a staff account. Deactivated accounts cannot authenticate or use the API. Returns404 Not Found if the staff member does not exist.
Delete a Staff Member
Permanently removes the staff account. Returns204 No Content on success and 404 Not Found if the ID does not exist.
Register a New Staff Member
This endpoint is public and does not require an authenticated session, but it does require a valid, unused registration key issued by the Master Admin. Creates a new staff account and returns aStaffPublicView. The registration key is consumed and cannot be reused.
