# API Setup

## 2. API Setup

### 2.1 Add phone number

1. Click on “Add phone number” button in “[Step 5: Add a phone number section](https://developers.facebook.com/apps/759218118860831/whatsapp-business/wa-dev-console/?business_id=1501389280339074)”. Fill out your profile name and add the number:\
   a) Add profile display name prescribed by Meta. Make sure it’s associated with your business’s actual name. If it is not associated, Meta is likely to reject it. For Research bots, we typically advise \[business\_name] + Research as your Display Name. See [Display Name Guidelines](https://www.facebook.com/business/help/757569725593362) article for more details.\
   b) Choose a category and business Description\
   c) Add number: Select country code and add a number to receive OTP via SMS or phone call to verify

{% hint style="info" %}

* Make sure you have the number ready to receive SMS or phone call
* After adding your number, you might need to refresh the page if the number isn’t showing up
  {% endhint %}

<figure><img src="/files/VfxKn5alCRoKj1UM44oF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aYHhvB00aas2NKKJLRfK" alt=""><figcaption></figcaption></figure>

#### 2.2 Setup Webhook <a href="#id-2.2-setup-webhook" id="id-2.2-setup-webhook"></a>

Go to the [Configuration section](http://developers.facebook.com/apps/863866785133829/whatsapp-business/wa-dev-quickstart/?business_id=270701782581397) and press the “Edit” button in the webhook card section

1. Enter the Callback URL and Verify token (both of these keys will be provided to you by Yazi)
2. Press the “Verify and Save” button (it will do a pink test and automatically save)

<figure><img src="/files/QnPca9XqyMKhINgUaILU" alt=""><figcaption></figcaption></figure>

*In the “Webhook fields” section directly below, press the “Manage” button*

* Click ALL TICKBOXES in the Subscribe column. This allows us to track and retrieve the data so make sure to tick every one!

<figure><img src="https://yazi-1.gitbook.io/~gitbook/image?url=https%3A%2F%2Fcodahosted.io%2Fdocs%2FlMuD8eJ7Id%2Fblobs%2Fbl-eUrK2GkzQE%2F9fe268dcbb20eef8a345b434ac2a038f8e3e0797ac5fb6e5565f67bae8dbf729c5a6aa0cef69584415da96ac92ef2b146569a8863fbef7b2c711790c72cc09374f308ad1b15ba85a25b9fb2d0a71ee18f1982bcbbcd348a0a8763e7a18bed8415c8114b9&#x26;width=300&#x26;dpr=4&#x26;quality=100&#x26;sign=9630a183b88d404057120d1393d20789398385c240a65a8973e09628d31b1398" alt=""><figcaption></figcaption></figure>

### [META BUSINESS MANAGER](https://business.facebook.com/settings/whatsapp-business-accounts/106676589182397?business_id=1501389280339074) <a href="#meta-business-manager" id="meta-business-manager"></a>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.askyazi.com/setting-up-the-whatsapp-api-number/creating-a-whatsapp-api/api-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
