# WhatsApp Cloud API

## 1. Create and Sync Templates

The team will be required to create and get the templates approved by the Facebook WhatsApp Business Manager or eleapi Dashboard. Once It is done,

1. Go to eleapi Panel
2. Navigate to WhatsApp Automation and Then go to the manage section.
3. Under templates, You will be required to sync templates from Facebook, Once Done, App should use the get Templates API and save the template details. These details will be required to send Notifications.

## 2. API Key

In order to generate the WhatsApp API key,

1. Go to the eleapi Dashboard ( [https://help.eleapis.com/](https://app.eleapi.com/) )
2. Find your bot and go to `WhatsApp Bot Settings` section.
3. Under `WhatsApp Bot Settings`, Navigate to the API key and Click on generate an API key.
4. You will require to update the webhook URL, on which we will send the delivery reports.
5. Once done, Copy the key and save it yourself.

## 3. APIs Endpoints

{% content-ref url="whatsapp-cloud-api/get-templates-list" %}
[get-templates-list](https://eleapis-organization.gitbook.io/eleapis-resource-center/api-references/whatsapp-cloud-api/get-templates-list)
{% endcontent-ref %}

{% content-ref url="whatsapp-cloud-api/post-whatsapp-template-message" %}
[post-whatsapp-template-message](https://eleapis-organization.gitbook.io/eleapis-resource-center/api-references/whatsapp-cloud-api/post-whatsapp-template-message)
{% endcontent-ref %}

{% content-ref url="whatsapp-cloud-api/post-send-message-api" %}
[post-send-message-api](https://eleapis-organization.gitbook.io/eleapis-resource-center/api-references/whatsapp-cloud-api/post-send-message-api)
{% endcontent-ref %}

## Error Codes

Please refer to the link below for more info on the error codes

<https://developers.facebook.com/docs/whatsapp/on-premises/errors>


---

# 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://eleapis-organization.gitbook.io/eleapis-resource-center/api-references/whatsapp-cloud-api.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.
