vaults.createEnterprise
Creates a new enterprise vault and either adds an existing user as owner or creates a pending invitation for a new user.This endpoint requires admin API credentials. It is not available to regular authenticated users.
Request
Display name for the vault. Minimum 1 character.
URL-friendly identifier. Auto-generated from
name if not provided. Maximum 64 characters.Hex color code for UI display (e.g.,
#3b82f6)Email address of the initial vault owner. Must be a valid email format.
Response
UUID of the created vault
Final slug (auto-generated if not provided in request)
Display name of the vault
Always
"enterprise"Hex color code or null
Email of the initial admin
Indicates how the admin was onboarded:
membership_created: User already existed, membership created directlyinvitation_created: User doesn’t exist yet, invitation created
UUID of the invitation if
bootstrapStatus is invitation_created, otherwise nullExample
Validation
- Vault slugs must be unique across the system
- Slugs are auto-normalized: lowercased, special characters replaced with hyphens
- Invalid slugs (empty after normalization) will throw a
BAD_REQUESTerror - Duplicate slugs throw a
BAD_REQUESTerror with message"Vault slug already exists"
Invitation Expiry
When an invitation is created (bootstrapStatus: "invitation_created"), it expires after 14 days.