authentication
Authentication

Register

Register a new user.

TECH-663: Rate limited to 3 attempts per minute per IP.

Args: http_request: FastAPI request for IP extraction request: Registration data session: Database session

Returns: Created user

Raises: ConflictError: If user already exists BadRequestError: If password is too weak

post/api/v1/auth/register

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/auth/register
  • Auth: none declared

Request body

emailstring email required
passwordstring required
first_namestring nullable
last_namestring nullable
company_idinteger nullable

Response

Successful Response

idinteger required
emailstring required
first_namestring nullable
last_namestring nullable
full_namestring nullable
company_idinteger required
rolestring nullable
is_activeboolean nullable
is_lockedboolean nullable
is_superuserboolean nullable
is_allowlistedboolean nullable
company_namestring nullable
phonestring nullable
timezonestring nullable
clerk_user_idstring nullable
created_atstring nullable
updated_atstring nullable
notify_product_newslettersboolean
notify_billing_alertsboolean
onboarding_completedboolean
is_impersonationboolean nullable
impersonated_byinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.