Digital Solutions Studio
How to send your first message with the WhatsApp Business Cloud API
Trying the WhatsApp Business Cloud API does not require a number of your own or any payment to get started. Meta provides a test number inside its developer dashboard, and with it you can send your first message to your own phone in a few minutes.
Tell us about your project- Custom solutions for each business
- Software, automation and integrations
- Tell us about your project and we’ll look into your case
The first step is to create a business-type application in the developer dashboard and add the WhatsApp product to it. In the API setup section you will see the test number, its identifier and a temporary access token. Add your phone as a recipient and confirm the code you receive.
With those details you can send the sample template that the dashboard provides. It is a request to the messages API with the number identifier, the token and the recipient. When the message reaches your phone, the sending side works. If you reply to it, the conversation window opens and you can send plain text.
To receive what people write to you, your server needs a public address. While testing, a temporary tunnel to your computer is enough. In the webhook settings you enter that address and a verification word of your choosing, and you subscribe to the messages field. Meta will check the address with a verification request that your server must answer.
The temporary token expires soon, so for anything stable you should use a permanent token from a system user. If you would like help setting it up in your project, tell us about your case in the form.
Tell us about your project
Tell us what you need. We’ll find a way to make it happen.
Tell us about your project