Skip to content

Team API

Base URL: https://app.kvmfleet.io/v1

List team members

curl https://app.kvmfleet.io/v1/team/members \
  -H "Authorization: Bearer $TOKEN"
{
  "members": [
    {
      "id": "usr_abc123",
      "email": "admin@example.com",
      "role": "owner",
      "joined_at": "2026-01-15T09:00:00Z"
    },
    {
      "id": "usr_def456",
      "email": "ops@example.com",
      "role": "member",
      "joined_at": "2026-02-01T11:00:00Z"
    }
  ]
}

Invite a member

curl -X POST https://app.kvmfleet.io/v1/team/invites \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "newuser@example.com", "role": "member"}'
{
  "invite_id": "inv_abc123",
  "email": "newuser@example.com",
  "role": "member",
  "expires_at": "2026-04-22T14:30:00Z"
}

Required role: admin or owner

Invites expire after 7 days. The invited user receives an email with a link to sign up or log in.

List pending invites

curl https://app.kvmfleet.io/v1/team/invites \
  -H "Authorization: Bearer $TOKEN"

Revoke an invite

curl -X DELETE https://app.kvmfleet.io/v1/team/invites/inv_abc123 \
  -H "Authorization: Bearer $TOKEN"

Update member role

curl -X PATCH https://app.kvmfleet.io/v1/team/members/usr_def456 \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "admin"}'

Required role: owner

Remove a member

curl -X DELETE https://app.kvmfleet.io/v1/team/members/usr_def456 \
  -H "Authorization: Bearer $TOKEN"

Required role: admin or owner

Removes the user from the organization immediately. Active sessions are terminated.