register_new_account
Two-step onboarding tool to request a 6-digit email OTP (step 1: omit otp_code) or verify the OTP to create a new PushNotif account with 1,000 free lifetime credits, register the initial website, and return a live API key (step 2: pass otp_code, password, and name). Use this tool only for brand-new user signups; do not use it for existing accounts (use login_existing_account instead) or to add websites to an existing account (use create_app instead). Public endpoint requiring no API key; step 1 is rate-limited to 5 OTPs per 10 minutes per IP (valid 10 minutes), while step 2 irreversibly creates a tenant and ECDSA P-256 VAPID keypair. Returns JSON { ok, step, tenant: { id, name, email, api_key, credits }, app: { id, site_name, site_url, vapid_public_key } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Workspace or company display name (2 to 80 characters; required when verifying otp_code) | |
| Yes | Email address to register (must not already belong to an existing PushNotif account) | ||
| otp_code | No | Optional 6-digit numeric OTP from email: omit on first call to send the OTP email, then provide on second call to complete registration | |
| password | No | Account login password (minimum 6 characters; required when verifying otp_code) | |
| site_url | No | Optional full HTTPS origin URL of the initial website (e.g., https://example.com) | |
| site_name | No | Optional display name for the initial website or app (defaults to workspace name) |