> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-whatsapp-login-extension/twilio-whatsapp-api.md).

# Twilio WhatsApp API

**Step 1:** Log in to **Twilio** using the below URL.

<https://www.twilio.com/login>

**Step 2:** Click on Account and select **API keys & Tokens**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FeSoWKkNFmZqiCMwop3GW%2Fimage.png?alt=media&amp;token=0b0e3b7a-5771-4cc2-9706-d8cb36e6bc40" alt=""><figcaption></figcaption></figure>

**Step 3:** Copy **Account SID** and **Auth Token** and use them for extension configuration.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FCRGna9Tf9nThedYw64T4%2Fimage.png?alt=media&amp;token=504fe327-3775-4093-a680-bc5ceb4b7495" alt=""><figcaption></figcaption></figure>

**Step 4:** After that, click on **Account Dashboard > Develop > Messaging Section > Senders**&#x20;

Select **Whatsapp Senders** and click on **Create new sender**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2Fhe9he7rZwNc0Nbk9QtbN%2Fimage.png?alt=media&amp;token=dda8c765-41af-49fc-9f87-5af6de4f6039" alt=""><figcaption></figcaption></figure>

**Step 5:** Fill up all the required information and click on the **Submit request**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2Fv0Gt7Xyvb4hwg9E1Yjsq%2Fimage.png?alt=media&amp;token=30a9eba3-c5b3-40c4-8791-7cd294814c52" alt=""><figcaption></figcaption></figure>

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F3ivspwFDMwxZUh2RLn3K%2Fimage.png?alt=media&amp;token=96ac9034-5275-418d-99d7-4158dd59b0cd" alt=""><figcaption></figcaption></figure>

**Step 6:** After Submit request you will get the **Twilio WhatsApp Number**. Copy and use it for extension configuration.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FXc0dGyQMmfAmy7jdNxgP%2Fimage.png?alt=media&amp;token=6cf75565-8d0b-4ce4-8bd6-8ac82ad8105e" alt=""><figcaption></figcaption></figure>

**Step 7:** Click on your WhatsApp Number and configure the below URL in Twilio **“Endpoint configuration”** configuration **Webhook URL for incoming messages** field.

**{{base\_url}}/whatsapplogin/account/index**

Replace base\_url  with your domain.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FI6fu1YQ7UA79sPlpL9cu%2Fimage.png?alt=media&amp;token=c6583adb-5bf2-495e-b92c-f7bbf7524363" alt=""><figcaption></figcaption></figure>
