Auth · Usernames and phones
Looking up an identity by username or phone number, checking availability, and username recovery.
Three directories map an identifier to an identity: usernames, email addresses and phone numbers. This page covers usernames and phones; addresses are on the email page.
404 is the good answer
Each item route answers 404 when nothing claims the identifier. That is the successful response to "is
this available?", and the one a registration form is waiting for as somebody types. Use HEAD for the
check — it performs the same lookup without moving any identity data over the wire.
Listing is admin-only
The collection routes list everything claimed on the deployment, so they sit behind the admin guard. The item routes are open, because resolving one identifier you already know is what every sign-in screen does.