A tenant user is one of your end-users. Every primitive — cards, inboxes, vault,
connections, verification, formation — is scoped to a tenant user, so each of your
customers gets their own isolated set of Naive resources. Tenant users are not auth
subjects: they never sign in, and you manage them entirely through the API/SDK/CLI.
On signup you automatically get a default tenant user, so solo usage needs no
users.create() — every top-level call (naive.cards, naive.vault, …) acts on it.
Multi-tenant builders create one tenant user per end-user and scope calls with
naive.forUser(id).
CLI First
| Tool | Type | Description |
|---|
users_list | Core | List all tenant users in the workspace |
users_create | Core | Provision a new tenant user |
users_get | Core | Fetch a single tenant user |
users_update | Core | Update label, email, metadata, or assigned Account Kit |
users_delete | Management | Remove a tenant user and their scoped resources |
Creating a User
Each user is governed by an Account Kit. Omit
account_kit_id to use your workspace’s Default kit.
Response:
Parameters
| Param | Type | Required | Default | Description |
|---|
external_id | string | No | — | Your own stable id for this user (e.g. your DB row id) |
email | string | No | — | The end-user’s email |
label | string | No | — | Human-friendly display name |
account_kit_id | string | No | Default kit | The Account Kit governing this user |
metadata | object | No | — | Arbitrary JSON you can attach |
The default tenant user is created on signup and can’t be deleted. Reference it as the
sentinel default (e.g. /v1/users/default/vault) or via its id.
Listing & Fetching
Updating & Deleting
Error Handling
| Error | Cause | Recovery |
|---|
not_found | user_id doesn’t exist in this workspace (or a cross-tenant id) | Use GET /v1/users to list valid ids |
invalid_input | Malformed account_kit_id / user_id | Pass a valid UUID, or omit to use the Default kit |
duplicate_record | external_id already exists | Reuse the existing user or pick a new external_id |
Typical Workflow