> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/engineering/api-documentation/common-services/validate-phone-number.md).

# Validate Phone Number

| **API URL**     | {{url}}/user-service/user/validate-phonenumber |
| --------------- | ---------------------------------------------- |
| **Method**      | POST                                           |
| **Description** | Validating a new user’s phone number           |

#### **Input** <a href="#validatephonenumber-v2-input" id="validatephonenumber-v2-input"></a>

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client(Header)         | String   | Yes           | web                                                                                                                                     |
| phoneNumber            | Bigint   | Yes           | A new phone number to validate                                                                                                          |
| countryCode            | Bigint   | Yes           | Country code                                                                                                                            |
| id                     | Boolean  | Yes           | Check for Suit User                                                                                                                     |

#### **Sample Input:** <a href="#validatephonenumber-v2-sampleinput" id="validatephonenumber-v2-sampleinput"></a>

```
{
  "phoneNumber": "994XXXX834",
  "countryCode": "232",
  "id": 1
}
```

#### **Sample Output:** <a href="#validatephonenumber-v2-sampleoutput" id="validatephonenumber-v2-sampleoutput"></a>

| **Field Name** | **Type** | **Example**     |
| -------------- | -------- | --------------- |
| message        | String   | Got User        |
| status         | Boolean  | Response status |

```
{
    "message": "Got user.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}
```
