---
title: "Sends OTP to user"
method: PUT
path: "/api/v5/user/update-phone-number"
tags: ["user"]
---

# Sends OTP to user

`PUT /api/v5/user/update-phone-number`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/user/update-phone-number`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/user/update-phone-number/put.ts> (a function with typed inputs; its response is checked against the schema)

Sends OTP to user and updates his phone number. Phone number confirmed field is set to False.

## Request body

- BodyUsersUpdatePhoneNumberApiV5UserUpdatePhoneNumberPut
  - `user` UserInUpdatePhoneNumber, required
    - `phoneNumber` string, required
    - `countryCode` string, required

## Response `200`

Successful Response

- TwilioStatusInResponse
  - `status` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
