The bundles endpoint allows you to create and manage bundles of account resources.
Provisioning API (1.2.7)
https://provisioning.api.sinch.com/
The unique ID of the project. You can find this on the Sinch Dashboard.
- Production server
https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/enableTemplateAnalytics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/enableTemplateAnalytics' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'The unique ID of the project. You can find this on the Sinch Dashboard.
Facebook token generated from the embedded signup process, or another long lived access token.
Long-Lived User access token. Mandatory if facebookCode is not provided.
- Production server
https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/longLivedAccessToken
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/longLivedAccessToken' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"facebookCode": "FACEBOOK_CODE"
}'Response when successfully creating a long lived access token.
{ "longLivedAccessToken": "FACEBOOK_TOKEN" }
The unique ID of the project. You can find this on the Sinch Dashboard.
WabaDetails data with Facebook token generated from the embedded signup process.
- Production server
https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/wabaDetails
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/wabaDetails' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"facebookToken": "FACEBOOK_TOKEN"
}'Response for all waba details.
{ "wabas": [ { … } ] }
WhatsApp Senders
A WhatsApp Sender is also referred to as a 'Business Profile' or a WhatsApp channel. The WhatsApp Sender endpoint allows you to create a Sender through Meta's Embedded sign up. A Sender must be provisioned for you as a consumer of the WhatsApp API to send messages to your end users.