Getting Started with Javna CPaaS WhatsApp API

To start using Javna CPaaS WhatsApp API for sending outbound messages and receiving inbound Messages you’ll need to do the following:

  1. Javna CPaaS Account: You will need a Javna CPaaS account to use Javna CPaaS API for sending messages.

  2. Authentication: To start using any API, you will need to generate an API key. Log in to your Javna CPaaS account and navigate to the "API Keys" page under "Developer Tools" on the left-hand menu. Generate an API Key for the WhatsApp API to obtain the necessary key for authenticating your API usage.

  3. Base URL: The Base URL for accessing the API is: https://whatsapp.api.javna.com/

  4. Configure your Webhook: Once a message is sent by your customer, we will deliver it to you in real time. For this, you will need to:

    1. Create an endpoint on a secure (HTTPS) server: Your endpoint must be able to process Event Notifications HTTPS requests. Since this type of request uses HTTPs, your server must have a valid certificate correctly configured and installed.

    2. Add and configure the Webhook in your Javna CPaaS account: to add a webhook endpoint in your Javna CPaaS account, please follow these steps:

      1. Login to your account on Javna CPaaS, then click on the “Webhooks Settings” button under “Developer Tools”

      2. From the webhooks page you get redirected to, click on “Add Webhook” to add a new webbook URL.

        1. Fill in the name you want to grant to the webhook

        2. Add the webhook URL on which you intend to receive notification payloads, which is the same endpoint you create in a previous step.

        3. Select the type of events you want to receive notification payloads for.

        📘

        Notes

        • When you add a webhook for the first time, a POST request will be sent to the webhook URL. If the endpoint did not return a successful (200 OK) HTTP response within 5 seconds, the URL will be considered invalid, in which case an error message will appear, indicating that the URL is invalid. a POST request will also be initiated whenever you edit the webhook.
        • You can add multiple webhooks to the same channel either with the same events or different events based on your preference.