Register a new user and organization
post
https://api.expiryedge.com/v1/registerÖffentlich - kein API-Schlüssel10/15 minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/register' \
-H "Content-Type: application/json" \
-d '{
"email": "priya.shah@northwinddental.com",
"password": "Str0ng!Passw0rd",
"firstName": "Priya",
"lastName": "Shah",
"displayName": "Priya Shah",
"is_organization": true,
"organization_name": "Northwind Dental",
"timezone": "America/Chicago",
"recaptchaToken": "03AFcWeA6x..."
}'Antwort
{
"message": "User registered successfully",
"user": {
"id": "u_71bXq",
"email": "priya.shah@northwinddental.com",
"firstName": "Priya",
"lastName": "Shah",
"displayName": "Priya Shah",
"user_type": "organization",
"organization_id": "org_northwind"
}
}Creates the Firebase Auth user, a new organization on a 14-day trial (or the referral code's trial),
default expiry types, team, contact and reminder settings, and sends a verification email. Returns no token -
sign in afterwards. Business email domains only (free providers are rejected) unless googleUid is sent.
With googleUid, send the Firebase ID token for that uid as the bearer token to prove ownership.
emailstringerforderlichBusiness email (free email providers are rejected unlessgoogleUidis sent).format: emailfirstNamestringerforderlichlastNamestringerforderlichpasswordstringRequired for email signups; must meet the password policy.displayNamestringis_organizationbooleanorganization_namestringUsed whenis_organizationis true; otherwise the workspace is named after the user.photoURLstringtimezonestringIANA timezone; defaults toAmerica/New_York.referral_codestringpromo_codestringIgnored when a validreferral_codeis applied. Preview with checkPromoCode.appsumo_link_tokenstringLinks an AppSumo license (preview with checkAppSumoLicense).recaptchaTokenstringgoogleUidstringFirebase uid of an existing Google-authenticated account (send its ID token as the bearer token).
201
User and organization created.
messagestringerforderlichuserobjecterforderlichA user profile (users/{uid}).
400 | The request is missing required fields or contains invalid values. |
401 | googleUid could not be verified (missing/mismatched ID token or email). |
409 | The request conflicts with existing data. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
