User management endpoints
Non-admins can only grant access they already have. You cannot demote yourself or remove your last user-management access if nobody else can manage users.
Invite a teammate
In the web UI, open Management → Users and click Invite user. Share the link; it expires in 7 days by default (you can choose 1–90). After someone redeems it, they get a regular user account and a default assistant. You can also create and revoke invites with the endpoints above.Create a user
201 Created with the new user row. The role field accepts "user" or "admin". Optional workspace_root_dir limits where that user’s agents may write. Optional token_quota caps token usage for the account (the policy applies as soon as the user is created).
Update a user
Send aPATCH request with any subset of role, display_name, enabled, or locale. To disable an account without deleting it, set "enabled": false.
Reset a password
Send aPOST request with the new password. The user must change this password on next login if your policy requires it.
204 No Content on success.
Unlock a locked-out user
When a user exceeds the maximum number of failed login attempts (configured by
OCTOP_LOGIN_MAX_ATTEMPTS), their account is locked until the lockout period expires or an admin clears it. Use POST /users/{id}/unlock-login to immediately restore access without waiting for the timeout.Admin overview and audit log
These endpoints give you a high-level view of instance activity.Overview
{user_count, agent_count, ...} — useful for health dashboards and monitoring scripts.

