Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pulketo/4edfb597e48ccaffeb33eda8a61d183d to your computer and use it in GitHub Desktop.
Save pulketo/4edfb597e48ccaffeb33eda8a61d183d to your computer and use it in GitHub Desktop.
WhatsApp Business Platform On-Premises API
https://developers.facebook.com/docs/whatsapp/on-premises/overview
BSP: Business Solution Provider
WhatsApp Business Platform On-Premises API
Tokens
login------------->Server
bearer Token<________╱
Expiration:
after certain time
after logout
Request (expired token) ---> Server
(401)<________╱
Headers
username:password as base64(String)
Authorization: Basic YWRtaW46c2VjcmV0.
API Keys
client----------(api_key)---->server
health, metrics, and stats<__╱
Client-----(api_key)--->Server
Method,Url,Headers,Body
Whatsapp Business API Responses:
HTTP Status Code
Payload (on success)
Meta (like a fingerprint version of api)
Errors
Whatsapp Business API Architecture
[Database] [Media Volume]
| |
+------------------+
| | _________
[WebApp]<------------>[Core App]<-->[WA Servers
| | ---------
| |
_________________ |
[Business Servers ]-------+
| |
|_________________]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment