# Signup - Step 2: Verify phone with code Step 2 of phone signup: validates the SMS code sent to phone number. Advances registration to next step (CAPTCHA, reason, or account creation). Code expires after a set time and has limited retry attempts. Endpoint: POST /api/v1/accounts/confirm-phone Version: 1.0 Security: ## Request fields (application/json): - `hash` (string, required) Registration hash Example: "aaaaaaa-ccccccccccccc-wwwwwwwww" - `code` (integer, required) Confirmation code Example: 854882 ## Response 200 fields (application/json): - `hash` (string, required) - `nextStep` (string, required) Shows the current step in the signup flow: * EMAIL – We sent an email to the user with a verification code. The user must enter the code to confirm their email. * PHONE – We sent a text to the user with a verification code. The user must enter the code to confirm their phone number. * CAPTCHA – The user must complete a CAPTCHA verification. * REASON – The user must provide a reason for admins to approve their signup request. * ADMIN – Admins must approve or reject the user's signup request. No action is required from the user. * USER – The final step that creates the account. Most of the time, no action is required from the user. If the account can't be created because the username is already taken, the user can provide a different username at this step. Enum: "EMAIL", "PHONE", "CAPTCHA", "REASON", "ADMIN", "USER" ## Response 400 fields (application/json): - `errorCode` (string, required) Error code - `message` (string, required) Error message - `docUrl` (string) Link to documentation ## Response 404 fields (application/json): - `errorCode` (string, required) Error code - `message` (string, required) Error message - `docUrl` (string) Link to documentation