Register an Account
Create an account by sending your email and password to the registration endpoint, then open the link we email you to verify the address. The request carries the web client’s human check, turnstile_token, so an account is made in the web client or on the MCP consent page.
Endpoint
POST /api/v1/users/
Request
import httpx
response = httpx.post( "http://localhost:8731/api/v1/users/", json={ "email": "you@example.com", "password": "yourpassword", "turnstile_token": "the-token-from-the-widget", },)print(response.json())curl -X POST http://localhost:8731/api/v1/users/ \ -H "Content-Type: application/json" \ -d '{"email": "you@example.com", "password": "yourpassword", "turnstile_token": "the-token-from-the-widget"}'const response = await fetch("http://localhost:8731/api/v1/users/", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: "you@example.com", password: "yourpassword", turnstile_token: "the-token-from-the-widget", }),});const data = await response.json();Response
{ "id": "uuid", "email": "you@example.com", "username": "big-fluffy-red-panda"}The username is auto-generated. Registration gives you no token: the account cannot sign in until you verify your email. Restfall emails you a link, valid for 24 hours; open it and enter your password, which verifies the address and signs you in. Until then a log in is refused with 403 Forbidden. A lost or expired link? Ask for a new one. See Verify Your Email.
The password must be at least 8 characters long and at most 72 bytes once UTF-8 encoded (our hashing algorithm’s limit — accented letters, CJK, and emoji count for 2-4 bytes each, so an all-ASCII password can run up to 72 characters). Each email can only be registered once: registering it again answers 400 Bad Request with A user with this email already exists. The one exception is an account that never verified its email: 24 hours after it registered, a new registration of its address replaces it. The email cannot be changed later.
Registration is rate limited per
client address: over the limit you get 429 Too Many Requests with a
Retry-After header. Then comes the human check: a token that does not pass is
400 Bad Request with The human check did not pass. Complete it again, then resubmit.,
and nothing is registered (every answer is under
The human check).
The email must be a valid address. It is stored in one normalized form: surrounding spaces and a display name are dropped, the address is lower-cased, and accented letters are stored in their composed Unicode form. You@Example.COM and you@example.com are therefore the same account, and you can log in with either. The sign-in page your MCP client opens applies exactly the same rule.
A few characters that Unicode treats as the same letter are folded too. The Kelvin sign (U+212A) before the @ is a plain K, and in the domain, fullwidth letters such as r and compatibility forms such as the Roman numeral ⅼ (U+217C) become plain letters, as the internationalized-domain rules require. Those spellings are the same account as the plain address. Look-alikes that are different letters are not folded: before the @, an address spelled with a long s (ſ), a ß or a ligature such as fi is a different address from its plain-letter twin.