The WhatsApp accounts endpoint lets you create and update WhatsApp accounts as well as get account activity and leave comments.
Returns an account for a project.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
Account
Unauthorized
NotFound
Conflict
InternalServerError
Response with an account.
{- "state": "ONBOARDED",
- "isEmbeddedSignup": false,
- "businessManager": "SINCH_UK",
- "wabaId": "1234567890",
- "details": {
- "companyLegalName": "Legal name of company",
- "clientBusinessManagerId": "1234567890"
}, - "wabaEnabledForInsights": false,
- "compatibleRegions": [
- "eu",
- "us"
]
}
Create the WhatsApp account for the project. Each project can only have one account.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
Account data
companyLegalName required | string [ 1 .. 255 ] characters The registered name of the brand who will be engaging with their users needs to be specified. This name must match the name associated with the Facebook Business Manager ID below. You can verify the registered name by visiting: https://business.facebook.com/select/?business_id= |
clientBusinessManagerId required | string [ 1 .. 255 ] characters The Business Manager ID for the client to create the account. This can be found in the Meta Business Manager in Business Settings > Business Info below the Business Manager Account Name. |
businessManager | string Business manager. |
Account
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
Example body request to create an account.
{- "companyLegalName": "Legal name of company",
- "clientBusinessManagerId": "1234567890"
}
Response when successfully creating an account.
{- "isEmbeddedSignup": false,
- "businessManager": "SINCH_UK",
- "wabaId": "1234567890",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "companyLegalName": "Legal name of company",
- "clientBusinessManagerId": "1234567890"
}
}, - "compatibleRegions": [
- "eu",
- "us"
]
}
{- "type": "WHATSAPP_ACCOUNT_COMMENT_ADDED",
- "payload": {
- "state": "ONBOARDED",
- "isEmbeddedSignup": false,
- "businessManager": "SINCH_UK",
- "wabaId": "1234567890",
- "details": {
- "companyLegalName": "Legal name of company",
- "clientBusinessManagerId": "1234567890"
}, - "wabaEnabledForInsights": false,
- "compatibleRegions": [
- "eu",
- "us"
]
}, - "comment": "Example comment"
}
Update an account.
It is only possible to update an account that has been rejected. After update the status will be set to `IN_PROGRESS`.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
Supported account fields to update.
companyLegalName | string [ 1 .. 255 ] characters The registered name of the brand who will be engaging with their users needs to be specified. This name must match the name associated with the Facebook Business Manager ID below. You can verify the registered name by visiting: https://business.facebook.com/select/?business_id= |
clientBusinessManagerId | string [ 1 .. 255 ] characters The Business Manager ID for the client to create the account. This can be found in the Meta Business Manager in Business Settings > Business Info below the Business Manager Account Name. |
Account
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
Example body request to update an account.
{- "companyLegalName": "Update legal name of company",
- "clientBusinessManagerId": "1234567890"
}
Response when successfully update an account.
{- "state": "REJECTED",
- "isEmbeddedSignup": false,
- "businessManager": "SINCH_UK",
- "wabaId": "1234567890",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "companyLegalName": "Update legal name of company",
- "clientBusinessManagerId": "1234567890"
}
}, - "details": {
- "companyLegalName": "Legal name of company",
- "clientBusinessManagerId": "1234567890"
}, - "wabaEnabledForInsights": true,
- "compatibleRegions": [
- "eu",
- "us"
]
}
Lists activities on account 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. |
Recent activities on account
BadRequest
Unauthorized
NotFound
InternalServerError
Response for all account 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"
}
]
}
Creates a comment for an account.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
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"
}