---
title: "Deanonymize an anonymous user with SMS OTP"
method: POST
path: "/user/deanonymize/sms"
tags: ["authentication"]
---

# Deanonymize an anonymous user with SMS OTP

`POST /user/deanonymize/sms`

Convert an anonymous user to a regular user by adding a phone number. A one-time password is sent to the
phone number; the user completes verification by calling `/signin/passwordless/sms/otp` with the OTP, which
marks the phone number as verified and returns a session.

## Request body

- UserDeanonymizeSmsRequest
  - `phoneNumber` string, required — Phone number of the user
  - `options` SignUpOptions
    - `allowedRoles` string[]
    - `defaultRole` string
    - `displayName` string
    - `locale` string — A two or three characters locale
    - `metadata` object
    - `redirectTo` string, uri

## Response `200`

OTP sent to the phone number and the deanonymization change is pending verification. The user remains anonymous until the OTP is verified

- 'OK'

## Other responses

- `default` — An error occurred while processing the request

## Changes

- **2026-09-02** `29ca378c6425` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nhost/apis/nhost-authentication-api/changes/user/deanonymize/sms/post.md)

---

[API](https://skmtc.dev/nhost/apis/nhost-authentication-api.md) · [All operations](https://skmtc.dev/nhost/apis/nhost-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nhost/nhost-authentication-api/revisions/7018a6ccd5c9/schema)
