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.
Returns a paginated list of senders for the specified project. If no page token is supplied then the first `50` will be returned.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
List of senders
BadRequest
Unauthorized
NotFound
InternalServerError
Response with senders.
{- "totalSize": 2,
- "pageSize": 50,
- "senders": [
- {
- "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",
}, - "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"
]
}, - {
- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}
}, - "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"
]
}
]
}
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 |
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
Sender data
Sender
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
Example body request to create an ES.
{- "region": "EU",
- "metaLocalStorage": "DE",
- "wabaId": "11111111111111",
- "phoneNumberId": "222222222222222"
}
Response when successfully creating a sender.
{- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}
}, - "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"
]
}
{- "type": "WHATSAPP_SENDER_COMMENT_ADDED",
- "payload": {
- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "state": "INACTIVE",
- "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}, - "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"
]
}, - "comment": "Example comment"
}
Returns a sender for a project.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Sender
BadRequest
Unauthorized
NotFound
InternalServerError
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",
}, - "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"
]
}
Marks a sender for removal. Once requested the sender will be active for 30 days to send final messages. After 30 days it will be removed.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Sender deleted
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
{- "errorCode": "project_not_initialized",
- "message": "Project not initialized for WhatsApp.",
- "resolution": "Verify that the project ID is correct and that it has been onboarded for WhatsApp."
}
Updates a sender in project.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Supported sender fields to update
Updated sender in project
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
Example body request to update a sender.
{- "details": {
- "displayName": "Test name update",
- "description": "Test description update",
- "email": null,
- "address": null,
- "about": "Test about update",
}
}
Response when successfully update a sender.
{- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "state": "ACTIVE",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}
}, - "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}, - "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"
]
}
{- "type": "WHATSAPP_SENDER_COMMENT_ADDED",
- "payload": {
- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "state": "INACTIVE",
- "details": {
- "displayName": "Test name",
- "description": "Test description",
- "vertical": "PROFESSIONAL_SERVICES",
- "email": "test@test.com",
- "address": "Test address",
- "about": "Test about",
}, - "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"
]
}, - "comment": "Example comment"
}
Paginated list of activities for sender. Ordered from the most recent one to the oldest one.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Recent activities on sender
BadRequest
Unauthorized
NotFound
InternalServerError
Response for all sender activities.
{- "totalSize": 2,
- "pageSize": 50,
- "notifications": [
- {
- "type": "CREATED",
- "created": "2023-01-19T13:11:08.204Z",
- "author": "Provisioning API user"
}, - {
- "type": "COMMENT_ADDED",
- "created": "2023-01-19T13:11:08.204Z",
- "comment": "Example comment",
- "author": "Provisioning API user"
}
]
}
Delete pending or rejected changes to a sender.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Sender changes deleted
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
{- "errorCode": "project_not_initialized",
- "message": "Project not initialized for WhatsApp.",
- "resolution": "Verify that the project ID is correct and that it has been onboarded for WhatsApp."
}
Creates a comment for a sender in project.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Comment data
Example body request to create a comment.
{- "comment": "Example comment."
}
Response when successfully creating a comment.
{- "type": "CREATED",
- "comment": "Example comment",
- "created": "2023-01-19T13:11:08.204Z"
}
Triggers sender registration with the requested method. An OTP code will be sent over the requested method that will need to be used in the Verify sender endpoint.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Sender register data
BadRequest
Unauthorized
NotFound
Conflict
TooManyRequests
InternalServerError
Example body request to register.
{- "method": "SMS"
}
Response when successfully register a sender.
{- "id": "cf11794a-6a5e-4a12-b103-da79bd378bf1",
- "method": "SMS",
- "accepted": "2023-01-19T13:11:08.204Z"
}
Verify sender with the OTP received after triggering registration.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
senderId required | string The unique ID of the sender. |
Sender register data
Sender verified
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
Example body request to verify.
{- "code": "123456"
}
{- "errorCode": "invalid_input",
- "message": "Invalid input.",
- "resolution": "Correct the validation errors and submit again.",
- "additionalInformation": {
- "validationErrors": [
- "code must be a string",
- "code must be exactly 6 characters"
]
}
}