> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/api-documentation-v2/whatsapp-settings-apis/2-step-verification.md).

# 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"}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.pickyassist.com/api-documentation-v2/whatsapp-settings-apis/2-step-verification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
