domain-limit

Check Domain Limit

Changed on

Check whether admitting an address would break the domain signup rules.

In order: an excluded domain bans, an included domain admits, an existing account for the submitted address admits, else members are counted against SIGNUP_DOMAIN_LIMIT. That third rule makes an over-cap domain answer whether the address has an account; the IP rate limit is what bounds it.

Args: request: Incoming request, required by the rate limiter. body: Submitted address, as a full email or a bare domain.

Returns: Whether another signup is allowed, and whether the domain is banned.

Raises: HTTPException: 400 if the domain is empty or malformed.

post/v1/auth/check-domain-limit

Request

Request body

domainstring nullable

Bare email domain. Carries no identity, so the submitter is counted against the cap like any new signup.

emailstring email nullable

Full address being admitted. An account that already exists for this exact address is admitted without counting against the cap.

Response

Successful Response

allowedboolean required
bannedboolean

Changes