The bundles endpoint allows you to create and manage bundles of account resources.
Provisioning API (1.2.7)
https://provisioning.api.sinch.com/
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.
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/senders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/senders?pageToken=string&pageSize=1&filterStates=ACTIVE&filterStatuses=DRAFT' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'List of senders
Region sender store the data in Meta.
Business manager.
Conversation API app regions the sender can be used for.
The current state of the sender.
If set, the details of the Conversation API App the sender is connected to.
Current quality rating of the sender.
Current daily message limit of the sender.
Bearer token of the sender. The bearer token is needed to connect the sender to a Conversation API App.
If set, the Conversation API App ID the sender is connected to.
Please use get account endpoint for this information.
Response with senders.
{ "totalSize": 2, "pageSize": 50, "senders": [ { … }, { … } ] }
Request
Creates a sender for a project. The possible combinations of region, business manager and hosting type are the following
| Region | SINCH_BR | SINCH_MX | SINCH_UK | |
|---|---|---|---|---|
| BR | Cloud API (ES) | ✅ Supported | ✅ Supported | ❌ Unsupported |
| Cloud API ( OBO ) | ✅ Supported | ✅ Supported | ❌ Unsupported | |
| EU | Cloud API (ES) | ❌ Unsupported | ❌ Unsupported | ✅ Supported |
| Cloud API ( OBO ) | ❌ Unsupported | ❌ Unsupported | ✅ Supported | |
| US | Cloud API (ES) | ✅ Supported | ✅ Supported | ✅ Supported |
| Cloud API ( OBO ) | ✅ Supported | ✅ Supported | ✅ Supported |
The unique ID of the project. You can find this on the Sinch Dashboard.
Sender data
WhatsApp Business Account that will be connected to the created sender. If left empty, we will try to find the WhatsApp Business Account using your projectId.
Region sender store the data in Meta.
- Production server
https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/senders
- 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/senders' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"region": "EU",
"metaLocalStorage": "DE",
"wabaId": "11111111111111",
"phoneNumberId": "222222222222222",
"authenticationCode": "123asdf123"
}'Sender
Region sender store the data in Meta.
Business manager.
Conversation API app regions the sender can be used for.
The current state of the sender.
If set, the details of the Conversation API App the sender is connected to.
Current quality rating of the sender.
Current daily message limit of the sender.
Bearer token of the sender. The bearer token is needed to connect the sender to a Conversation API App.
Please use get account endpoint for this information.
Response when successfully creating a sender.
{ "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1", "changes": { "status": "IN_PROGRESS", "details": { … } }, "created": "2023-01-19T13:11:08.204Z", "modified": "2023-01-19T13:11:08.204Z", "region": "EU", "metaLocalStorage": "DE", "conversationApiApp": "4CF9CE97504C4A468F4610919D17ECC1", "conversationApiAppDetails": { "id": "4CF9CE97504C4A468F4610919D17ECC1", "projectId": "ea026751-3edf-40a9-ad93-1b382bd60a78", "region": "EU" }, "maxTps": 10, "qualityRating": "GREEN", "dailyLimit": "NOT_SET", "bearerToken": "aaaaAAAA.bbbbBBBB.ccccCCCC", "cloudApi": true, "countryCode": "48", "phoneNumber": "777777777", "numberProvider": "CUSTOMER", "businessManager": "SINCH_UK", "compatibleRegions": [ "eu", "us" ] }
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/senders/{senderId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/senders/{senderId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Sender
Region sender store the data in Meta.
Business manager.
Conversation API app regions the sender can be used for.
The current state of the sender.
If set, the details of the Conversation API App the sender is connected to.
Current quality rating of the sender.
Current daily message limit of the sender.
Bearer token of the sender. The bearer token is needed to connect the sender to a Conversation API App.
Please use get account endpoint for this information.
Response with a sender.
{ "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1", "state": "ACTIVE", "details": { "displayName": "Test name", "description": "Test description", "vertical": "PROFESSIONAL_SERVICES", "email": "test@test.com", "address": "Test address", "about": "Test about", "websiteOne": "https://example-1.com", "photoUrl": "https://example.com/photos/1.png" }, "created": "2023-01-19T13:11:08.204Z", "modified": "2023-01-19T13:11:08.204Z", "region": "EU", "metaLocalStorage": "DE", "conversationApiApp": "4CF9CE97504C4A468F4610919D17ECC1", "conversationApiAppDetails": { "id": "4CF9CE97504C4A468F4610919D17ECC1", "projectId": "ea026751-3edf-40a9-ad93-1b382bd60a78", "region": "EU" }, "maxTps": 10, "qualityRating": "GREEN", "dailyLimit": "NOT_SET", "bearerToken": "aaaaAAAA.bbbbBBBB.ccccCCCC", "cloudApi": true, "countryCode": "48", "phoneNumber": "777777777", "numberProvider": "CUSTOMER", "businessManager": "SINCH_UK", "compatibleRegions": [ "eu", "us" ] }