Skip to main content
Documentation
Team & Enterprise

Team Management

Invite developers to your Laghav tenant, assign roles (Admin or Developer), and manage access — all available on the Scale plan and above.

Scale+ plan required
Team management features require the Scale plan (₹9,999/mo) or above. On free and Builder plans, only one user is allowed per tenant.

Roles

RoleCan invite membersCan manage budgetsCan create appsCan revoke keys
Admin
Developer✓ (read-only budgets)Own keys only

Inviting team members

bash
# Send invitation email
curl -X POST https://api.laghav.ai/api/team/invite \
-H "Authorization: Bearer lgh_live_xxx" \
-H "Content-Type: application/json" \
-d '{"email": "dev@company.com", "role": "developer"}'
# Invite creates a team_members record with status "invited"
# A magic link email (N04) is sent to the invited address

When the invited user clicks the magic link and signs in, Laghav detects that their email matches an active invitation and automatically links them to your tenant (instead of creating a new tenant). Their status transitions to active.

List team members

bash
curl https://api.laghav.ai/api/team/members \
-H "Authorization: Bearer lgh_live_xxx"
# Response:
# {
# "members": [
# {"id": "mem_abc", "email": "admin@co.com", "role": "admin", "status": "active", "joined_at": "..."},
# {"id": "mem_def", "email": "dev@co.com", "role": "developer", "status": "invited", "invited_at": "..."}
# ]
# }

Remove a member

bash
# Revoke access (or delete pending invite)
curl -X DELETE https://api.laghav.ai/api/team/members/mem_def \
-H "Authorization: Bearer lgh_live_xxx"