Skip to main content
Register a new tenant in multi-tenant mode. Returns a tenant ID and API key.

Request

POST /v1/register
email
string
required
Email address for the new tenant.

Response

tenant_id
string
UUID of the new tenant.
api_key
string
API key for authenticating requests.
message
string
Confirmation message.

Example

from nined.memory import MemoryClient

client = MemoryClient(base_url="https://api.9dlabs.xyz")

result = client.register("team@example.com")
print(f"API Key: {result['api_key']}")
Response
{
  "tenant_id": "t1a2b3c4-...",
  "api_key": "9d_sk_...",
  "message": "Tenant registered successfully"
}
Registration is only available when the control plane database is configured (CONTROL_PLANE_DATABASE_URL). In single-tenant mode, registration is not needed.