Use of WhatsApp sandbox API

Use of WhatsApp sandbox API

We provide a developer-friendly test environment, for anyone who wants to check out the usage of our WhatsApp API. The WhatsApp API allows for direct-like access to the WhatsApp Business API.

Sandbox Base Path:

Sandbox Phone number: +90 850 241 7606

Because of security reasons, each phone number in the sandbox environment has its own Test MB-API-KEY, and you are able to test sending messages only to your phone number.

Get a Test API Key

In order to get a TEST API Key you can either:

1. send a WhatsApp message from your phone to our Sandbox Phone number with the content MB-API-KEY


2. you can use this link:

As a response, you will receive your Test MB API KEY. This API Key is connected with your phone (WhatsApp) number. You should then be able to use the MindBehind WhatsApp API. You can set your own Webhook or send an unlimited number of messages.

What you can't do with the Test MB-API-KEY:

  1. The Sandbox is a test environment only. You will not be able to use it to send messages to your clients. You can only send messages to your own phone number.
  2. Template messages are not supported.
  3. We will only forward and trigger an API when your given number is involved.
  4. Our Sandbox is available to test via the API, but any automated tests would have to be configured from your end.

In order to send a message you need to follow up the steps in the next article:

Sending messages through WhatsApp API

Please be aware that you can only send a message to the number you used to generate the MB-API-KEY. Please don't forget to use this key in the header.

If you want to test how you will receive messages on your backend, you need to setup a webhook using the following article:

Setting a Webhook to receive message using WhatsApp API

Whenever you send a message from your phone number you will receive a notification on the webhook you defined.

Please note that in case of Sandbox account you can only use WhatsApp APIs to set the webhook or to send a message. You will get an error if you tried to use any other WhatsApp API.

For further explanation, you can check this diagram and the following postman collection link.


    • Related Articles

    • WhatsApp Cloud API

      Currently, MindBehind has support for two types of WhatsApp accounts. On-Prem and Cloud API. Cloud API is a feature where Meta will be storing the WhatsApp account details and numbers, for user interested in using Cloud API number kindly register on ...
    • Sending messages through WhatsApp API

      Introduction Message API calls are sent to the /v1/messages endpoint regardless of message type, but the content of the JSON message body differs for each type of message (text, image, etc.). See the following documentation for information regarding ...
    • Integrating WhatsApp Business API with Dialogflow

      Personalized Dialogflow Assistant Dialogflow application is a Google framework that provides NLP / NLU (Natural Language Processing / Natural Language Understanding). Dialogflow enables you to create an Intelligent Assistant and manage what the ...
    • Setting a Webhook to receive message using WhatsApp API

      Introduction Webhooks are one of a few ways web applications can communicate with each other. It allows you to send real-time data from one application to another whenever a given event occurs.  Whenever a message comes from a client to a business ...
    • Authorizing requests to WhatsApp API

      Introduction Every request to the WhatsApp API needs to be authorized using an API Key authentication. Adding the MB-API-KEY in the header with your unique API Key as a value is enough to gain permission. Every API Key is connected with one phone ...