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
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.
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"
}