Team Management
Manage users, roles, and permissions for your Zihin tenant.
Overview
The Team API allows you to manage users within your organization:
- View team members and their roles
- Update user permissions
- Remove users from the tenant
List Users
GET https://tenant-api.zihin.ai/api/tenants/:id/users
User Object
interface User {
id: string;
email: string;
name: string;
role: "owner" | "admin" | "editor" | "viewer";
status: "active" | "pending" | "disabled";
created_at: string;
}
Update User Role
PATCH https://tenant-api.zihin.ai/api/tenants/:id/users/:userId
{
"role": "admin"
}