Bearer logo
WhatsApp API logo

WhatsApp API

API documentation
https://developers.facebook.com/docs/whatsapp

Developer website
https://www.whatsapp.com/business/api

Incorrect or missing information? Help us

What is the WhatsApp API?

WhatsApp is a free cross-platform instant messaging application for smartphones, owned by Facebook

How to use the WhatsApp API?

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('whatsapp')
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.get('/me')
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
HTML/JSReact
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to WhatsApp
</button>
<script>
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
bearerClient
.connect(
'whatsapp'
)
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)
})
}
</script>

Start using the WhatsApp API

Bearer provides a universal API client to call any WhatsApp endpoints. It takes care of API authentication, credentials management, and monitoring out-of-the-box.

Available in Node.js, Ruby, Python, and PHP

Sign up with Email

Start integrating the WhatsApp API for free!

Universal API client

Query the WhatsApp API and hundreds more APIs using a single API client.

Identity Management

From API credentials to OAuth dance, token and refresh token, Bearer manages it all.

Real-time Monitoring

Get a complete overview of your API usage with metrics and in-depth logs, find errors anddebug in a snap.

Bearer - Integrations built in minutes, Monitored in real-time

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019
Bearer uses cookies to make its website easier to use. Learn more about cookies.