# 2 Step Verification

This API allows to create 2 Step Verficaiton for your Official WhatsApp number and this helps  to prevent unauthorised activation of your WhatsApp number by stealing your OTP. **We highly recommend to activate 2 Step Verification for your WhatsApp Official Number.**

{% hint style="warning" %}
If you forget or misplace your PIN, you can disable two-factor verification, and then enable it again with a new PIN.
{% endhint %}

## 2 Step Verficaiton

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/two-step-verification`

<mark style="color:green;">`POST`</mark> `https://app.pickyassist.com/api/v2/two-step-verification`

This API request will enable / disable 2 step verification for your WhatsApp Official Number

#### Request Body

| Name   | Type   | Description                                                                                                                                           |
| ------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| token  | string | Your API Token                                                                                                                                        |
| action | number | <p>You can need pass the action you need to perform, if you want to enable then please pass the 6 digit PIN also<br><br>0 = Enable<br>1 = Disable</p> |
| pin    | number | 6 Digit PIN                                                                                                                                           |

{% tabs %}
{% tab title="200 " %}

```javascript
{"status":100,"message":"Success"}
```

{% endtab %}
{% endtabs %}

### Sample Request To Enable 2 Step Verficaiton&#x20;

```javascript
{
	"token": "c81f742bea5e68a5213ec1afcc03a6a3d3b",
	"action": 0,
	"pin" : "987123"
}

```

### Sample Request To Disable 2 Step Verficaiton&#x20;

```javascript
{
	"token": "c81f742bea5e6813ec1afcc03a6a3d3b",
	"action": 1
}

```

### Sample Response

```javascript
{"status":100,"message":"Success"}
```
